summaryrefslogtreecommitdiff
path: root/sys/compat/ultrix/ultrix_tty.h
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>1996-01-05 15:54:02 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>1996-01-05 15:54:02 +0000
commitc3d30087a2c1719e78c4f0e5e288d487a62d9391 (patch)
tree43e60cdef8e38967fd233457e02672e8df4f2d09 /sys/compat/ultrix/ultrix_tty.h
parent7dfd93155cd2a8edf70ac08adc968da161c2bec1 (diff)
from netbsd:
Rewrite (a copy of) the emul-sunos termio/termios emulation code to emulate Ultrix termio/termios instead. Ultrix termio c_cc has separate VMIM/VTIME attributes, and the Ultrix termios c_cc is a strict superset of Ultrix termio c_cc. The termios-only c_cc indices are all changed, relative to SunOS.
Diffstat (limited to 'sys/compat/ultrix/ultrix_tty.h')
-rw-r--r--sys/compat/ultrix/ultrix_tty.h16
1 files changed, 13 insertions, 3 deletions
diff --git a/sys/compat/ultrix/ultrix_tty.h b/sys/compat/ultrix/ultrix_tty.h
index c1ebb2ed5d9..487a6af662e 100644
--- a/sys/compat/ultrix/ultrix_tty.h
+++ b/sys/compat/ultrix/ultrix_tty.h
@@ -1,4 +1,4 @@
-/* $NetBSD: ultrix_tty.h,v 1.1 1995/12/27 19:57:25 jonathan Exp $ */
+/* $NetBSD: ultrix_tty.h,v 1.2 1996/01/04 19:03:36 jonathan Exp $ */
/* From: NetBSD sunos.h,v 1.4 1995/03/04 09:50:00 pk Exp */
@@ -8,6 +8,11 @@ struct ultrix_ttysize {
int ts_col;
};
+/*
+ * Ultrix includes (BRL-derived?) SysV compatibile termio
+ * as well as termios. This is the termio structure.
+ */
+
struct ultrix_termio {
u_short c_iflag;
u_short c_oflag;
@@ -21,6 +26,10 @@ struct ultrix_termio {
#define ULTRIX_TCSETAW _IOW('t', 89, struct ultrix_termio)
#define ULTRIX_TCSETAF _IOW('t', 88, struct ultrix_termio)
+/*
+ * Ultrix POSIX-compatible termios.
+ * Very similar to SunOS but with more c_cc entries (gag)
+ */
struct ultrix_termios {
u_long c_iflag;
u_long c_oflag;
@@ -29,11 +38,12 @@ struct ultrix_termios {
u_char c_cc[19]; /* 17 for Sun */
u_char c_line;
};
+
#define ULTRIX_TCXONC _IO('T', 6)
#define ULTRIX_TCFLSH _IO('T', 7)
#define ULTRIX_TCGETS _IOR('t', 85, struct ultrix_termios)
-#define ULTRIX_TCSETS _IOW('t', 84, struct ultrix_termios) /*NOW*/
-#define ULTRIX_TCSETSW _IOW('t', 83, struct ultrix_termios) /* Drain&set*/
+#define ULTRIX_TCSETS _IOW('t', 84, struct ultrix_termios) /* set termios */
+#define ULTRIX_TCSETSW _IOW('t', 83, struct ultrix_termios) /* Drain&set,*/
#define ULTRIX_TCSETSF _IOW('t', 82, struct ultrix_termios) /*Drainflush,set*/
#define ULTRIX_TCSNDBRK _IO('T', 12)
#define ULTRIX_TCDRAIN _IO('T', 13)