> Thanks for the response!
> 
> Michael Kerrisk wrote:
> > 2. I've added a note to openpty.3 stating that in 2.0.92, 
> >    glibc openpty() swapped from using BSD ptys to Unix 98 ptys.
> 
> Note, though, that openpty() falls back to BSD ptys if it can't
> get a unix98 pty.  The strace continues:
> 
> open("/dev/ptmx", O_RDWR)               = 3
> statfs("/dev/pts", {f_type="EXT2_SUPER_MAGIC", f_bsize=4096,
> f_blocks=2520713,...
> statfs("/dev/", {f_type="EXT2_SUPER_MAGIC", f_bsize=4096,
> f_blocks=2520713, ...
> open("/dev/ptyp0", O_RDWR)              = -1 EACCES (Permission denied)
> open("/dev/ptyp1", O_RDWR)              = -1 EACCES (Permission denied)
> open("/dev/ptyp2", O_RDWR)              = -1 EACCES (Permission denied)
> [...]
> open("/dev/ptyed", O_RDWR)              = -1 EACCES (Permission denied)
> open("/dev/ptyee", O_RDWR)              = -1 EACCES (Permission denied)
> open("/dev/ptyef", O_RDWR)              = -1 EACCES (Permission denied)
> exit_group(-1)                          = ?

Good spotting.  I reworded the added text to note that openpty()
first trues Unix 98 ptys, then BSD ptys.

Cheers,

Michael

-- 
Michael Kerrisk
maintainer of Linux man pages Sections 2, 3, 4, 5, and 7 

Want to help with man page maintenance?  
Grab the latest tarball at
ftp://ftp.win.tue.nl/pub/linux-local/manpages/, 
read the HOWTOHELP file and grep the source 
files for 'FIXME'.


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to