From owner-freebsd-questions Thu Dec 21 21:33:17 2000 From owner-freebsd-questions@FreeBSD.ORG Thu Dec 21 21:33:15 2000 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from backup.af.speednet.com.au (af.speednet.com.au [202.135.188.244]) by hub.freebsd.org (Postfix) with ESMTP id A31F937B400 for ; Thu, 21 Dec 2000 21:33:12 -0800 (PST) Received: from backup.af.speednet.com.au (backup.af.speednet.com.au [172.22.2.4]) by backup.af.speednet.com.au (8.11.1/8.11.1) with ESMTP id eBM5WvF27863; Fri, 22 Dec 2000 16:32:58 +1100 (EST) (envelope-from andyf@speednet.com.au) Date: Fri, 22 Dec 2000 16:32:57 +1100 (EST) From: Andy Farkas X-Sender: andyf@backup.af.speednet.com.au To: Jimmy Thomson Cc: freebsd-questions@FreeBSD.ORG Subject: Re: pty's? In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Thu, 21 Dec 2000, Jimmy Thomson wrote: > On Fri, 22 Dec 2000, Andy Farkas wrote: > > It looks to me like /dev/MAKEDEV can make a maximum of 256 pty's by saying > > > > # cd /dev > > # /bin/sh MAKEDEV pty7 > > > > (yes, the '7' seems a bit confusing to me too...) > > > > MAKEDEV pty7??? > > Anyone have any clue what the heck that does? As I said, it makes 256 ptys. Sheesh. /dev/MAKEDEV has this in it: pty*) class=`expr $i : 'pty\(.*\)'` case $class in 0) offset=0 name=p;; 1) offset=32 name=q;; 2) offset=64 name=r;; 3) offset=96 name=s;; # Note that xterm (at least) only look at p-s. 4) offset=128 name=P;; 5) offset=160 name=Q;; 6) offset=192 name=R;; 7) offset=224 name=S;; Which means that: # /bin/sh MAKEDEV pty0 - will make 32 ptys # /bin/sh MAKEDEV pty1 - will make 64 ptys # /bin/sh MAKEDEV pty2 - will make 96 ptys # /bin/sh MAKEDEV pty3 - will make 128 ptys # /bin/sh MAKEDEV pty4 - will make 160 ptys # /bin/sh MAKEDEV pty5 - will make 192 ptys # /bin/sh MAKEDEV pty6 - will make 224 ptys # /bin/sh MAKEDEV pty7 - will make 256 ptys Hope this helps. -- :{ andyf@speednet.com.au Andy Farkas System Administrator Speednet Communications http://www.speednet.com.au/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message