Messages in this thread | | | Subject | Re: Unix98 PTYs + DevFS + Glibc 2.0.96 | Date | Fri, 02 Oct 1998 20:23:58 -0400 | From | Zack Weinberg <> |
| |
Clifford Wolf wrote: >1: open /dev/ptmx >2: ioctl TIOCGPTN the fd from 1: to get the pty number >3: open /dev/ptm/<pty-number> to use it as master >4: open /dev/pts/<pty-number> tu use it as slave >5: close the fd from 1:
This is incorrect. The fd returned by the open() of /dev/ptmx is supposed to be the pty master. The conventional-device implementation gets it right; the bug is in devfs.
Richard: please fix devfs. There should be no /dev/ptm directory, and opening /dev/ptmx should get you a pty master. See the Unix98 standard (available somewhere at xopen.org).
zw
- 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.tux.org/lkml/
| |