1#if !defined ISO && !defined ISO99 && !defined ISO11
2type cc_t
3type speed_t
4type tcflag_t
5
6type {struct termios}
7
8#if defined XOPEN2K8 || defined POSIX2008
9type pid_t
10#endif
11
12element {struct termios} tcflag_t c_iflag
13element {struct termios} tcflag_t c_oflag
14element {struct termios} tcflag_t c_cflag
15element {struct termios} tcflag_t c_lflag
16element {struct termios} cc_t c_cc [NCCS]
17
18constant NCCS
19
20constant VEOF
21constant VEOL
22constant VERASE
23constant VINTR
24constant VKILL
25constant VMIN
26constant VQUIT
27constant VSTART
28constant VSTOP
29constant VSUSP
30constant VTIME
31
32constant BRKINT
33constant ICRNL
34constant IGNBRK
35constant IGNCR
36constant IGNPAR
37constant INLCR
38constant INPCK
39constant ISTRIP
40# if !defined POSIX && !defined XOPEN2K && !defined XOPEN2K8 && !defined POSIX2008
41constant IUCLC
42# endif
43# ifndef POSIX
44constant IXANY
45# endif
46constant IXOFF
47constant IXON
48constant PARMRK
49
50constant OPOST
51# if !defined POSIX && !defined XOPEN2K && !defined XOPEN2K8 && !defined POSIX2008
52constant OLCUC
53# endif
54# if !defined POSIX && !defined POSIX2008
55constant ONLCR
56constant OCRNL
57constant ONOCR
58constant ONLRET
59constant OFDEL
60constant OFILL
61constant NLDLY
62constant NL0
63constant NL1
64constant CRDLY
65constant CR0
66constant CR1
67constant CR2
68constant CR3
69constant TABDLY
70constant TAB0
71constant TAB1
72constant TAB2
73constant TAB3
74constant BSDLY
75constant BS0
76constant BS1
77constant VTDLY
78constant VT0
79constant VT1
80constant FFDLY
81constant FF0
82constant FF1
83# endif
84
85constant B0
86constant B50
87constant B75
88constant B110
89constant B134
90constant B150
91constant B200
92constant B300
93constant B600
94constant B1200
95constant B1800
96constant B2400
97constant B4800
98constant B9600
99constant B19200
100constant B38400
101
102constant CSIZE
103constant CS5
104constant CS6
105constant CS7
106constant CS8
107constant CSTOPB
108constant CREAD
109constant PARENB
110constant PARODD
111constant HUPCL
112constant CLOCAL
113
114constant ECHO
115constant ECHOE
116constant ECHOK
117constant ECHONL
118constant ICANON
119constant IEXTEN
120constant ISIG
121constant NOFLSH
122constant TOSTOP
123# if !defined POSIX && !defined XOPEN2K && !defined XOPEN2K8 && !defined POSIX2008
124constant XCASE
125# endif
126
127constant TCSANOW
128constant TCSADRAIN
129constant TCSAFLUSH
130
131constant TCIFLUSH
132constant TCIOFLUSH
133
134constant TCIOFF
135constant TCION
136constant TCOOFF
137constant TCOON
138
139function speed_t cfgetispeed (const struct termios*)
140function speed_t cfgetospeed (const struct termios*)
141function int cfsetispeed (struct termios*, speed_t)
142function int cfsetospeed (struct termios*, speed_t)
143function int tcdrain (int)
144function int tcflow (int, int)
145function int tcflush (int, int)
146function int tcgetattr (int, struct termios*)
147#if !defined POSIX && !defined XPG4
148function pid_t tcgetsid (int)
149#endif
150function int tcsendbreak (int, int)
151function int tcsetattr (int, int, const struct termios*)
152
153#if !defined POSIX && !defined POSIX2008
154allow CBAUD
155allow DEFECHO
156allow ECHOCTL
157allow ECHOKE
158allow ECHOPRT
159allow EXTA
160allow EXTB
161allow FLUSHO
162allow LOBLK
163allow PENDIN
164allow SWTCH
165allow VDISCARD
166allow VDSUSP
167allow VLNEXT
168allow VREPRINT
169allow VSTATUS
170allow VWERASE
171#endif
172
173allow c_*
174allow V*
175allow I*
176allow O*
177allow TC*
178allow B[0123456789]*
179allow *_t
180#endif
181