Path: utzoo!mnetor!uunet!lll-winken!lll-lcc!ames!mailrus!tut.cis.ohio-state.edu!bloom-beacon!mcgill-vision!mouse From: mouse@mcgill-vision.UUCP (der Mouse) Newsgroups: comp.unix.wizards Subject: Re: Pty ports and TIOCUCNTL mode Message-ID: <1077@mcgill-vision.UUCP> Date: 26 Apr 88 07:17:34 GMT References: <576@modular.UUCP> <1013@sdcc7.ucsd.EDU> Distribution: comp Organization: McGill University, Montreal Lines: 27 In article <1013@sdcc7.ucsd.EDU>, muller@sdcc7.ucsd.EDU (Keith Muller) writes: > [explanation of TIOCUCNTL mode] > #define JBOOT _IO(u, 1) > #define JMPX _IO(u, 0) Do it right: #define JBOOT UIOCCMD(1) #define JMPX UIOCCMD(0) The original questioner didn't specify what system this was for. The definition for UIOCCMD exists on 4.3. It doesn't exist in our current (3.5) Sun , even though TIOCUCNTL does; can someone at Sun explain why this is? (It's not the only 4.3 feature that's only half implemented; the fd_set type for select is in the same state. The typedef is present but the FD_ZERO, FD_SET, FD_CLR, FD_ISSET macros are missing. Is it too much to ask for them to either do it or not do it, but not halfway? (Apparently so.) grumble grumble....) Anyway, I'd recommend not using TIOCUCNTL on a Sun, because it appears to be different from the 4.3 version (no UIOCCMD), and pty(4) doesn't document it at all, so there's no reason to believe it will do anything useful. For all I can tell, it may do a complete reformat of the disk. der Mouse uucp: mouse@mcgill-vision.uucp arpa: mouse@larry.mcrcim.mcgill.edu