Update the changelog
[opencv] / apps / Hawk / CVEiCL / EiC / module / stdClib / src / _IRIX / ioctl.h
1 #ifndef _IOCTLH
2 #define _IOCTLH
3
4 /*
5    EJB
6    This header file is by no means compliant
7    to any standard. All I have done
8    is thrown most of the termio.h 4.3 BSD stuff
9    in here plus other ioctl.h things.
10 */
11
12
13
14 #define ECHOCTL 0001000
15 #define ECHOPRT 0002000
16 #define ECHOKE  0004000
17 #define DEFECHO 0010000
18 #define FLUSHO  0020000
19 #define LOBLK   0040000
20
21
22 #define PAREXT  004000000
23 #define PENDIN  0040000
24 #define RCV1EN  0010000
25
26 #define TIOC    ('T'<<8)
27
28
29 #define TCGETA  (TIOC|1)
30 #define TCSETA  (TIOC|2)
31 #define TCSETAW (TIOC|3)
32 #define TCSETAF (TIOC|4)
33
34 #define TCSBRK  (TIOC|5)
35 #define TCXONC  (TIOC|6)
36 #define TCFLSH  (TIOC|7)
37
38 #define XCASE   0000004
39 #define XCLUDE          000100000 /* *V7* exclusive use coming fron XENIX */
40 #define XMT1EN  0020000
41
42 /* c_iflag */
43 #define DOSMODE 0100000  /* for 386 compatibility */
44 #define IMAXBEL 0020000
45 #define IUCLC   0001000
46
47 /* ?? */
48 #define CBAUD   0000017
49 #define CIBAUD  03600000
50 #define CREAD   0000200
51 #define CRTSCTS 020000000000
52 #define DEFECHO 0010000
53
54 pid_t tcgetsid(); /*???*/
55
56 /* c_oflag */
57 #define OLCUC   0000002
58 #define ONLCR   0000004
59 #define OCRNL   0000010
60 #define ONOCR   0000020
61 #define ONLRET  0000040
62 #define OFILL   0000100
63 #define OFDEL   0000200
64 #define NLDLY   0000400
65 #define NL0     0
66 #define NL1     0000400
67 #define CRDLY   0003000
68 #define CR0     0
69 #define CR1     0001000
70 #define CR2     0002000
71 #define CR3     0003000
72 #define TABDLY  0014000
73 #define TAB0    0
74 #define TAB1    0004000
75 #define TAB2    0010000
76 #define TAB3    0014000
77 #define XTABS   0014000
78 #define BSDLY   0020000
79 #define BS0     0
80 #define BS1     0020000
81 #define VTDLY   0040000
82 #define VT0     0
83 #define VT1     0040000
84 #define FFDLY   0100000
85 #define FF0     0
86 #define FF1     0100000
87
88 /* termios ioctls */
89
90 #define TCGETS          (TIOC|13)
91 #define TCSETS          (TIOC|14)
92 #define TCSETSW         (TIOC|15)
93 #define TCSETSF         (TIOC|16)
94
95 /* TIOC ioctls for BSD, ptys, job control and modem control */
96
97 #define TIOCGETD        (tIOC|0)
98 #define TIOCSETD        (tIOC|1)
99 #define TIOCHPCL        (tIOC|2)
100 #define TIOCGETP        (tIOC|8)
101 #define TIOCSETP        (tIOC|9)
102 #define TIOCSETN        (tIOC|10)
103 #define TIOCEXCL        (tIOC|13)
104 #define TIOCNXCL        (tIOC|14)
105 #define TIOCSETC        (tIOC|17)
106 #define TIOCGETC        (tIOC|18)
107
108 /* POSIX job control ioctls */
109
110 #define TIOCGPGRP       _IOR('t', 119, int)     /* get pgrp of tty */
111 #define TIOCSPGRP       _IOW('t', 118, int)     /* set pgrp of tty */
112 #define TIOCGSID        (tIOC|22)       /* get session id on ctty*/
113 #define TIOCSSID        (tIOC|24)       /* set session id on ctty*/
114
115 /* Miscellanous */
116 #define TIOCSTI (TIOC|114)              /* simulate terminal input */
117
118 /* Modem control */
119 #define TIOCMSET        (tIOC|26)       /* set all modem bits */
120 #define TIOCMBIS        (tIOC|27)       /* bis modem bits */
121 #define TIOCMBIC        (tIOC|28)       /* bic modem bits */
122 #define TIOCMGET        (tIOC|29)       /* get all modem bits */
123 #define TIOCM_LE        0001            /* line enable */
124 #define TIOCM_DTR       0002            /* data terminal ready */
125 #define TIOCM_RTS       0004            /* request to send */
126 #define TIOCM_ST        0010            /* secondary transmit */
127 #define TIOCM_SR        0020            /* secondary receive */
128 #define TIOCM_CTS       0040            /* clear to send */
129 #define TIOCM_CAR       0100            /* carrier detect */
130 #define TIOCM_CD        TIOCM_CAR
131 #define TIOCM_RNG       0200            /* ring */
132 #define TIOCM_RI        TIOCM_RNG
133 #define TIOCM_DSR       0400            /* data set ready */
134
135 struct winsize {
136         unsigned short ws_row;       /* rows, in characters*/
137         unsigned short ws_col;       /* columns, in character */
138         unsigned short ws_xpixel;    /* horizontal size, pixels */
139         unsigned short ws_ypixel;    /* vertical size, pixels */
140 };
141
142 #define VSWTCH  7
143
144 #endif
145