Last change
on this file was 1506, checked in by bird, 21 years ago |
@unixroot. header reviews. ++
|
-
Property cvs2svn:cvs-rev
set to
1.2
-
Property svn:eol-style
set to
native
-
Property svn:executable
set to
*
|
File size:
3.7 KB
|
Line | |
---|
1 | /* $Id: $ */
|
---|
2 | /** @file
|
---|
3 | * EMX
|
---|
4 | */
|
---|
5 | #ifndef _SYS_TERMIO_H
|
---|
6 | #define _SYS_TERMIO_H
|
---|
7 |
|
---|
8 |
|
---|
9 | /* Request codes */
|
---|
10 |
|
---|
11 | #if !defined (TCGETA)
|
---|
12 | #define TCGETA 1
|
---|
13 | #define TCSETA 2
|
---|
14 | #define TCSETAW 3
|
---|
15 | #define TCSETAF 4
|
---|
16 | #define TCFLSH 5
|
---|
17 | #define TCSBRK 6
|
---|
18 | #define TCXONC 7
|
---|
19 | #endif
|
---|
20 |
|
---|
21 | /* c_cc indexes */
|
---|
22 |
|
---|
23 | #if !defined (VINTR) /* Symbols common to termio.h and termios.h */
|
---|
24 | #define VINTR 0
|
---|
25 | #define VQUIT 1
|
---|
26 | #define VERASE 2
|
---|
27 | #define VKILL 3
|
---|
28 | #define VEOF 4
|
---|
29 | #define VEOL 5
|
---|
30 | #define VMIN 6
|
---|
31 | #define VTIME 7
|
---|
32 | #endif
|
---|
33 |
|
---|
34 | #define NCC 8 /* Number of the above */
|
---|
35 |
|
---|
36 | /* c_iflag, emx ignores most of the following bits */
|
---|
37 |
|
---|
38 | #if !defined (IGNBRK) /* Symbols common to termio.h and termios.h */
|
---|
39 | #define IGNBRK 0x0001
|
---|
40 | #define BRKINT 0x0002
|
---|
41 | #define IGNPAR 0x0004
|
---|
42 | #define PARMRK 0x0008
|
---|
43 | #define INPCK 0x0010
|
---|
44 | #define ISTRIP 0x0020
|
---|
45 | #define INLCR 0x0040
|
---|
46 | #define IGNCR 0x0080
|
---|
47 | #define ICRNL 0x0100
|
---|
48 | #define IUCLC 0x0200
|
---|
49 | #define IXON 0x0400
|
---|
50 | #define IXANY 0x0800
|
---|
51 | #define IXOFF 0x1000
|
---|
52 | #define IDELETE 0x8000 /* Extension (emx) */
|
---|
53 | #endif
|
---|
54 |
|
---|
55 | /* c_oflag, emx ignores all of the following bits */
|
---|
56 |
|
---|
57 | #if !defined (OPOST) /* Symbols common to termio.h and termios.h */
|
---|
58 | #define OPOST 0x0001
|
---|
59 | #endif
|
---|
60 | #define OLCUC 0x0002
|
---|
61 | #define ONLCR 0x0004
|
---|
62 | #define OCRNL 0x0008
|
---|
63 | #define ONOCR 0x0010
|
---|
64 | #define ONLRET 0x0020
|
---|
65 | #define OFILL 0x0040
|
---|
66 | #define OFDEL 0x0080
|
---|
67 | #define NLDLY 0x0100 /* Mask */
|
---|
68 | #define NL0 0x0000
|
---|
69 | #define NL1 0x0100
|
---|
70 | #define CRDLY 0x0600 /* Mask */
|
---|
71 | #define CR0 0x0000
|
---|
72 | #define CR1 0x0200
|
---|
73 | #define CR2 0x0400
|
---|
74 | #define CR3 0x0600
|
---|
75 | #define TABDLY 0x1800 /* Mask */
|
---|
76 | #define TAB0 0x0000
|
---|
77 | #define TAB1 0x0800
|
---|
78 | #define TAB2 0x1000
|
---|
79 | #define TAB3 0x1800
|
---|
80 | #define BSDLY 0x2000 /* Mask */
|
---|
81 | #define BS0 0x0000
|
---|
82 | #define BS1 0x2000
|
---|
83 | #define VTDLY 0x4000 /* Mask */
|
---|
84 | #define VT0 0x0000
|
---|
85 | #define VT1 0x4000
|
---|
86 | #define FFDLY 0x8000 /* Mask */
|
---|
87 | #define FF0 0x0000
|
---|
88 | #define FF1 0x8000
|
---|
89 |
|
---|
90 | /* c_cflag, emx ignores all of the following bits */
|
---|
91 |
|
---|
92 | #if !defined (CBAUD)
|
---|
93 | #define CBAUD 0x000f /* Mask */
|
---|
94 | #endif
|
---|
95 | #if !defined (B0) /* Symbols common to termio.h and termios.h */
|
---|
96 | #define B0 0x0000
|
---|
97 | #define B50 0x0001
|
---|
98 | #define B75 0x0002
|
---|
99 | #define B110 0x0003
|
---|
100 | #define B134 0x0004
|
---|
101 | #define B150 0x0005
|
---|
102 | #define B200 0x0006
|
---|
103 | #define B300 0x0007
|
---|
104 | #define B600 0x0008
|
---|
105 | #define B1200 0x0009
|
---|
106 | #define B1800 0x000a
|
---|
107 | #define B2400 0x000b
|
---|
108 | #define B4800 0x000c
|
---|
109 | #define B9600 0x000d
|
---|
110 | #define B19200 0x000e
|
---|
111 | #define B38400 0x000f
|
---|
112 | #define CSIZE 0x0030 /* Mask */
|
---|
113 | #define CS5 0x0000
|
---|
114 | #define CS6 0x0010
|
---|
115 | #define CS7 0x0020
|
---|
116 | #define CS8 0x0030
|
---|
117 | #define CSTOPB 0x0040
|
---|
118 | #define CREAD 0x0080
|
---|
119 | #define PARENB 0x0100
|
---|
120 | #define PARODD 0x0200
|
---|
121 | #define HUPCL 0x0400
|
---|
122 | #define CLOCAL 0x0800
|
---|
123 | #define LOBLK 0x1000
|
---|
124 | #endif
|
---|
125 |
|
---|
126 | /* c_lflag, emx ignores some of the following bits */
|
---|
127 |
|
---|
128 | #if !defined (ISIG) /* Symbols common to termio.h and termios.h */
|
---|
129 | #define ISIG 0x0001
|
---|
130 | #define ICANON 0x0002
|
---|
131 | #define XCASE 0x0004
|
---|
132 | #define ECHO 0x0008
|
---|
133 | #define ECHOE 0x0010
|
---|
134 | #define ECHOK 0x0020
|
---|
135 | #define ECHONL 0x0040
|
---|
136 | #define NOFLSH 0x0080
|
---|
137 | #define IDEFAULT 0x8000 /* Extension (emx) */
|
---|
138 | #endif
|
---|
139 |
|
---|
140 |
|
---|
141 | struct termio
|
---|
142 | {
|
---|
143 | unsigned int c_iflag;
|
---|
144 | unsigned int c_oflag;
|
---|
145 | unsigned int c_cflag;
|
---|
146 | unsigned int c_lflag;
|
---|
147 | unsigned int c_line;
|
---|
148 | unsigned char c_cc[NCC];
|
---|
149 | };
|
---|
150 |
|
---|
151 | #endif /* not _SYS_TERMIO_H */
|
---|
Note:
See
TracBrowser
for help on using the repository browser.