6 EJB. This header file is by no means compliant
7 to any standard. All I have done
8 is thrown most of the termios.h 4.3 BSD stuff
9 in here plus other ioctl.h things.
14 #define CBAUD 0x0000000f
15 #define CREAD 0x00000080
17 #define TIOCGWINSZ _IOR(t, 104, struct winsize) /* get window size */
18 #define TIOCSWINSZ _IOW(t, 103, struct winsize) /* set window size */
21 * Sun version of same.
24 int ts_lines; /* number of lines on terminal */
25 int ts_cols; /* number of columns on terminal */
28 #define TIOCSSIZE _IOW(t,37,struct ttysize)/* set tty size */
29 #define TIOCGSIZE _IOR(t,38,struct ttysize)/* get tty size */
32 #define _CTRL(c) ('c'&037)
35 #define IUCLC 0x00000200
36 #define IXANY 0x00000800
37 #define IMAXBEL 0x00002000
41 #define OLCUC 0x00000002
42 #define ONLCR 0x00000004
43 #define OCRNL 0x00000008
44 #define ONOCR 0x00000010
45 #define ONLRET 0x00000020
46 #define OFILL 0x00000040
47 #define OFDEL 0x00000080
48 #define NLDLY 0x00000100
50 #define NL1 0x00000100
51 #define CRDLY 0x00000600
53 #define CR1 0x00000200
54 #define CR2 0x00000400
55 #define CR3 0x00000600
56 #define TABDLY 0x00001800
58 #define TAB1 0x00000800
59 #define TAB2 0x00001000
60 #define XTABS 0x00001800
62 #define BSDLY 0x00002000
64 #define BS1 0x00002000
65 #define VTDLY 0x00004000
67 #define VT1 0x00004000
68 #define FFDLY 0x00008000
70 #define FF1 0x00008000
71 #define PAGEOUT 0x00010000
72 #define WRAP 0x00020000
75 #define LOBLK 0x00001000
76 #define CIBAUD 0x000f0000
77 #define CRTSCTS 0x80000000
82 /* line discipline 0 modes */
84 #define XCASE 0x00000004
85 #define ECHOCTL 0x00000200
86 #define ECHOPRT 0x00000400
87 #define ECHOKE 0x00000800
88 #define DEFECHO 0x00001000
89 #define FLUSHO 0x00002000
90 #define PENDIN 0x00004000
94 * codes 1 through 5, not shown here, are old "termio" calls
96 #define TCXONC _IO(T, 6)
97 #define TCFLSH _IO(T, 7)
98 #define TCGETS _IOR(T, 8, struct termios)
99 #define TCSETS _IOW(T, 9, struct termios)
100 #define TCSETSW _IOW(T, 10, struct termios)
101 #define TCSETSF _IOW(T, 11, struct termios)
106 unsigned short ws_row; /* rows, in characters */
107 unsigned short ws_col; /* columns, in characters */
108 unsigned short ws_xpixel; /* horizontal size, pixels - not used */
109 unsigned short ws_ypixel; /* vertical size, pixels - not used */