[918] in Kerberos_V5_Development
Re: seeking comments for exported interfaces from libpty
daemon@ATHENA.MIT.EDU (Marc Horowitz)
Fri Jul 21 20:18:34 1995
To: Sam Hartman <hartmans@MIT.EDU>
Cc: krbdev@MIT.EDU
Date: Fri, 21 Jul 1995 20:18:29 EDT
From: Marc Horowitz <marc@MIT.EDU>
The abstractions you've specified are useful, but not for all
pty-consuming apps. In particular, apps like pty and expect, which
only use pty's (possibly more than one!), and don't try to
disassociate from their original terminal, etc, might need a slightly
lower abstraction. In addition, it would be nice if pty_getpty()
returned the name of the master, too, for debugging, logging, etc.
Also, pty_getpty() is specified to return a mode 0600 pty, owned by
root. I'd say it should take a mode like open() or creat() does. It
might be appropriate to use the umask to to modify the mode
appropriately, but I'm not sure. Finally, the owner should not be
changed, since it's useful to create a pty when you're not root. If
the app wants the pty's owner to change, it can call chown().
Otherwise, this is a *great* idea. Good luck.
Marc