RMark.MINITAB%denver@sri-unix.UUCP (03/10/84)
The following is part of sgtty.h from Xenix. I can find no listing indicating what each one does. Can someone help? * tty ioctl commands */ #define TIOCGETD (('t'<<8)|0) #define TIOCSETD (('t'<<8)|1) #define TIOCHPCL (('t'<<8)|2) #define TIOCMODG (('t'<<8)|3) #define TIOCMODS (('t'<<8)|4) #define TIOCGETP (('t'<<8)|8) #define TIOCSETP (('t'<<8)|9) #define TIOCSETN (('t'<<8)|10) #define TIOCEXCL (('t'<<8)|13) #define TIOCNXCL (('t'<<8)|14) #define TIOCFLUSH (('t'<<8)|16) #define TIOCSETC (('t'<<8)|17) #define TIOCGETC (('t'<<8)|18) #define DIOCLSTN (('d'<<8)|1) #define DIOCNTRL (('d'<<8)|2) #define DIOCMPX (('d'<<8)|3) #define DIOCNMPX (('d'<<8)|4) #define DIOCSCALL (('d'<<8)|5) #define DIOCRCALL (('d'<<8)|6) #define DIOCPGRP (('d'<<8)|7) #define DIOCGETP (('d'<<8)|8) #define DIOCSETP (('d'<<8)|9) #define DIOCLOSE (('d'<<8)|10) #define DIOCTIME (('d'<<8)|11) #define DIOCRESET (('d'<<8)|12) #define FIOCLEX (('f'<<8)|1) #define FIONCLEX (('f'<<8)|2) #define MXLSTN (('x'<<8)|1) #define MXNBLK (('x'<<8)|2)
henry@utzoo.UUCP (Henry Spencer) (03/14/84)
Check in tty(4) for a lot of the details, but beware of a known problem: there are at least three different places in V7 (whence Xenix) where the tty ioctls are listed -- tty(4), sgtty.h, and sys/tty.h -- and none of them agree. You'll have to look at the driver to find out precisely what your system really supports; if you have no sources and no tty(4) manual page, all you can do is scream at your supplier. A regular V7 tty(4) manual page will help, but is not necessarily definitive. Do not bother looking for the ioctls whose names start with "DIOC"; they are ioctls for Bell Labs's internal "Datakit" local network, and should never have been in the released V7 at all. The kernel doesn't implement them, by the way. The FIOC ioctls should be described in ioctl(2). The MX ioctls are for the mysterious multiplexer (adjective mine), which is beyond human understanding. -- Henry Spencer @ U of Toronto Zoology {allegra,ihnp4,linus,decvax}!utzoo!henry