add TIOCDRAIN to implement POSIX.1 tcdrain() function
authorMarc Teitelbaum <marc@ucbvax.Berkeley.EDU>
Wed, 10 Apr 1991 06:16:07 +0000 (22:16 -0800)
committerMarc Teitelbaum <marc@ucbvax.Berkeley.EDU>
Wed, 10 Apr 1991 06:16:07 +0000 (22:16 -0800)
SCCS-vsn: sys/sys/ioctl.h 7.18

usr/src/sys/sys/ioctl.h

index 39c5cd4..8861ab2 100644 (file)
@@ -4,7 +4,7 @@
  *
  * %sccs.include.redist.c%
  *
  *
  * %sccs.include.redist.c%
  *
- *     @(#)ioctl.h     7.17 (Berkeley) %G%
+ *     @(#)ioctl.h     7.18 (Berkeley) %G%
  */
 
 #ifndef        _IOCTL_H_
  */
 
 #ifndef        _IOCTL_H_
@@ -123,6 +123,7 @@ struct ttysize {
 #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        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 TTYDISC                0               /* termios tty line discipline */
 #define        TABLDISC        3               /* tablet discipline */