Pty ports and TIOCUCNTL mode

der Mouse mouse at mcgill-vision.UUCP
Tue Apr 26 17:17:34 AEST 1988


In article <1013 at sdcc7.ucsd.EDU>, muller at 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 <sys/ioctl.h>, 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 at mcgill-vision.uucp
			arpa: mouse at larry.mcrcim.mcgill.edu



More information about the Comp.unix.wizards mailing list