From owner-freebsd-questions Wed Jun 2 16:11:55 1999 Delivered-To: freebsd-questions@freebsd.org Received: from dan.emsphone.com (dan.emsphone.com [199.67.51.101]) by hub.freebsd.org (Postfix) with ESMTP id B272514EF7 for ; Wed, 2 Jun 1999 16:11:51 -0700 (PDT) (envelope-from dan@dan.emsphone.com) Received: (from dan@localhost) by dan.emsphone.com (8.9.3/8.9.3) id SAA89347; Wed, 2 Jun 1999 18:11:49 -0500 (CDT) (envelope-from dan) Date: Wed, 2 Jun 1999 18:11:49 -0500 From: Dan Nelson To: Wayne Cuddy Cc: FreeBSD Questions Subject: Re: UNIX98 style pty Message-ID: <19990602181148.A89180@dan.emsphone.com> References: <19990602103753.A28696@dan.emsphone.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.95.5i In-Reply-To: ; from "Wayne Cuddy" on Wed Jun 2 11:39:08 GMT 1999 X-OS: FreeBSD 4.0-CURRENT Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG In the last episode (Jun 02), Wayne Cuddy said: > Ok, maybe it is not a UNIX98 thing. What I am looking for is more > than 256 ptys. I would prefer the behavior that dynamically > allocates ptys in /dev/pty/ at run-time. The latest linux kernel has > this behavior. 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 naming scheme). Edit /dev/MAKEDEV and /usr/src/lib/libutil/pty.c. Actually, you could edit them to populate /dev/pty/* if you really want. Leave symlinks from /dev/tty[pqrsPSRQ]* to /dev/pty/* for legacy apps that don't use openpty(). -Dan Nelson dnelson@emsphone.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message