source: vendor/emx/current/include/sys/termio.h

Last change on this file was 18, checked in by bird, 23 years ago

Initial revision

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