Move the sources to trunk
[opencv] / apps / Hawk / CVEiCL / EiC / module / stdClib / src / _SUNOS / 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 #define VSWTCH          7
13
14 #define CBAUD   0x0000000f
15 #define CREAD   0x00000080
16
17 #define TIOCGWINSZ      _IOR(t, 104, struct winsize)    /* get window size */
18 #define TIOCSWINSZ      _IOW(t, 103, struct winsize)    /* set window size */
19
20 /*
21  * Sun version of same.
22  */
23 struct ttysize {
24         int     ts_lines;       /* number of lines on terminal */
25         int     ts_cols;        /* number of columns on terminal */
26 };
27
28 #define TIOCSSIZE       _IOW(t,37,struct ttysize)/* set tty size */
29 #define TIOCGSIZE       _IOR(t,38,struct ttysize)/* get tty size */
30
31
32 #define _CTRL(c)        ('c'&037)
33
34
35 #define IUCLC   0x00000200
36 #define IXANY   0x00000800
37 #define IMAXBEL 0x00002000
38
39
40 /* output modes */
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
49 #define NL0     0
50 #define NL1     0x00000100
51 #define CRDLY   0x00000600
52 #define CR0     0
53 #define CR1     0x00000200
54 #define CR2     0x00000400
55 #define CR3     0x00000600
56 #define TABDLY  0x00001800
57 #define TAB0    0
58 #define TAB1    0x00000800
59 #define TAB2    0x00001000
60 #define XTABS   0x00001800
61 #define TAB3    XTABS
62 #define BSDLY   0x00002000
63 #define BS0     0
64 #define BS1     0x00002000
65 #define VTDLY   0x00004000
66 #define VT0     0
67 #define VT1     0x00004000
68 #define FFDLY   0x00008000
69 #define FF0     0
70 #define FF1     0x00008000
71 #define PAGEOUT 0x00010000
72 #define WRAP    0x00020000
73
74
75 #define LOBLK   0x00001000
76 #define CIBAUD  0x000f0000
77 #define CRTSCTS 0x80000000
78
79 #define IBSHIFT 16
80
81
82 /* line discipline 0 modes */
83
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
91
92
93 /*
94  * codes 1 through 5, not shown here, are old "termio" calls
95  */
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)
102
103
104
105 struct winsize {
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 */
110 };
111
112
113 #define EXTA    14
114 #define EXTB    15
115
116
117 #endif /* _IOCTLH */