lkml.org 
[lkml]   [1998]   [Oct]   [2]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: Unix98 PTYs + DevFS + Glibc 2.0.96
Date
From

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/

\
 
 \ /
  Last update: 2005-03-22 13:44    [W:0.036 / U:1.172 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site