--- Net2/sys/ioctl.h 2018/04/24 18:03:58 1.1.1.1 +++ Net2/sys/ioctl.h 2018/04/24 18:16:37 1.1.1.3 @@ -30,11 +30,12 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * @(#)ioctl.h 7.19 (Berkeley) 6/26/91 + * from: @(#)ioctl.h 7.19 (Berkeley) 6/26/91 + * ioctl.h,v 1.5 1993/06/27 05:59:03 andrew Exp */ -#ifndef _IOCTL_H_ -#define _IOCTL_H_ +#ifndef _SYS_IOCTL_H_ +#define _SYS_IOCTL_H_ /* * Window/terminal size structure. This information is stored by the kernel @@ -140,12 +141,14 @@ struct ttysize { #define TIOCSWINSZ _IOW('t', 103, struct winsize) /* set window size */ #define TIOCUCNTL _IOW('t', 102, int) /* pty: set/clr usr cntl mode */ #define UIOCCMD(n) _IO('u', n) /* usr cntl op "n" */ +#define TIOCSTAT _IOW('t', 101, int) /* generate status message */ #define TIOCCONS _IOW('t', 98, int) /* become virtual console */ #define TIOCSCTTY _IO('t', 97) /* become controlling tty */ #define TIOCEXT _IOW('t', 96, int) /* pty: external processing */ #define TIOCSIG _IO('t', 95) /* pty: generate signal */ #define TIOCDRAIN _IO('t', 94) /* wait till output drained */ + #define TTYDISC 0 /* termios tty line discipline */ #define TABLDISC 3 /* tablet discipline */ #define SLIPDISC 4 /* serial IP discipline */ @@ -221,4 +224,5 @@ __END_DECLS #else #include #endif -#endif + +#endif /* !_SYS_IOCTL_H_ */