Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 30 Jan 2006 14:29:55 +0100
From:      Alexander Leidinger <Alexander@Leidinger.net>
To:        Stephen McKay <smckay@internode.on.net>
Cc:        Robert Watson <rwatson@freebsd.org>, current@freebsd.org
Subject:   Re: HEADS UP: pts code committed
Message-ID:  <20060130142955.fewnc3omossgoo0w@netchild.homeip.net>
In-Reply-To: <200601301102.k0UB2L0q006713@dungeon.home>
References:  <20060126022854.GA16323@ci0.org> <20060126020818.K97024@fledge.watson.org> <200601281231.k0SCVhtc011525@dungeon.home> <20060128215112.W95776@fledge.watson.org> <200601301102.k0UB2L0q006713@dungeon.home>

next in thread | previous in thread | raw e-mail | index | archive | help
Stephen McKay <smckay@internode.on.net> wrote:

> 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.

% uname -a
SunOS xantia 5.10 Generic_118844-27 i86pc i386 i86pc

% ll /dev/pt*
lrwxrwxrwx   1 root     root          31 Sep 27 17:26 /dev/ptmajor ->
../devices/pseudo/ptm@0:ptmajor
lrwxrwxrwx   1 root     root          29 Sep 27 17:26 /dev/ptmx ->
../devices/pseudo/clone@0:ptm
lrwxrwxrwx   1 root     root          29 Sep 27 17:26 /dev/ptyp0 ->
../devices/pseudo/ptc@0:ptyp0
lrwxrwxrwx   1 root     root          29 Sep 27 17:26 /dev/ptyp1 ->
../devices/pseudo/ptc@0:ptyp1

[...]

lrwxrwxrwx   1 root     root          29 Sep 27 17:28 /dev/ptyrd ->
../devices/pseudo/ptc@0:ptyrd
lrwxrwxrwx   1 root     root          29 Sep 27 17:28 /dev/ptyre ->
../devices/pseudo/ptc@0:ptyre
lrwxrwxrwx   1 root     root          29 Sep 27 17:28 /dev/ptyrf ->
../devices/pseudo/ptc@0:ptyrf

/dev/pts/:
total 270
drwxr-xr-x   2 root     sys         2.0K Dec  7 09:51 ./
drwxr-xr-x  18 root     sys         3.5K Jan 27 09:45 ../
lrwxrwxrwx   1 root     root          28 Sep 27 17:26 0 ->
../../devices/pseudo/pts@0:0
lrwxrwxrwx   1 root     root          28 Sep 27 17:26 1 ->
../../devices/pseudo/pts@0:1
lrwxrwxrwx   1 root     root          29 Sep 27 17:28 10 ->
../../devices/pseudo/pts@0:10
lrwxrwxrwx   1 root     root          30 Dec  7 09:51 100 ->
../../devices/pseudo/pts@0:100

[...]

lrwxrwxrwx   1 root     root          29 Dec  7 09:51 97 ->
../../devices/pseudo/pts@0:97
lrwxrwxrwx   1 root     root          29 Dec  7 09:51 98 ->
../../devices/pseudo/pts@0:98
lrwxrwxrwx   1 root     root          29 Dec  7 09:51 99 ->
../../devices/pseudo/pts@0:99

Bye,
Alexander.

-- 
http://www.Leidinger.net  Alexander @ Leidinger.net: PGP ID = B0063FE7
http://www.FreeBSD.org     netchild @ FreeBSD.org  : PGP ID = 72077137
"Kirk to Enterprise -- beam down yeoman Rand and a six-pack."





Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20060130142955.fewnc3omossgoo0w>