hakanson@MIST.CS.ORST.EDU (Marion Hakanson) (04/07/88)
Actually, it would make more sense to make it use the library call, getpseudotty(). This routine takes two char* args, and fills them with the pathnames of the master and slave pty devices, and it returns the file descriptor of the master side (opened for read and write), which is pretty much what all that special code in emacs does. It might be really nice to split off that code into a separate file, getpty.c, with the appropriate #defines and #ifdefs to cause it to call the system's routine, if it exists, and to use the current code, otherwise. BTW, all of this applies to Sequent's DYNIX 3.0 release -- their previous version (2.1) uses the "normal" pty naming scheme, which works with GNU Emacs just fine. If I ever find the time, I'll work up an m-*.h and s-*.h setup which takes the v2.1-v3.0 changes into account (such as MAIL_USE_FLOCK, etc.), but the current setup is pretty close for v3.0, anyway. -- Marion Hakanson Domain: hakanson@cs.orst.edu CSNET : hakanson%cs.orst.edu@relay.cs.net UUCP : {hp-pcd,tektronix}!orstcs!hakanson