From owner-freebsd-bugs Fri Mar 23 9:50:12 2001 Delivered-To: freebsd-bugs@hub.freebsd.org Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 2964C37B718 for ; Fri, 23 Mar 2001 09:50:06 -0800 (PST) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.1/8.11.1) id f2NHo6099024; Fri, 23 Mar 2001 09:50:06 -0800 (PST) (envelope-from gnats) Date: Fri, 23 Mar 2001 09:50:06 -0800 (PST) Message-Id: <200103231750.f2NHo6099024@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.org Cc: From: Poul-Henning Kamp Subject: Re: kern/25866 more than 256 ptys, up to 1302 ptys. Reply-To: Poul-Henning Kamp Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org The following reply was made to PR kern/25866; it has been noted by GNATS. From: Poul-Henning Kamp To: freebsd-gnats-submit@FreeBSD.org, clefevre@poboxes.com Cc: Subject: Re: kern/25866 more than 256 ptys, up to 1302 ptys. Date: Fri, 23 Mar 2001 18:45:57 +0100 Please check out the ptynumber.patch at http://phk.freebsd.dk/patch 20010322 ptynumber.patch This is a proof-of-concept patch to change the naming of ptys from the letter encoding to a simple ttyp%u/ptyp%u like scheme. The chosen naming with the 'p' in it allows for coexistence of kernels and libutils which don't match up to the first 10 ptys. I'm sure a number of ports may break as result of this because they don't use libutil to get ptys. Please use this patch to fix those ports to use libutil::openpty() sooner rather than latter. I am not partial to any particular naming, there are good arguments for "/dev/pty/[tp]ty%d" or similar, but I cannot foresee the amount of breakage that might result in. There is no planned commit of this patch yet, it is provided for research/impactanalysis/testing only at this time. If anybody wants to adopt this patch, they are more than welcome and should contact me by email. Poul-Henning -- Poul-Henning Kamp | UNIX since Zilog Zeus 3.20 phk@FreeBSD.ORG | TCP/IP since RFC 956 FreeBSD committer | BSD since 4.3-tahoe Never attribute to malice what can adequately be explained by incompetence. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message