From owner-freebsd-questions Tue Jun 8 12: 5:20 1999 Delivered-To: freebsd-questions@freebsd.org Received: from www.crb-web.com (ns1.crb-web.com [209.70.120.131]) by hub.freebsd.org (Postfix) with SMTP id 8D0E914C12 for ; Tue, 8 Jun 1999 12:05:18 -0700 (PDT) (envelope-from wayne@crb.crb-web.com) Received: (qmail 22067 invoked by uid 1001); 8 Jun 1999 19:02:57 -0000 Date: Tue, 8 Jun 1999 15:02:57 -0400 (EDT) From: Wayne Cuddy Reply-To: wayne@crb-web.com To: FreeBSD Questions Subject: Re: UNIX98 style pty In-Reply-To: <19990604122812.A28664@dan.emsphone.com> 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 After looking in the documentation in /dev/MAKEDEV we could get 384 pseudo terminals. I built a kernel for 384 pseudo-terminals but when I try to use mknod with a minor device number higher then 256 mknod says that the minor device number is to high. Is there a way around this? On Fri, 4 Jun 1999, Dan Nelson wrote: > Date: Fri, 4 Jun 1999 12:28:12 -0500 > From: Dan Nelson > To: Wayne Cuddy > Subject: Re: UNIX98 style pty > > In the last episode (Jun 04), Wayne Cuddy said: > > On Wed, 2 Jun 1999, Dan Nelson wrote: > > > You can have more than 256 ptys; the problem is what to name them. > > > You can easily get 384 ptys by extending the current scheme > > > slightly (using /dev/tty[tuTU]*; /dev/ttyv* is syscons so we hit > > > our limit with this > > > Can explain to me how this scheme works? Is this somethings like > > /dev/ttytT8 ? > > Sort of. The pty names are restricted to the following regex pattern: > "/dev/tty[pqrsPQRS][0123456789abcdefghijklmnopqrstuv]" . There are 32 > combinations for the last letter, so allowing "[pqrsPQRS]" for the > first letter gives 32*8=256 ptys. If you want more, it's easiest to > simply add to the set of first letters. "[tuTU]" extends the current > range and gives you 128 more ptys. > > > What would be the master and what would be the slave? > > I believe the master is /dev/pty* and the slave is /dev/tty* . So like > /dev/ttyp0 and /dev/ptyp0 . > > > -Dan Nelson > dnelson@emsphone.com > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message