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