He wrote me that he has an implementation for the relevant functions
ready for glibc:
FYI, I have an implementation of grantpt() et al for glibc already, it only
needs the kernel support. Three things are needful:
/dev/ptmx -> open this to get the next available pty master.
ioctl(pty_master, TIOCGRANT) -> chown()s you the slave device.
ioctl(pty_master, TIOCGSNAME, buf) ->stuff the slave name into buf.
I think we can get away with unlockpt() a noop. TIOCGSNAME can be simulated
in userspace by mapping the minor number to a name, but the kernel may want
to do it itself (eg. devfs doesn't have minor numbers).
zw
Anyway, thanks for your effort,
Mark