summaryrefslogtreecommitdiffstats
path: root/Lib/aix3/TERMIOS.py
blob: a048cd9f88d0a54a1a8277f966ffe0111bc73868 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
# Generated by h2py from /usr/include/termios.h

# Included from standards.h

# Included from sys/types.h

# Included from sys/m_types.h
TRUE = 1
FALSE = 0
NBBY = 8
FHSIZE = 32

# Included from sys/select.h

# Included from sys/time.h
ITIMER_REAL = 0
ITIMER_VIRTUAL = 1
ITIMER_PROF = 2
ITIMER_VIRT = 3
TIMEOFDAY = 9
TIMERID_ALRM = (ITIMER_REAL)
TIMERID_REAL = (ITIMER_REAL)
TIMERID_VIRTUAL = (ITIMER_VIRTUAL)
TIMERID_PROF = (ITIMER_PROF)
TIMERID_VIRT = (ITIMER_VIRT)
TIMERID_TOD = (TIMERID_VIRT+1)
NALRM = 1
NPROF = 1
NVIRTUAL = 2
NTIMEOFDAY = 5
NTIMERS = (NALRM + NPROF + NVIRTUAL + NTIMEOFDAY)
MIN_SECS_SINCE_EPOCH = 0
uS_PER_SECOND = (1000000)
NS_PER_uS = (1000)
MAX_SECS_TO_uS = 4000
MAX_NS_TO_uS = 294967296
NS_PER_SEC = 1000000000
uS_PER_SEC = (NS_PER_SEC / 1000)
NS_PER_MSEC = (NS_PER_SEC / 1000)
MAX_DEC_SECS = 2
MAX_DEC_NS = 147483647
DST_NONE = 0
DST_USA = 1
DST_AUST = 2
DST_WET = 3
DST_MET = 4
DST_EET = 5
DST_CAN = 6

# Included from time.h

# Included from stddef.h
CLOCKS_PER_SEC = 1000000
CLK_TCK = 100
TIMELEN = 26
NLTBMAX = 64
NO_TIMEOUT = 0
INF_TIMEOUT = -1
def NFDS(x): return ((x) & 0x0000FFFF)

def LOW_HALF(x): return NFDS(x)

def NMSGS(x): return (((x) >> 16) & 0x0000FFFF)

def HIGH_HALF(x): return NMSGS(x)

FD_SETSIZE = 2048
def major(__x): return (int)((unsigned)(__x)>>16)

def minor(__x): return (int)((__x)&0xFFFF)

NCCS = 16
TCSANOW = 0
TCSADRAIN = 1
TCSAFLUSH = 2
TCIFLUSH = 0
TCOFLUSH = 1
TCIOFLUSH = 2
TCOOFF = 0
TCOON = 1
TCIOFF = 2
TCION = 3
VINTR = 0
VQUIT = 1
VERASE = 2
VKILL = 3
VEOF = 4
VEOL = 5
VSTART = 7
VSTOP = 8
VSUSP = 9
VMIN = 4
VTIME = 5
VEOL2 = 6
VDSUSP = 10
VREPRINT = 11
VDISCRD = 12
VWERSE = 13
VLNEXT = 14
VSTRT = VSTART
B0 = 0x00000000
B50 = 0x00000001
B75 = 0x00000002
B110 = 0x00000003
B134 = 0x00000004
B150 = 0x00000005
B200 = 0x00000006
B300 = 0x00000007
B600 = 0x00000008
B1200 = 0x00000009
B1800 = 0x0000000a
B2400 = 0x0000000b
B4800 = 0x0000000c
B9600 = 0x0000000d
B19200 = 0x0000000e
B38400 = 0x0000000f
EXTA = B19200
EXTB = B38400
IGNBRK = 0x00000001
BRKINT = 0x00000002
IGNPAR = 0x00000004
PARMRK = 0x00000008
INPCK = 0x00000010
ISTRIP = 0x00000020
INLCR = 0x00000040
IGNCR = 0x00000080
ICRNL = 0x00000100
IXON = 0x00000200
IXOFF = 0x00000400
IUCLC = 0x00000800
IXANY = 0x00001000
IMAXBEL = 0x00010000
OPOST = 0x00000001
OLCUC = 0x00000002
ONLCR = 0x00000004
OCRNL = 0x00000008
ONOCR = 0x00000010
ONLRET = 0x00000020
OFILL = 0x00000040
OFDEL = 0x00000080
CRDLY = 0x00000300
CR0 = 0x00000000
CR1 = 0x00000100
CR2 = 0x00000200
CR3 = 0x00000300
TABDLY = 0x00000c00
TAB0 = 0x00000000
TAB1 = 0x00000400
TAB2 = 0x00000800
TAB3 = 0x00000c00
BSDLY = 0x00001000
BS0 = 0x00000000
BS1 = 0x00001000
FFDLY = 0x00002000
FF0 = 0x00000000
FF1 = 0x00002000
NLDLY = 0x00004000
NL0 = 0x00000000
NL1 = 0x00004000
VTDLY = 0x00008000
VT0 = 0x00000000
VT1 = 0x00008000
DLY_MASK = (NLDLY | CRDLY | TABDLY | BSDLY | VTDLY | FFDLY)
_CBAUD = 0x0000000f
CSIZE = 0x00000030
CS5 = 0x00000000
CS6 = 0x00000010
CS7 = 0x00000020
CS8 = 0x00000030
CSTOPB = 0x00000040
CREAD = 0x00000080
PARENB = 0x00000100
PARODD = 0x00000200
HUPCL = 0x00000400
CLOCAL = 0x00000800
_CIBAUD = 0x000f0000
_IBSHIFT = 16
CIBAUD = _CIBAUD
IBSHIFT = _IBSHIFT
PAREXT = 0x00100000
ISIG = 0x00000001
ICANON = 0x00000002
XCASE = 0x00000004
ECHO = 0x00000008
ECHOE = 0x00000010
ECHOK = 0x00000020
ECHONL = 0x00000040
NOFLSH = 0x00000080
TOSTOP = 0x00010000
ECHOCTL = 0x00020000
ECHOPRT = 0x00040000
ECHOKE = 0x00080000
FLUSHO = 0x00100000
PENDIN = 0x20000000
IEXTEN = 0x00200000