From owner-freebsd-current@FreeBSD.ORG Mon Jan 30 11:03:23 2006 Return-Path: X-Original-To: current@freebsd.org Delivered-To: freebsd-current@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 261D616A420; Mon, 30 Jan 2006 11:03:23 +0000 (GMT) (envelope-from smckay@internode.on.net) Received: from smtp3.adl2.internode.on.net (smtp3.adl2.internode.on.net [203.16.214.203]) by mx1.FreeBSD.org (Postfix) with ESMTP id B96D543D62; Mon, 30 Jan 2006 11:03:15 +0000 (GMT) (envelope-from smckay@internode.on.net) Received: from dungeon.home (ppp117-204.lns1.bne3.internode.on.net [59.167.117.204]) by smtp3.adl2.internode.on.net (8.13.5/8.13.5) with ESMTP id k0UB36j1001441; Mon, 30 Jan 2006 21:33:07 +1030 (CST) (envelope-from smckay@internode.on.net) Received: from dungeon.home (localhost [127.0.0.1]) by dungeon.home (8.13.4/8.13.4) with ESMTP id k0UB2L0q006713; Mon, 30 Jan 2006 21:02:21 +1000 (EST) (envelope-from mckay) Message-Id: <200601301102.k0UB2L0q006713@dungeon.home> To: Robert Watson References: <20060126022854.GA16323@ci0.org> <20060126020818.K97024@fledge.watson.org> <200601281231.k0SCVhtc011525@dungeon.home> <20060128215112.W95776@fledge.watson.org> In-Reply-To: <20060128215112.W95776@fledge.watson.org> from Robert Watson at "Sat, 28 Jan 2006 21:52:34 +0000" Date: Mon, 30 Jan 2006 21:02:21 +1000 From: Stephen McKay Cc: current@freebsd.org, Stephen McKay Subject: Re: HEADS UP: pts code committed X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 30 Jan 2006 11:03:23 -0000 On Saturday, 28th January 2006, Robert Watson wrote: >You are right, that is what it does. This is actually an intentional design >choice to match the behavior in Solaris, which also names them /dev/ptyp*. >Well, strictly speaking, those are just symlinks into /devices, but it comes >to much the same thing. You are probably right, though -- naming them >/dev/pty/* would make more sense, and won't affect the libc API. I had a quick look on a Solaris 8 machine and found only legacy pty devices in /dev. In /devices, they lump pts and pty nodes into /devices/pseudo with a lot of other stuff. Very messy. So I don't think the new FreeBSD /dev/ptynnn behaviour is the same as Solaris after all. I checked a Fedora Core 4 box too, and it doesn't put the pty's in /dev at all. At least in all implementations the important part (/dev/pts/nnn) is the same. Anyway, I can't find anything that depends on the naming for the master and it would make /dev tidier to bury pty's in a subdirectory. Shall we add that one missing '/'? The code would then match the comments. :-) Alternatively, the other implementations seem to get by without putting them in the tree at all. Do we need them? Stephen.