BSD 4_1_snap development
[unix-history] / usr / include / sgtty.h
index fa5c331..f599a45 100644 (file)
@@ -2,12 +2,16 @@
  * Structure for stty and gtty system calls.
  */
 
  * Structure for stty and gtty system calls.
  */
 
+#ifndef        _IOCTL_
+#include <sys/ioctl.h>
+#endif
+
 struct sgttyb {
        char    sg_ispeed;              /* input speed */
        char    sg_ospeed;              /* output speed */
        char    sg_erase;               /* erase character */
        char    sg_kill;                /* kill character */
 struct sgttyb {
        char    sg_ispeed;              /* input speed */
        char    sg_ospeed;              /* output speed */
        char    sg_erase;               /* erase character */
        char    sg_kill;                /* kill character */
-       int     sg_flags;               /* mode flags */
+       short   sg_flags;               /* mode flags */
 };
 
 /*
 };
 
 /*
@@ -68,24 +72,3 @@ struct sgttyb {
 #define B9600  13
 #define EXTA   14
 #define EXTB   15
 #define B9600  13
 #define EXTA   14
 #define EXTB   15
-
-/*
- * 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        TIOCTSTP        (('t'<<8)|16)
-#define        DIOCGETP        (('d'<<8)|8)
-#define        DIOCSETP        (('d'<<8)|9)
-#define        FIOCLEX         (('f'<<8)|1)
-#define        FIONCLEX        (('f'<<8)|2)
-#define        MXLSTN          (('x'<<8)|1)
-#define        MXNBLK          (('x'<<8)|2)