From owner-freebsd-hackers Tue Mar 5 7:24:36 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from ussenterprise.ufp.org (ussenterprise.ufp.org [208.185.30.210]) by hub.freebsd.org (Postfix) with ESMTP id E00C137B405; Tue, 5 Mar 2002 07:24:27 -0800 (PST) Received: (from bicknell@localhost) by ussenterprise.ufp.org (8.11.1/8.11.1) id g25FONF45980; Tue, 5 Mar 2002 10:24:23 -0500 (EST) (envelope-from bicknell) Date: Tue, 5 Mar 2002 10:24:23 -0500 From: Leo Bicknell To: Paul Halliday Cc: Patrick Thomas , freebsd-questions@FreeBSD.ORG, freebsd-hackers@FreeBSD.ORG Subject: Re: cannot get more than 32 PTYs in 4.4-RELEASE Message-ID: <20020305152423.GA45816@ussenterprise.ufp.org> Mail-Followup-To: Paul Halliday , Patrick Thomas , freebsd-questions@FreeBSD.ORG, freebsd-hackers@FreeBSD.ORG References: <20020304233607.E3757-100000@utility.clubscholarship.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Organization: United Federation of Planets Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG In a message written on Tue, Mar 05, 2002 at 07:52:09AM -0600, Paul Halliday wrote: > 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;; > > interestingly enough the command "./MAKEDEV pty3" will create (as > indicated) heh.. I was assuming too much, something is screwy here. > > *confused* > > it actually only created 64 terminals. Added the line: > > 4) offset=192 name=t;; > > ~# ./MAKEDEV pty4 && kill -HUP 1 > > interesting, now I have 96, but can only use 64. Reboot.. I think if you look at a more recent MAKEDEV, you'll find your answer: 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;; # This still leaves [tuTU]. So: sh MAKEDEV pty0 # 0-31 sh MAKEDEV pty1 # 32-63 sh MAKEDEV pty2 # 64-95 sh MAKEDEV pty3 # 96-127 sh MAKEDEV pty4 # 128-159 xterm won't recognize by default sh MAKEDEV pty5 # 160-191 xterm won't recognize by default sh MAKEDEV pty6 # 192-223 xterm won't recognize by default sh MAKEDEV pty7 # 224-255 xterm won't recognize by default It's fairly trival to patch xterm to look for additional letters. It may have made it in the XFree source already. *shrug* -- Leo Bicknell - bicknell@ufp.org - CCIE 3440 PGP keys at http://www.ufp.org/~bicknell/ Read TMBG List - tmbg-list-request@tmbg.org, www.tmbg.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message