lkml.org 
[lkml]   [1998]   [Jan]   [17]   [last100]   RSS Feed
Views: [more markup]  [less markup]  [headers]  [forward] 
 
Messages in this thread
/
DateSat, 17 Jan 1998 16:59:20 +0100
From"Mark M._Kettenis" <>
SubjectRe: ptsname() support (new ptys)
The guy to talk to for the glibc implementation of ptsname() et al. is
Zack Weinberg <zack@rabi.phys.columbia.edu>, CC'ed here.

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

\
 
 \ /
  Last update: 2005-03-22 12:41    [from the cache]
©2003-2008