V7 IOCTL COMPATABILITY FIXES
authorScott Reynolds <scott@clmqt.marquette.mi.us>
Fri, 27 Nov 1992 00:00:00 +0000 (00:00 +0000)
committerScott Reynolds <scott@clmqt.marquette.mi.us>
Fri, 27 Nov 1992 00:00:00 +0000 (00:00 +0000)
This patch adds TIOCSTAT to ioctl() and the missing gtty/stty
macros to complete the V7 ioctl() compatibility.

AUTHOR: Scott Reynolds (scott@clmqt.marquette.mi.us)
386BSD-Patchkit: patch00059

usr/src/sys.386bsd/sys/ioctl.h
usr/src/sys.386bsd/sys/ioctl_compat.h

index 4929a84..f839d9f 100644 (file)
  * SUCH DAMAGE.
  *
  *     @(#)ioctl.h     7.19 (Berkeley) 6/26/91
  * SUCH DAMAGE.
  *
  *     @(#)ioctl.h     7.19 (Berkeley) 6/26/91
+ *
+ * PATCHES MAGIC                LEVEL   PATCH THAT GOT US HERE
+ * --------------------         -----   ----------------------
+ * CURRENT PATCH LEVEL:         1       00059
+ * --------------------         -----   ----------------------
+ *
+ * 27 Nov 1992 Scott Reynolds          Completed V7 ioctl compatablity
  */
 
 #ifndef        _IOCTL_H_
  */
 
 #ifndef        _IOCTL_H_
@@ -140,6 +147,7 @@ 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        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        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 */
index 7762049..f042246 100644 (file)
  * SUCH DAMAGE.
  *
  *     @(#)ioctl_compat.h      7.4 (Berkeley) 2/5/91
  * SUCH DAMAGE.
  *
  *     @(#)ioctl_compat.h      7.4 (Berkeley) 2/5/91
+ *
+ *
+ * PATCHES MAGIC                LEVEL   PATCH THAT GOT US HERE
+ * --------------------         -----   ----------------------
+ * CURRENT PATCH LEVEL:         1       00059
+ * --------------------         -----   ----------------------
+ *
+ * 27 Nov 1992 Scott Reynolds          Completed V7 ioctl compatablity
+ *                                     by adding gtty and stty macros
  */
 
 #ifndef _IOCTL_COMPAT_H_
  */
 
 #ifndef _IOCTL_COMPAT_H_
@@ -164,4 +173,7 @@ struct sgttyb {
 #define        NETLDISC        1
 #define        NTTYDISC        2
 
 #define        NETLDISC        1
 #define        NTTYDISC        2
 
+#define        gtty(fd, tty)   ioctl(fd, TIOCGETP, tty)
+#define        stty(fd, tty)   ioctl(fd, TIOCSETP, tty)
+
 #endif /* !_IOCTL_COMPAT_H_ */
 #endif /* !_IOCTL_COMPAT_H_ */