# > Is it true that Unix98 ptys only work with glibc 2.1, and that
# > selecting this option makes old-stype ptys cease to work?
# > If so, this should be made more clear in the config help.
# >
#
# No.
Are you sure? ....
[ 2.1.115 w/ devpts ]
root(5)@neko [111 /usr2/root] # lsmod;mount
Module Size Used by
devpts 3168 1 (autoclean)
serial 17192 0 (autoclean) (unused)
psaux 2300 1 (autoclean)
nfsd 145148 4 (autoclean)
binfmt_misc 3260 0
autofs 8732 1 (autoclean)
/dev/hda3 on / type ext2 (rw)
none on /proc type proc (rw)
/dev/hdc3 on /usr2/nicholas type ext2 (rw)
/dev/hda4 on /usr/local type ext2 (rw)
automount(pid90) on /auto type autofs (rw,fd=5,pgrp=90,minproto=2,maxproto=3)
none on /dev/pts type devpts (rw)
root(5)@neko [108 /usr2/root] # xterm -display tao:0.0
xterm: no available ptys
root(5)@neko [109 /usr2/root] # strace -o foo xterm -display tao:0.0
xterm: no available ptys
...
open("/dev/ptyp0", O_RDWR) = -1 ENOSYS (Function not implemented)
open("/dev/ptyp0", O_RDWR) = -1 ENOSYS (Function not implemented)
open("/dev/ptyp0", O_RDWR) = -1 ENODEV (Operation not supported by device)
open("/dev/ptyp1", O_RDWR) = -1 ENOSYS (Function not implemented)
open("/dev/ptyp1", O_RDWR) = -1 ENOSYS (Function not implemented)
...
open("/dev/ptyZf", O_RDWR) = -1 ENOENT (No such file or directory)
write(2, "xterm: no available ptys\n", 25) = 25
root(5)@neko [114 /usr2/root] # script
Out of pty's
root(5)@neko [114 /usr2/root] # strace -o foo script
Out of pty's
stat(0x804a1d0, {st_mode=S_ISGID|0200, st_size=0, ...}) = 0
open(0x804a1d0, O_RDWR) = -1 ENOSYS (Function not implemented)
open(0x804a1d0, O_RDWR) = -1 ENOSYS (Function not implemented)
open(0x804a1d0, O_RDWR) = -1 ENODEV (Operation not supported by device)
open(0x804a1d0, O_RDWR) = -1 ENOSYS (Function not implemented)
open(0x804a1d0, O_RDWR) = -1 ENODEV (Operation not supported by device)
write(2, "Out of pty\'s\n", 13) = 13
kill(0, SIGTERM) = 0
[ 2.1.115 without devpts ]
root(5)@neko [102 /usr2/root] # script
Script started, file is typescript
root(p0)@neko [102 /usr2/root] # exit
Script done, file is typescript
root(5)@neko [105 /usr2/root] # strace -o foo xterm -display tao:0.0
...
open("/dev/ptyp0", O_RDWR) = 5
...
###
Unless I'm missing something here, compiling with devpts does in fact
break standard ptys.
G'day!
-----------------------------------------------------------------------------
Nicholas J. Leon "Elegance Through Simplicity"
nicholas@binary9.net - - http://mrnick.binary9.net
8 4 9 1 7 3 <-- what is the pattern?
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.altern.org/andrebalsa/doc/lkml-faq.html