[uClibc] pty support: /dev/pty/m* /dev/pty/s*
Maillists
maillists at gmx.ch
Thu Aug 18 11:50:45 UTC 2005
Hi everyone
We run a uClinux 2.4.22 system with uClibc 0.9.19 and I have problems
accessing the pty devices with the functions getpt / ttyname / openpty.
The distribution we have sets the pty path to /dev/pty/m* and
/dev/pty/s* and seems to be the "new" naming style.
>From
http://www.atnf.csiro.au/people/rgooch/linux/docs/devfs.html#old-compatibility-names
:
New name Old-name Device Type
-------- -------- -----------
/dev/tts/{0,1,...} /dev/ttyS{0,1,...} Serial ports
/dev/cua/{0,1,...} /dev/cua{0,1,...} Call out devices
/dev/vc/0 /dev/tty Current virtual console
/dev/vc/{1,2,...} /dev/tty{1...63} Virtual consoles
/dev/vcc/{0,1,...} /dev/vcs{1...63} Virtual consoles
/dev/pty/m{0,1,...} /dev/ptyp?? PTY masters
/dev/pty/s{0,1,...} /dev/ttyp?? PTY slaves
What I found in uClibc 0.9.19 is that either /dev/ptmx /dev/pts/*
(UNIX98) or /dev/ptyp?? (BSD) is supported.
I also had a look into ttyname.c of 0.9.28 where the path /dev/pty was
added as a search path to retrieve a tty's name. The search path does
not exist in ttyname.c of 0.9.19. So I guess someone felt the urge to
find ttys also in /dev/pty.
I there a reason that get getpt respectively __bsd_getpt was not written
to support the new name style /dev/pty/m* /dev/pty/s*?
I checked glibc for the same, which is some kind of the uClibc parent,
and it doesn't support it either.
I would love to have support for /dev/pty/m* in uClibc.
I guess I could implement it myself. How can I contribute additional
source code / features?
Roman
More information about the uClibc
mailing list