blob: 4b17df64a1c08d2d6ef694a7f16b83e402756793 [file] [log] [blame]
Guido van Rossum9a707e81995-04-05 09:44:56 +00001# Generated by h2py from /usr/include/termios.h
2
3# Included from features.h
4_FEATURES_H = 1
5_GNU_SOURCE = 1
6__USE_ANSI = 1
7__FAVOR_BSD = 1
8_BSD_SOURCE = 1
9_SVID_SOURCE = 1
10_POSIX_SOURCE = 1
11_POSIX_C_SOURCE = 2
12__USE_POSIX = 1
13__USE_POSIX2 = 1
14__USE_MISC = 1
15__USE_BSD = 1
16__USE_SVID = 1
17__USE_GNU = 1
18__GNU_LIBRARY__ = 1
19
20# Included from sys/cdefs.h
21_SYS_CDEFS_H = 1
22def __P(args): return args
23
24def __P(args): return args
25
26def __P(args): return ()
27
28def __STRING(x): return #x
29
30def __STRING(x): return "x"
31
32
33# Included from sys/types.h
34
35# Included from linux/types.h
Guido van Rossum15c4fec1996-01-26 17:43:46 +000036__FD_SETSIZE = 256
Guido van Rossum9a707e81995-04-05 09:44:56 +000037
38# Included from asm/types.h
Guido van Rossum9a707e81995-04-05 09:44:56 +000039def __FD_ZERO(fdsetp): return \
40
41
Guido van Rossum15c4fec1996-01-26 17:43:46 +000042# Included from sys/bitypes.h
43
Guido van Rossum9a707e81995-04-05 09:44:56 +000044# Included from linux/termios.h
Guido van Rossum15c4fec1996-01-26 17:43:46 +000045
46# Included from asm/termios.h
Guido van Rossum9a707e81995-04-05 09:44:56 +000047TCGETS = 0x5401
48TCSETS = 0x5402
49TCSETSW = 0x5403
50TCSETSF = 0x5404
51TCGETA = 0x5405
52TCSETA = 0x5406
53TCSETAW = 0x5407
54TCSETAF = 0x5408
55TCSBRK = 0x5409
56TCXONC = 0x540A
57TCFLSH = 0x540B
58TIOCEXCL = 0x540C
59TIOCNXCL = 0x540D
60TIOCSCTTY = 0x540E
61TIOCGPGRP = 0x540F
62TIOCSPGRP = 0x5410
63TIOCOUTQ = 0x5411
64TIOCSTI = 0x5412
65TIOCGWINSZ = 0x5413
66TIOCSWINSZ = 0x5414
67TIOCMGET = 0x5415
68TIOCMBIS = 0x5416
69TIOCMBIC = 0x5417
70TIOCMSET = 0x5418
71TIOCGSOFTCAR = 0x5419
72TIOCSSOFTCAR = 0x541A
73FIONREAD = 0x541B
74TIOCINQ = FIONREAD
75TIOCLINUX = 0x541C
76TIOCCONS = 0x541D
77TIOCGSERIAL = 0x541E
78TIOCSSERIAL = 0x541F
79TIOCPKT = 0x5420
80FIONBIO = 0x5421
81TIOCNOTTY = 0x5422
82TIOCSETD = 0x5423
83TIOCGETD = 0x5424
84TCSBRKP = 0x5425
85TIOCTTYGSTRUCT = 0x5426
86FIONCLEX = 0x5450
87FIOCLEX = 0x5451
88FIOASYNC = 0x5452
89TIOCSERCONFIG = 0x5453
90TIOCSERGWILD = 0x5454
91TIOCSERSWILD = 0x5455
92TIOCGLCKTRMIOS = 0x5456
93TIOCSLCKTRMIOS = 0x5457
94TIOCSERGSTRUCT = 0x5458
95TIOCSERGETLSR = 0x5459
96TIOCSERGETMULTI = 0x545A
97TIOCSERSETMULTI = 0x545B
98TIOCPKT_DATA = 0
99TIOCPKT_FLUSHREAD = 1
100TIOCPKT_FLUSHWRITE = 2
101TIOCPKT_STOP = 4
102TIOCPKT_START = 8
103TIOCPKT_NOSTOP = 16
104TIOCPKT_DOSTOP = 32
105NCC = 8
106NCCS = 19
107VINTR = 0
108VQUIT = 1
109VERASE = 2
110VKILL = 3
111VEOF = 4
112VTIME = 5
113VMIN = 6
114VSWTC = 7
115VSTART = 8
116VSTOP = 9
117VSUSP = 10
118VEOL = 11
119VREPRINT = 12
120VDISCARD = 13
121VWERASE = 14
122VLNEXT = 15
123VEOL2 = 16
Guido van Rossum15c4fec1996-01-26 17:43:46 +0000124INIT_C_CC = "\003\034\177\025\004\0\1\0\021\023\032\0\022\017\027\026\0"
Guido van Rossum9a707e81995-04-05 09:44:56 +0000125IGNBRK = 0000001
126BRKINT = 0000002
127IGNPAR = 0000004
128PARMRK = 0000010
129INPCK = 0000020
130ISTRIP = 0000040
131INLCR = 0000100
132IGNCR = 0000200
133ICRNL = 0000400
134IUCLC = 0001000
135IXON = 0002000
136IXANY = 0004000
137IXOFF = 0010000
138IMAXBEL = 0020000
139OPOST = 0000001
140OLCUC = 0000002
141ONLCR = 0000004
142OCRNL = 0000010
143ONOCR = 0000020
144ONLRET = 0000040
145OFILL = 0000100
146OFDEL = 0000200
147NLDLY = 0000400
148NL0 = 0000000
149NL1 = 0000400
150CRDLY = 0003000
151CR0 = 0000000
152CR1 = 0001000
153CR2 = 0002000
154CR3 = 0003000
155TABDLY = 0014000
156TAB0 = 0000000
157TAB1 = 0004000
158TAB2 = 0010000
159TAB3 = 0014000
160XTABS = 0014000
161BSDLY = 0020000
162BS0 = 0000000
163BS1 = 0020000
164VTDLY = 0040000
165VT0 = 0000000
166VT1 = 0040000
167FFDLY = 0100000
168FF0 = 0000000
169FF1 = 0100000
170CBAUD = 0010017
171B0 = 0000000
172B50 = 0000001
173B75 = 0000002
174B110 = 0000003
175B134 = 0000004
176B150 = 0000005
177B200 = 0000006
178B300 = 0000007
179B600 = 0000010
180B1200 = 0000011
181B1800 = 0000012
182B2400 = 0000013
183B4800 = 0000014
184B9600 = 0000015
185B19200 = 0000016
186B38400 = 0000017
187EXTA = B19200
188EXTB = B38400
189CSIZE = 0000060
190CS5 = 0000000
191CS6 = 0000020
192CS7 = 0000040
193CS8 = 0000060
194CSTOPB = 0000100
195CREAD = 0000200
196PARENB = 0000400
197PARODD = 0001000
198HUPCL = 0002000
199CLOCAL = 0004000
200CBAUDEX = 0010000
201B57600 = 0010001
202B115200 = 0010002
203B230400 = 0010003
204CIBAUD = 002003600000
205CRTSCTS = 020000000000
206ISIG = 0000001
207ICANON = 0000002
208XCASE = 0000004
209ECHO = 0000010
210ECHOE = 0000020
211ECHOK = 0000040
212ECHONL = 0000100
213NOFLSH = 0000200
214TOSTOP = 0000400
215ECHOCTL = 0001000
216ECHOPRT = 0002000
217ECHOKE = 0004000
218FLUSHO = 0010000
219PENDIN = 0040000
220IEXTEN = 0100000
221TIOCM_LE = 0x001
222TIOCM_DTR = 0x002
223TIOCM_RTS = 0x004
224TIOCM_ST = 0x008
225TIOCM_SR = 0x010
226TIOCM_CTS = 0x020
227TIOCM_CAR = 0x040
228TIOCM_RNG = 0x080
229TIOCM_DSR = 0x100
230TIOCM_CD = TIOCM_CAR
231TIOCM_RI = TIOCM_RNG
232TIOCSER_TEMT = 0x01
233TCOOFF = 0
234TCOON = 1
235TCIOFF = 2
236TCION = 3
237TCIFLUSH = 0
238TCOFLUSH = 1
239TCIOFLUSH = 2
240TCSANOW = 0
241TCSADRAIN = 1
242TCSAFLUSH = 2
243N_TTY = 0
244N_SLIP = 1
245N_MOUSE = 2
246N_PPP = 3
Guido van Rossum15c4fec1996-01-26 17:43:46 +0000247def CTRL(ch): return ((ch)&0x1F)
248
249IBSHIFT = 16
250CNUL = 0
251CDEL = 0177
252CESC = ord('\\')
253CINTR = 0177
254CQUIT = 034
255CERASE = ord('#')
256CKILL = ord('@')
257CEOT = 04
258CEOL = 0
259CEOL2 = 0
260CEOF = 4
261CSTART = 021
262CSTOP = 023
263CSWTCH = 032
264NSWTCH = 0
265CSUSP = CTRL(ord('Z'))
266CDSUSP = CTRL(ord('Y'))
267CRPRNT = CTRL(ord('R'))
268CFLUSH = CTRL(ord('O'))
269CWERASE = CTRL(ord('W'))
270CLNEXT = CTRL(ord('V'))