Path: utzoo!mnetor!uunet!husc6!bloom-beacon!mit-eddie!ll-xn!ames!pasteur!ucbvax!ucsd!sdcc6!sdcc7!muller From: muller@sdcc7.ucsd.EDU (Keith Muller) Newsgroups: comp.unix.wizards Subject: Re: Pty ports and TIOCUCNTL mode Message-ID: <1019@sdcc7.ucsd.EDU> Date: 26 Apr 88 21:29:57 GMT References: <576@modular.UUCP> <1013@sdcc7.ucsd.EDU> <1077@mcgill-vision.UUCP> Distribution: comp Organization: University of California, San Diego Lines: 16 Summary: sun TIOCUCNTL Several vendors support TIOCUCNTL, but do not define UIOCMD in ioctl.h which is why #define JBOOT _IO(u, 1) etc was suggested over UIOCMD, there is no "rightness" here. As for sun, TIOCUCNTL does nothing as ptyioctl() in tty_pty.c does not have any support for it. Almost all of the semantics of TIOCUCNTL is performed by the TIOCTCNTL ioctl on the sun. There is one major difference: TIOCTCNTL only passes some of the 't' ioctls through and not the user defined 'u' ioctls. (The 't' ioctls alter the slave side and they also appear as the first byte on the master side with TIOCTCNTL. TIOCUCNTL just passes through to the master side without no changes to the slave side). I have patches for tty_pty.c on suns that allow both TIOCUCNTL and TIOCTCNTL to work. Keith Muller University of California