Guido van Rossum | 86dc1e6 | 1995-03-31 11:34:23 +0000 | [diff] [blame] | 1 | # Generated by h2py from /usr/include/termios.h |
| 2 | |
| 3 | # Included from sys/termios.h |
| 4 | |
| 5 | # Included from sys/feature_tests.h |
| 6 | _POSIX_C_SOURCE = 1 |
| 7 | |
| 8 | # Included from sys/ttydev.h |
| 9 | B0 = 0 |
| 10 | B50 = 1 |
| 11 | B75 = 2 |
| 12 | B110 = 3 |
| 13 | B134 = 4 |
| 14 | B150 = 5 |
| 15 | B200 = 6 |
| 16 | B300 = 7 |
| 17 | B600 = 8 |
| 18 | B1200 = 9 |
| 19 | B1800 = 10 |
| 20 | B2400 = 11 |
| 21 | B4800 = 12 |
| 22 | B9600 = 13 |
| 23 | B19200 = 14 |
| 24 | B38400 = 15 |
| 25 | EXTA = 14 |
| 26 | EXTB = 15 |
| 27 | |
| 28 | # Included from sys/types.h |
| 29 | |
Guido van Rossum | 86dc1e6 | 1995-03-31 11:34:23 +0000 | [diff] [blame] | 30 | # Included from sys/isa_defs.h |
Guido van Rossum | 725a67e | 1997-05-13 17:45:56 +0000 | [diff] [blame] | 31 | _CHAR_ALIGNMENT = 1 |
| 32 | _SHORT_ALIGNMENT = 2 |
| 33 | _INT_ALIGNMENT = 4 |
| 34 | _LONG_ALIGNMENT = 4 |
| 35 | _LONG_LONG_ALIGNMENT = 4 |
| 36 | _DOUBLE_ALIGNMENT = 4 |
| 37 | _LONG_DOUBLE_ALIGNMENT = 4 |
| 38 | _POINTER_ALIGNMENT = 4 |
| 39 | _MAX_ALIGNMENT = 4 |
| 40 | _ALIGNMENT_REQUIRED = 0 |
| 41 | _CHAR_ALIGNMENT = 1 |
| 42 | _SHORT_ALIGNMENT = 2 |
| 43 | _INT_ALIGNMENT = 4 |
| 44 | _LONG_ALIGNMENT = 4 |
| 45 | _LONG_LONG_ALIGNMENT = 8 |
| 46 | _DOUBLE_ALIGNMENT = 8 |
| 47 | _LONG_DOUBLE_ALIGNMENT = 16 |
| 48 | _POINTER_ALIGNMENT = 4 |
| 49 | _MAX_ALIGNMENT = 16 |
| 50 | _ALIGNMENT_REQUIRED = 1 |
| 51 | _CHAR_ALIGNMENT = 1 |
| 52 | _SHORT_ALIGNMENT = 2 |
| 53 | _INT_ALIGNMENT = 4 |
| 54 | _LONG_ALIGNMENT = 4 |
| 55 | _LONG_LONG_ALIGNMENT = 8 |
| 56 | _DOUBLE_ALIGNMENT = 8 |
| 57 | _LONG_DOUBLE_ALIGNMENT = 8 |
| 58 | _POINTER_ALIGNMENT = 4 |
| 59 | _MAX_ALIGNMENT = 8 |
| 60 | _ALIGNMENT_REQUIRED = 1 |
| 61 | |
| 62 | # Included from sys/machtypes.h |
Guido van Rossum | 86dc1e6 | 1995-03-31 11:34:23 +0000 | [diff] [blame] | 63 | SHRT_MIN = -32768 |
| 64 | SHRT_MAX = 32767 |
| 65 | INT_MIN = (-2147483647-1) |
| 66 | INT_MAX = 2147483647 |
| 67 | LONG_MIN = (-2147483647-1) |
| 68 | LONG_MAX = 2147483647 |
| 69 | P_MYID = (-1) |
| 70 | |
| 71 | # Included from sys/select.h |
| 72 | |
| 73 | # Included from sys/time.h |
| 74 | DST_NONE = 0 |
| 75 | DST_USA = 1 |
| 76 | DST_AUST = 2 |
| 77 | DST_WET = 3 |
| 78 | DST_MET = 4 |
| 79 | DST_EET = 5 |
| 80 | DST_CAN = 6 |
| 81 | DST_GB = 7 |
| 82 | DST_RUM = 8 |
| 83 | DST_TUR = 9 |
| 84 | DST_AUSTALT = 10 |
| 85 | ITIMER_REAL = 0 |
| 86 | ITIMER_VIRTUAL = 1 |
| 87 | ITIMER_PROF = 2 |
| 88 | ITIMER_REALPROF = 3 |
| 89 | SEC = 1 |
| 90 | MILLISEC = 1000 |
| 91 | MICROSEC = 1000000 |
| 92 | NANOSEC = 1000000000 |
Guido van Rossum | 725a67e | 1997-05-13 17:45:56 +0000 | [diff] [blame] | 93 | __CLOCK_REALTIME0 = 0 |
Guido van Rossum | 86dc1e6 | 1995-03-31 11:34:23 +0000 | [diff] [blame] | 94 | CLOCK_VIRTUAL = 1 |
| 95 | CLOCK_PROF = 2 |
Guido van Rossum | 725a67e | 1997-05-13 17:45:56 +0000 | [diff] [blame] | 96 | __CLOCK_REALTIME3 = 3 |
| 97 | CLOCK_REALTIME = __CLOCK_REALTIME3 |
| 98 | CLOCK_REALTIME = __CLOCK_REALTIME0 |
Guido van Rossum | 86dc1e6 | 1995-03-31 11:34:23 +0000 | [diff] [blame] | 99 | TIMER_RELTIME = 0x0 |
| 100 | TIMER_ABSTIME = 0x1 |
| 101 | |
| 102 | # Included from sys/mutex.h |
| 103 | |
| 104 | # Included from sys/dki_lkinfo.h |
| 105 | |
| 106 | # Included from sys/dl.h |
| 107 | NOSTATS = 1 |
| 108 | LSB_NLKDS = 91 |
| 109 | def MUTEX_HELD(x): return (mutex_owned(x)) |
| 110 | |
| 111 | |
| 112 | # Included from time.h |
| 113 | NULL = 0 |
| 114 | CLOCKS_PER_SEC = 1000000 |
| 115 | |
| 116 | # Included from sys/siginfo.h |
| 117 | SIGEV_NONE = 1 |
| 118 | SIGEV_SIGNAL = 2 |
Guido van Rossum | 725a67e | 1997-05-13 17:45:56 +0000 | [diff] [blame] | 119 | SIGEV_THREAD = 3 |
Guido van Rossum | 86dc1e6 | 1995-03-31 11:34:23 +0000 | [diff] [blame] | 120 | SI_NOINFO = 32767 |
| 121 | SI_USER = 0 |
| 122 | SI_LWP = (-1) |
| 123 | SI_QUEUE = (-2) |
| 124 | SI_TIMER = (-3) |
| 125 | SI_ASYNCIO = (-4) |
| 126 | SI_MESGQ = (-5) |
| 127 | |
| 128 | # Included from sys/machsig.h |
| 129 | ILL_ILLOPC = 1 |
| 130 | ILL_ILLOPN = 2 |
| 131 | ILL_ILLADR = 3 |
| 132 | ILL_ILLTRP = 4 |
| 133 | ILL_PRVOPC = 5 |
| 134 | ILL_PRVREG = 6 |
| 135 | ILL_COPROC = 7 |
| 136 | ILL_BADSTK = 8 |
| 137 | NSIGILL = 8 |
| 138 | EMT_TAGOVF = 1 |
| 139 | NSIGEMT = 1 |
| 140 | FPE_INTDIV = 1 |
| 141 | FPE_INTOVF = 2 |
| 142 | FPE_FLTDIV = 3 |
| 143 | FPE_FLTOVF = 4 |
| 144 | FPE_FLTUND = 5 |
| 145 | FPE_FLTRES = 6 |
| 146 | FPE_FLTINV = 7 |
| 147 | FPE_FLTSUB = 8 |
| 148 | NSIGFPE = 8 |
| 149 | SEGV_MAPERR = 1 |
| 150 | SEGV_ACCERR = 2 |
| 151 | NSIGSEGV = 2 |
| 152 | BUS_ADRALN = 1 |
| 153 | BUS_ADRERR = 2 |
| 154 | BUS_OBJERR = 3 |
| 155 | NSIGBUS = 3 |
| 156 | TRAP_BRKPT = 1 |
| 157 | TRAP_TRACE = 2 |
| 158 | NSIGTRAP = 2 |
| 159 | CLD_EXITED = 1 |
| 160 | CLD_KILLED = 2 |
| 161 | CLD_DUMPED = 3 |
| 162 | CLD_TRAPPED = 4 |
| 163 | CLD_STOPPED = 5 |
| 164 | CLD_CONTINUED = 6 |
| 165 | NSIGCLD = 6 |
| 166 | POLL_IN = 1 |
| 167 | POLL_OUT = 2 |
| 168 | POLL_MSG = 3 |
| 169 | POLL_ERR = 4 |
| 170 | POLL_PRI = 5 |
| 171 | POLL_HUP = 6 |
| 172 | NSIGPOLL = 6 |
| 173 | PROF_SIG = 1 |
| 174 | NSIGPROF = 1 |
| 175 | SI_MAXSZ = 128 |
Guido van Rossum | 725a67e | 1997-05-13 17:45:56 +0000 | [diff] [blame] | 176 | def SI_CANQUEUE(c): return ((c) <= SI_QUEUE) |
| 177 | |
Guido van Rossum | 86dc1e6 | 1995-03-31 11:34:23 +0000 | [diff] [blame] | 178 | FD_SETSIZE = 1024 |
| 179 | NBBY = 8 |
| 180 | _POSIX_VDISABLE = 0 |
| 181 | def CTRL(c): return ((c)&037) |
| 182 | |
| 183 | IBSHIFT = 16 |
| 184 | NCC = 8 |
| 185 | NCCS = 19 |
| 186 | VINTR = 0 |
| 187 | VQUIT = 1 |
| 188 | VERASE = 2 |
| 189 | VKILL = 3 |
| 190 | VEOF = 4 |
| 191 | VEOL = 5 |
| 192 | VEOL2 = 6 |
| 193 | VMIN = 4 |
| 194 | VTIME = 5 |
| 195 | VSWTCH = 7 |
| 196 | VSTART = 8 |
| 197 | VSTOP = 9 |
| 198 | VSUSP = 10 |
| 199 | VDSUSP = 11 |
| 200 | VREPRINT = 12 |
| 201 | VDISCARD = 13 |
| 202 | VWERASE = 14 |
| 203 | VLNEXT = 15 |
| 204 | VCEOF = NCC |
| 205 | VCEOL = (NCC + 1) |
| 206 | CNUL = 0 |
| 207 | CDEL = 0177 |
| 208 | CESC = ord('\\') |
| 209 | CINTR = CTRL(ord('c')) |
| 210 | CQUIT = 034 |
| 211 | CERASE = 0177 |
| 212 | CKILL = CTRL(ord('u')) |
| 213 | CEOT = 04 |
| 214 | CEOL = 0 |
| 215 | CEOL2 = 0 |
| 216 | CEOF = 04 |
| 217 | CSTART = 021 |
| 218 | CSTOP = 023 |
| 219 | CSWTCH = 032 |
| 220 | CNSWTCH = 0 |
| 221 | CSUSP = CTRL(ord('z')) |
| 222 | CDSUSP = CTRL(ord('y')) |
| 223 | CRPRNT = CTRL(ord('r')) |
| 224 | CFLUSH = CTRL(ord('o')) |
| 225 | CWERASE = CTRL(ord('w')) |
| 226 | CLNEXT = CTRL(ord('v')) |
| 227 | IGNBRK = 0000001 |
| 228 | BRKINT = 0000002 |
| 229 | IGNPAR = 0000004 |
| 230 | PARMRK = 0000010 |
| 231 | INPCK = 0000020 |
| 232 | ISTRIP = 0000040 |
| 233 | INLCR = 0000100 |
| 234 | IGNCR = 0000200 |
| 235 | ICRNL = 0000400 |
| 236 | IUCLC = 0001000 |
| 237 | IXON = 0002000 |
| 238 | IXANY = 0004000 |
| 239 | IXOFF = 0010000 |
| 240 | IMAXBEL = 0020000 |
| 241 | DOSMODE = 0100000 |
| 242 | OPOST = 0000001 |
| 243 | OLCUC = 0000002 |
| 244 | ONLCR = 0000004 |
| 245 | OCRNL = 0000010 |
| 246 | ONOCR = 0000020 |
| 247 | ONLRET = 0000040 |
| 248 | OFILL = 0000100 |
| 249 | OFDEL = 0000200 |
| 250 | NLDLY = 0000400 |
| 251 | NL0 = 0 |
| 252 | NL1 = 0000400 |
| 253 | CRDLY = 0003000 |
| 254 | CR0 = 0 |
| 255 | CR1 = 0001000 |
| 256 | CR2 = 0002000 |
| 257 | CR3 = 0003000 |
| 258 | TABDLY = 0014000 |
| 259 | TAB0 = 0 |
| 260 | TAB1 = 0004000 |
| 261 | TAB2 = 0010000 |
| 262 | TAB3 = 0014000 |
| 263 | XTABS = 0014000 |
| 264 | BSDLY = 0020000 |
| 265 | BS0 = 0 |
| 266 | BS1 = 0020000 |
| 267 | VTDLY = 0040000 |
| 268 | VT0 = 0 |
| 269 | VT1 = 0040000 |
| 270 | FFDLY = 0100000 |
| 271 | FF0 = 0 |
| 272 | FF1 = 0100000 |
| 273 | PAGEOUT = 0200000 |
| 274 | WRAP = 0400000 |
| 275 | CBAUD = 0000017 |
| 276 | CSIZE = 0000060 |
| 277 | CS5 = 0 |
| 278 | CS6 = 0000020 |
| 279 | CS7 = 0000040 |
| 280 | CS8 = 0000060 |
| 281 | CSTOPB = 0000100 |
| 282 | CREAD = 0000200 |
| 283 | PARENB = 0000400 |
| 284 | PARODD = 0001000 |
| 285 | HUPCL = 0002000 |
| 286 | CLOCAL = 0004000 |
| 287 | RCV1EN = 0010000 |
| 288 | XMT1EN = 0020000 |
| 289 | LOBLK = 0040000 |
| 290 | XCLUDE = 0100000 |
Guido van Rossum | 725a67e | 1997-05-13 17:45:56 +0000 | [diff] [blame] | 291 | CRTSXOFF = 010000000000 |
Guido van Rossum | 86dc1e6 | 1995-03-31 11:34:23 +0000 | [diff] [blame] | 292 | CRTSCTS = 020000000000 |
| 293 | CIBAUD = 03600000 |
| 294 | PAREXT = 04000000 |
Guido van Rossum | 725a67e | 1997-05-13 17:45:56 +0000 | [diff] [blame] | 295 | CBAUDEXT = 010000000 |
| 296 | CIBAUDEXT = 020000000 |
| 297 | CRTS_IFLOW = 010000000000 |
| 298 | CCTS_OFLOW = 020000000000 |
Guido van Rossum | 86dc1e6 | 1995-03-31 11:34:23 +0000 | [diff] [blame] | 299 | ISIG = 0000001 |
| 300 | ICANON = 0000002 |
| 301 | XCASE = 0000004 |
| 302 | ECHO = 0000010 |
| 303 | ECHOE = 0000020 |
| 304 | ECHOK = 0000040 |
| 305 | ECHONL = 0000100 |
| 306 | NOFLSH = 0000200 |
| 307 | TOSTOP = 0000400 |
| 308 | ECHOCTL = 0001000 |
| 309 | ECHOPRT = 0002000 |
| 310 | ECHOKE = 0004000 |
| 311 | DEFECHO = 0010000 |
| 312 | FLUSHO = 0020000 |
| 313 | PENDIN = 0040000 |
| 314 | IEXTEN = 0100000 |
| 315 | _TIOC = (ord('T')<<8) |
| 316 | TIOC = _TIOC |
| 317 | TCGETA = (_TIOC|1) |
| 318 | TCSETA = (_TIOC|2) |
| 319 | TCSETAW = (_TIOC|3) |
| 320 | TCSETAF = (_TIOC|4) |
| 321 | TCSBRK = (_TIOC|5) |
| 322 | TCXONC = (_TIOC|6) |
| 323 | TCFLSH = (_TIOC|7) |
| 324 | TIOCKBON = (_TIOC|8) |
| 325 | TIOCKBOF = (_TIOC|9) |
| 326 | KBENABLED = (_TIOC|10) |
| 327 | IOCTYPE = 0xff00 |
| 328 | TCDSET = (_TIOC|32) |
| 329 | RTS_TOG = (_TIOC|33) |
| 330 | TIOCGWINSZ = (_TIOC|104) |
| 331 | TIOCSWINSZ = (_TIOC|103) |
| 332 | TIOCGSOFTCAR = (_TIOC|105) |
| 333 | TIOCSSOFTCAR = (_TIOC|106) |
| 334 | TCGETS = (_TIOC|13) |
| 335 | TCSETS = (_TIOC|14) |
| 336 | TCSANOW = (_TIOC|14) |
| 337 | TCSETSW = (_TIOC|15) |
| 338 | TCSADRAIN = (_TIOC|15) |
| 339 | TCSETSF = (_TIOC|16) |
| 340 | TCSAFLUSH = (_TIOC|16) |
| 341 | TCIFLUSH = 0 |
| 342 | TCOFLUSH = 1 |
| 343 | TCIOFLUSH = 2 |
| 344 | TCOOFF = 0 |
| 345 | TCOON = 1 |
| 346 | TCIOFF = 2 |
| 347 | TCION = 3 |
| 348 | tIOC = (ord('t')<<8) |
| 349 | TIOCGETD = (tIOC|0) |
| 350 | TIOCSETD = (tIOC|1) |
| 351 | TIOCHPCL = (tIOC|2) |
| 352 | TIOCGETP = (tIOC|8) |
| 353 | TIOCSETP = (tIOC|9) |
| 354 | TIOCSETN = (tIOC|10) |
| 355 | TIOCEXCL = (tIOC|13) |
| 356 | TIOCNXCL = (tIOC|14) |
| 357 | TIOCFLUSH = (tIOC|16) |
| 358 | TIOCSETC = (tIOC|17) |
| 359 | TIOCGETC = (tIOC|18) |
| 360 | TIOCLBIS = (tIOC|127) |
| 361 | TIOCLBIC = (tIOC|126) |
| 362 | TIOCLSET = (tIOC|125) |
| 363 | TIOCLGET = (tIOC|124) |
| 364 | TIOCSBRK = (tIOC|123) |
| 365 | TIOCCBRK = (tIOC|122) |
| 366 | TIOCSDTR = (tIOC|121) |
| 367 | TIOCCDTR = (tIOC|120) |
| 368 | TIOCSLTC = (tIOC|117) |
| 369 | TIOCGLTC = (tIOC|116) |
| 370 | TIOCOUTQ = (tIOC|115) |
| 371 | TIOCNOTTY = (tIOC|113) |
| 372 | TIOCSTOP = (tIOC|111) |
| 373 | TIOCSTART = (tIOC|110) |
| 374 | TIOCGPGRP = (tIOC|20) |
| 375 | TIOCSPGRP = (tIOC|21) |
| 376 | TIOCGSID = (tIOC|22) |
| 377 | TIOCSSID = (tIOC|24) |
| 378 | TIOCSTI = (tIOC|23) |
| 379 | TIOCMSET = (tIOC|26) |
| 380 | TIOCMBIS = (tIOC|27) |
| 381 | TIOCMBIC = (tIOC|28) |
| 382 | TIOCMGET = (tIOC|29) |
| 383 | TIOCM_LE = 0001 |
| 384 | TIOCM_DTR = 0002 |
| 385 | TIOCM_RTS = 0004 |
| 386 | TIOCM_ST = 0010 |
| 387 | TIOCM_SR = 0020 |
| 388 | TIOCM_CTS = 0040 |
| 389 | TIOCM_CAR = 0100 |
| 390 | TIOCM_CD = TIOCM_CAR |
| 391 | TIOCM_RNG = 0200 |
| 392 | TIOCM_RI = TIOCM_RNG |
| 393 | TIOCM_DSR = 0400 |
| 394 | TIOCREMOTE = (tIOC|30) |
| 395 | TIOCSIGNAL = (tIOC|31) |
| 396 | LDIOC = (ord('D')<<8) |
| 397 | LDOPEN = (LDIOC|0) |
| 398 | LDCLOSE = (LDIOC|1) |
| 399 | LDCHG = (LDIOC|2) |
| 400 | LDGETT = (LDIOC|8) |
| 401 | LDSETT = (LDIOC|9) |
| 402 | LDSMAP = (LDIOC|110) |
| 403 | LDGMAP = (LDIOC|111) |
| 404 | LDNMAP = (LDIOC|112) |
| 405 | LDEMAP = (LDIOC|113) |
| 406 | LDDMAP = (LDIOC|114) |
| 407 | DIOC = (ord('d')<<8) |
| 408 | DIOCGETP = (DIOC|8) |
| 409 | DIOCSETP = (DIOC|9) |
| 410 | FIORDCHK = ((ord('f')<<8)|3) |
| 411 | B0 = 0 |
| 412 | B50 = 1 |
| 413 | B75 = 2 |
| 414 | B110 = 3 |
| 415 | B134 = 4 |
| 416 | B150 = 5 |
| 417 | B200 = 6 |
| 418 | B300 = 7 |
| 419 | B600 = 8 |
| 420 | B1200 = 9 |
| 421 | B1800 = 10 |
| 422 | B2400 = 11 |
| 423 | B4800 = 12 |
| 424 | B9600 = 13 |
| 425 | B19200 = 14 |
| 426 | B38400 = 15 |
Guido van Rossum | 725a67e | 1997-05-13 17:45:56 +0000 | [diff] [blame] | 427 | B57600 = 16 |
| 428 | B76800 = 17 |
| 429 | B115200 = 18 |
| 430 | B153600 = 19 |
| 431 | B230400 = 20 |
| 432 | B307200 = 21 |
| 433 | B460800 = 22 |