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
* 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
#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 */
* 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_
#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_ */