lkml.org 
[lkml]   [1998]   [Jan]   [17]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
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 13:41    [W:0.025 / U:1.564 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site