On Mon, 4 Jan 1999, Randall S. Winchester wrote:

> 
> Enter the vodoo magic of Unix pty drivers... This is one of those very non
> standard problems in Unix, that has not yet been completely addressed.

I think this is standardized in Unix98. And they choose the Solaris way
(/dev/ptmx, and /dev/pts/...) But we have to support all earlier OS's too.
(as I see there are two completely different approaches: BSD and Solaris)

* BSD has a couple of /dev/pty* and corressponding /dev/tty* devices, the
  differences between vendors is the possible characters after pty* (e.g.
  under Linux (debian) first character is between 'p' .. 'q', and the
  second is between '0' - 'f') We'll need a configure check to find
  out which devices are available. (Maybe search for /dev/pty*, and define
  the ranges of the two characters independently)

* The solaris way (I think this comes from SysV) is to open /dev/ptmx,
  call grantpt() on the opened fd to set permissions, and finally call
  ptsname() to get the name of the to-be-opened slave pty. BTW: Solaris
  seems to support the BSD way too. (e.g. /dev/pty* exists, just as
  /dev/ptmx is)


> MIT's Kerberos V5 source (not in the crypto part).
> 
> ftp.win.tue.nl:/pub/security/logdaemon-XX.tar.Z (rlogind/login replacement)

I'll check this one.

> 
> X11R6.4 source tree (xconsole and xterm)

seems to be an overkill to download the whole source tree.

>
> telnetd source tree (I find this the worst of the bunch to follow)

already checked this one.

--- Bazsi

Reply via email to