blob: b0e3d280173774333b48e1e7a947500199cad1c6 [file] [log] [blame]
Guido van Rossume7b6e391998-05-06 15:14:36 +00001# Generated by h2py from /usr/include/termios.h
2VEOF = 0
3VEOL = 1
4VEOL2 = 2
5VERASE = 3
6VWERASE = 4
7VKILL = 5
8VREPRINT = 6
9VINTR = 8
10VQUIT = 9
11VSUSP = 10
12VDSUSP = 11
13VSTART = 12
14VSTOP = 13
15VLNEXT = 14
16VDISCARD = 15
17VMIN = 16
18VTIME = 17
19VSTATUS = 18
20NCCS = 20
21_POSIX_VDISABLE = 0xff
22IGNBRK = 0x00000001
23BRKINT = 0x00000002
24IGNPAR = 0x00000004
25PARMRK = 0x00000008
26INPCK = 0x00000010
27ISTRIP = 0x00000020
28INLCR = 0x00000040
29IGNCR = 0x00000080
30ICRNL = 0x00000100
31IXON = 0x00000200
32IXOFF = 0x00000400
33IXANY = 0x00000800
34IMAXBEL = 0x00002000
35OPOST = 0x00000001
36ONLCR = 0x00000002
37OXTABS = 0x00000004
38ONOEOT = 0x00000008
39CIGNORE = 0x00000001
40CSIZE = 0x00000300
41CS5 = 0x00000000
42CS6 = 0x00000100
43CS7 = 0x00000200
44CS8 = 0x00000300
45CSTOPB = 0x00000400
46CREAD = 0x00000800
47PARENB = 0x00001000
48PARODD = 0x00002000
49HUPCL = 0x00004000
50CLOCAL = 0x00008000
51CCTS_OFLOW = 0x00010000
52CRTS_IFLOW = 0x00020000
53CDTR_IFLOW = 0x00040000
54CDSR_OFLOW = 0x00080000
55CCAR_OFLOW = 0x00100000
56MDMBUF = 0x00100000
57ECHOKE = 0x00000001
58ECHOE = 0x00000002
59ECHOK = 0x00000004
60ECHO = 0x00000008
61ECHONL = 0x00000010
62ECHOPRT = 0x00000020
63ECHOCTL = 0x00000040
64ISIG = 0x00000080
65ICANON = 0x00000100
66ALTWERASE = 0x00000200
67IEXTEN = 0x00000400
68EXTPROC = 0x00000800
69TOSTOP = 0x00400000
70FLUSHO = 0x00800000
71NOKERNINFO = 0x02000000
72PENDIN = 0x20000000
73NOFLSH = 0x80000000
74TCSANOW = 0
75TCSADRAIN = 1
76TCSAFLUSH = 2
77TCSASOFT = 0x10
78B0 = 0
79B50 = 50
80B75 = 75
81B110 = 110
82B134 = 134
83B150 = 150
84B200 = 200
85B300 = 300
86B600 = 600
87B1200 = 1200
88B1800 = 1800
89B2400 = 2400
90B4800 = 4800
91B9600 = 9600
92B19200 = 19200
93B38400 = 38400
94B7200 = 7200
95B14400 = 14400
96B28800 = 28800
97B57600 = 57600
98B76800 = 76800
99B115200 = 115200
100B230400 = 230400
101EXTA = 19200
102EXTB = 38400
103TCIFLUSH = 1
104TCOFLUSH = 2
105TCIOFLUSH = 3
106TCOOFF = 1
107TCOON = 2
108TCIOFF = 3
109TCION = 4
110
111# Included from sys/cdefs.h
112def __P(protos): return protos
113
114def __STRING(x): return #x
115
116def __XSTRING(x): return __STRING(x)
117
118def __P(protos): return ()
119
120def __STRING(x): return "x"
121
122def __RCSID(s): return __IDSTRING(rcsid,s)
123
124def __RCSID_SOURCE(s): return __IDSTRING(rcsid_source,s)
125
126def __COPYRIGHT(s): return __IDSTRING(copyright,s)
127
128
129# Included from sys/ttycom.h
130
131# Included from sys/ioccom.h
132IOCPARM_MASK = 0x1fff
133def IOCPARM_LEN(x): return (((x) >> 16) & IOCPARM_MASK)
134
135def IOCBASECMD(x): return ((x) & ~(IOCPARM_MASK << 16))
136
137def IOCGROUP(x): return (((x) >> 8) & 0xff)
138
139IOC_VOID = 0x20000000
140IOC_OUT = 0x40000000
141IOC_IN = 0x80000000
142IOC_INOUT = (IOC_IN|IOC_OUT)
143IOC_DIRMASK = 0xe0000000
144TIOCM_LE = 0001
145TIOCM_DTR = 0002
146TIOCM_RTS = 0004
147TIOCM_ST = 0010
148TIOCM_SR = 0020
149TIOCM_CTS = 0040
150TIOCM_CAR = 0100
151TIOCM_CD = TIOCM_CAR
152TIOCM_RNG = 0200
153TIOCM_RI = TIOCM_RNG
154TIOCM_DSR = 0400
155TIOCPKT_DATA = 0x00
156TIOCPKT_FLUSHREAD = 0x01
157TIOCPKT_FLUSHWRITE = 0x02
158TIOCPKT_STOP = 0x04
159TIOCPKT_START = 0x08
160TIOCPKT_NOSTOP = 0x10
161TIOCPKT_DOSTOP = 0x20
162TIOCPKT_IOCTL = 0x40
163def UIOCCMD(n): return _IO(ord('u'), n)
164
165TTYDISC = 0
166TABLDISC = 3
167SLIPDISC = 4
168PPPDISC = 5
169
170# Included from sys/ttydefaults.h
171TTYDEF_IFLAG = (BRKINT | ICRNL | IMAXBEL | IXON | IXANY)
172TTYDEF_OFLAG = (OPOST | ONLCR)
173TTYDEF_LFLAG = (ECHO | ICANON | ISIG | IEXTEN | ECHOE|ECHOKE|ECHOCTL)
174TTYDEF_CFLAG = (CREAD | CS8 | HUPCL)
175TTYDEF_SPEED = (B9600)
176def CTRL(x): return (x&037)
177
178CEOF = CTRL(ord('d'))
179CEOL = 0xff
180CERASE = 0177
181CINTR = CTRL(ord('c'))
182CSTATUS = CTRL(ord('t'))
183CKILL = CTRL(ord('u'))
184CMIN = 1
185CQUIT = 034
186CSUSP = CTRL(ord('z'))
187CTIME = 0
188CDSUSP = CTRL(ord('y'))
189CSTART = CTRL(ord('q'))
190CSTOP = CTRL(ord('s'))
191CLNEXT = CTRL(ord('v'))
192CDISCARD = CTRL(ord('o'))
193CWERASE = CTRL(ord('w'))
194CREPRINT = CTRL(ord('r'))
195CEOT = CEOF
196CBRK = CEOL
197CRPRNT = CREPRINT
198CFLUSH = CDISCARD