Guido van Rossum | 73b20df | 1994-09-12 10:39:08 +0000 | [diff] [blame] | 1 | # Generated by h2py from /usr/include/termios.h |
| 2 | |
| 3 | # Included from sys/termios.h |
| 4 | |
| 5 | # Included from sys/ttydev.h |
| 6 | B0 = 0 |
| 7 | B50 = 0000001 |
| 8 | B75 = 0000002 |
| 9 | B110 = 0000003 |
| 10 | B134 = 0000004 |
| 11 | B150 = 0000005 |
| 12 | B200 = 0000006 |
| 13 | B300 = 0000007 |
| 14 | B600 = 0000010 |
| 15 | B1200 = 0000011 |
| 16 | B1800 = 0000012 |
| 17 | B2400 = 0000013 |
| 18 | B4800 = 0000014 |
| 19 | B9600 = 0000015 |
| 20 | B19200 = 0000016 |
| 21 | EXTA = 0000016 |
| 22 | B38400 = 0000017 |
| 23 | EXTB = 0000017 |
| 24 | |
| 25 | # Included from sys/types.h |
| 26 | |
| 27 | # Included from sgidefs.h |
| 28 | _MIPS_ISA_MIPS1 = 1 |
| 29 | _MIPS_ISA_MIPS2 = 2 |
| 30 | _MIPS_ISA_MIPS3 = 3 |
| 31 | _MIPS_ISA_MIPS4 = 4 |
| 32 | _MIPS_SIM_ABI32 = 1 |
| 33 | _MIPS_SIM_ABI64 = 2 |
| 34 | P_MYID = (-1) |
| 35 | P_MYHOSTID = (-1) |
| 36 | |
| 37 | # Included from sys/bsd_types.h |
| 38 | |
| 39 | # Included from sys/mkdev.h |
| 40 | ONBITSMAJOR = 7 |
| 41 | ONBITSMINOR = 8 |
| 42 | OMAXMAJ = 0x7f |
| 43 | OMAXMIN = 0xff |
| 44 | NBITSMAJOR = 14 |
| 45 | NBITSMINOR = 18 |
| 46 | MAXMAJ = 0xff |
| 47 | MAXMIN = 0x3ffff |
| 48 | OLDDEV = 0 |
| 49 | NEWDEV = 1 |
| 50 | MKDEV_VER = NEWDEV |
| 51 | def major(dev): return __major(MKDEV_VER, dev) |
| 52 | |
| 53 | def minor(dev): return __minor(MKDEV_VER, dev) |
| 54 | |
| 55 | |
| 56 | # Included from sys/select.h |
| 57 | FD_SETSIZE = 1024 |
| 58 | NBBY = 8 |
| 59 | _POSIX_VDISABLE = 0 |
| 60 | def CTRL(c): return ((c)&037) |
| 61 | |
| 62 | IBSHIFT = 16 |
| 63 | NCC = 8 |
| 64 | NCCS = 23 |
| 65 | VINTR = 0 |
| 66 | VQUIT = 1 |
| 67 | VERASE = 2 |
| 68 | VKILL = 3 |
| 69 | VEOF = 4 |
| 70 | VEOL = 5 |
| 71 | VEOL2 = 6 |
| 72 | VMIN = 4 |
| 73 | VTIME = 5 |
| 74 | VSWTCH = 7 |
| 75 | VSTART = 8 |
| 76 | VSTOP = 9 |
| 77 | VSUSP = 10 |
| 78 | VDSUSP = 11 |
| 79 | VREPRINT = 12 |
| 80 | VDISCARD = 13 |
| 81 | VWERASE = 14 |
| 82 | VLNEXT = 15 |
| 83 | VRPRNT = VREPRINT |
| 84 | VFLUSHO = VDISCARD |
| 85 | VCEOF = NCC |
| 86 | VCEOL = (NCC + 1) |
| 87 | CNUL = 0 |
| 88 | CDEL = 0377 |
| 89 | CESC = ord('\\') |
| 90 | CINTR = 0177 |
| 91 | CQUIT = 034 |
| 92 | CERASE = CTRL(ord('H')) |
| 93 | CKILL = CTRL(ord('U')) |
| 94 | CEOL = 0 |
| 95 | CEOL2 = 0 |
| 96 | CEOF = CTRL(ord('d')) |
| 97 | CEOT = CEOF |
| 98 | CSTART = CTRL(ord('q')) |
| 99 | CSTOP = CTRL(ord('s')) |
| 100 | CSWTCH = CTRL(ord('z')) |
| 101 | CNSWTCH = 0 |
| 102 | CSUSP = CSWTCH |
| 103 | CLNEXT = CTRL(ord('v')) |
| 104 | CWERASE = CTRL(ord('w')) |
| 105 | CFLUSHO = CTRL(ord('o')) |
| 106 | CFLUSH = CFLUSHO |
| 107 | CRPRNT = CTRL(ord('r')) |
| 108 | CDSUSP = CTRL(ord('y')) |
| 109 | CBRK = 0377 |
| 110 | IGNBRK = 0000001 |
| 111 | BRKINT = 0000002 |
| 112 | IGNPAR = 0000004 |
| 113 | PARMRK = 0000010 |
| 114 | INPCK = 0000020 |
| 115 | ISTRIP = 0000040 |
| 116 | INLCR = 0000100 |
| 117 | IGNCR = 0000200 |
| 118 | ICRNL = 0000400 |
| 119 | IUCLC = 0001000 |
| 120 | IXON = 0002000 |
| 121 | IXANY = 0004000 |
| 122 | IXOFF = 0010000 |
| 123 | IMAXBEL = 0020000 |
| 124 | IBLKMD = 0040000 |
| 125 | OPOST = 0000001 |
| 126 | OLCUC = 0000002 |
| 127 | ONLCR = 0000004 |
| 128 | OCRNL = 0000010 |
| 129 | ONOCR = 0000020 |
| 130 | ONLRET = 0000040 |
| 131 | OFILL = 0000100 |
| 132 | OFDEL = 0000200 |
| 133 | NLDLY = 0000400 |
| 134 | NL0 = 0 |
| 135 | NL1 = 0000400 |
| 136 | CRDLY = 0003000 |
| 137 | CR0 = 0 |
| 138 | CR1 = 0001000 |
| 139 | CR2 = 0002000 |
| 140 | CR3 = 0003000 |
| 141 | TABDLY = 0014000 |
| 142 | TAB0 = 0 |
| 143 | TAB1 = 0004000 |
| 144 | TAB2 = 0010000 |
| 145 | TAB3 = 0014000 |
| 146 | XTABS = 0014000 |
| 147 | BSDLY = 0020000 |
| 148 | BS0 = 0 |
| 149 | BS1 = 0020000 |
| 150 | VTDLY = 0040000 |
| 151 | VT0 = 0 |
| 152 | VT1 = 0040000 |
| 153 | FFDLY = 0100000 |
| 154 | FF0 = 0 |
| 155 | FF1 = 0100000 |
| 156 | PAGEOUT = 0200000 |
| 157 | WRAP = 0400000 |
| 158 | CBAUD = 000000017 |
| 159 | CSIZE = 000000060 |
| 160 | CS5 = 0 |
| 161 | CS6 = 000000020 |
| 162 | CS7 = 000000040 |
| 163 | CS8 = 000000060 |
| 164 | CSTOPB = 000000100 |
| 165 | CREAD = 000000200 |
| 166 | PARENB = 000000400 |
| 167 | PARODD = 000001000 |
| 168 | HUPCL = 000002000 |
| 169 | CLOCAL = 000004000 |
| 170 | RCV1EN = 000010000 |
| 171 | XMT1EN = 000020000 |
| 172 | LOBLK = 000040000 |
| 173 | XCLUDE = 000100000 |
| 174 | CIBAUD = 003600000 |
| 175 | PAREXT = 004000000 |
| 176 | CNEW_RTSCTS = 010000000 |
| 177 | ISIG = 0000001 |
| 178 | ICANON = 0000002 |
| 179 | XCASE = 0000004 |
| 180 | ECHO = 0000010 |
| 181 | ECHOE = 0000020 |
| 182 | ECHOK = 0000040 |
| 183 | ECHONL = 0000100 |
| 184 | NOFLSH = 0000200 |
| 185 | IEXTEN = 0000400 |
| 186 | ITOSTOP = 0100000 |
| 187 | TOSTOP = ITOSTOP |
| 188 | ECHOCTL = 0001000 |
| 189 | ECHOPRT = 0002000 |
| 190 | ECHOKE = 0004000 |
| 191 | DEFECHO = 0010000 |
| 192 | FLUSHO = 0020000 |
| 193 | PENDIN = 0040000 |
| 194 | TIOC = (ord('T')<<8) |
| 195 | TCGETA = (TIOC|1) |
| 196 | TCSETA = (TIOC|2) |
| 197 | TCSETAW = (TIOC|3) |
| 198 | TCSETAF = (TIOC|4) |
| 199 | TCSBRK = (TIOC|5) |
| 200 | TCXONC = (TIOC|6) |
| 201 | TCFLSH = (TIOC|7) |
| 202 | |
| 203 | # Included from sys/ioctl.h |
| 204 | IOCTYPE = 0xff00 |
| 205 | LIOC = (ord('l')<<8) |
| 206 | LIOCGETP = (LIOC|1) |
| 207 | LIOCSETP = (LIOC|2) |
| 208 | LIOCGETS = (LIOC|5) |
| 209 | LIOCSETS = (LIOC|6) |
| 210 | DIOC = (ord('d')<<8) |
| 211 | DIOCGETC = (DIOC|1) |
| 212 | DIOCGETB = (DIOC|2) |
| 213 | DIOCSETE = (DIOC|3) |
| 214 | |
| 215 | # Included from sys/ioccom.h |
| 216 | IOCPARM_MASK = 0xff |
| 217 | IOC_VOID = 0x20000000 |
| 218 | IOC_OUT = 0x40000000 |
| 219 | IOC_IN = 0x80000000 |
| 220 | IOC_INOUT = (IOC_IN|IOC_OUT) |
| 221 | |
| 222 | # Included from net/soioctl.h |
| 223 | |
| 224 | # Included from sys/termio.h |
| 225 | CLNEXT = CTRL(ord('v')) |
| 226 | CWERASE = CTRL(ord('w')) |
| 227 | CFLUSHO = CTRL(ord('o')) |
| 228 | CFLUSH = CFLUSHO |
| 229 | CRPRNT = CTRL(ord('r')) |
| 230 | CDSUSP = CTRL(ord('y')) |
| 231 | SSPEED = B9600 |
| 232 | TERM_NONE = 0 |
| 233 | TERM_TEC = 1 |
| 234 | TERM_V61 = 2 |
| 235 | TERM_V10 = 3 |
| 236 | TERM_TEX = 4 |
| 237 | TERM_D40 = 5 |
| 238 | TERM_H45 = 6 |
| 239 | TERM_D42 = 7 |
| 240 | TM_NONE = 0000 |
| 241 | TM_SNL = 0001 |
| 242 | TM_ANL = 0002 |
| 243 | TM_LCF = 0004 |
| 244 | TM_CECHO = 0010 |
| 245 | TM_CINVIS = 0020 |
| 246 | TM_SET = 0200 |
| 247 | LDISC0 = 0 |
| 248 | LDISC1 = 1 |
| 249 | NTTYDISC = LDISC1 |
| 250 | TIOCFLUSH = (TIOC|12) |
| 251 | TCSETLABEL = (TIOC|13) |
| 252 | TCDSET = (TIOC|32) |
| 253 | TCBLKMD = (TIOC|33) |
| 254 | TIOCPKT = (TIOC|112) |
| 255 | TIOCPKT_DATA = 0x00 |
| 256 | TIOCPKT_FLUSHREAD = 0x01 |
| 257 | TIOCPKT_FLUSHWRITE = 0x02 |
| 258 | TIOCPKT_NOSTOP = 0x10 |
| 259 | TIOCPKT_DOSTOP = 0x20 |
| 260 | TIOCPKT_IOCTL = 0x40 |
| 261 | TIOCNOTTY = (TIOC|113) |
| 262 | TIOCSTI = (TIOC|114) |
| 263 | TFIOC = (ord('F')<<8) |
| 264 | oFIONREAD = (TFIOC|127) |
| 265 | TO_STOP = LOBLK |
| 266 | IOCTYPE = 0xff00 |
| 267 | TCGETS = (TIOC|13) |
| 268 | TCSETS = (TIOC|14) |
| 269 | TCSETSW = (TIOC|15) |
| 270 | TCSETSF = (TIOC|16) |
| 271 | TCSANOW = ((ord('T')<<8)|14) |
| 272 | TCSADRAIN = ((ord('T')<<8)|15) |
| 273 | TCSAFLUSH = ((ord('T')<<8)|16) |
| 274 | TCIFLUSH = 0 |
| 275 | TCOFLUSH = 1 |
| 276 | TCIOFLUSH = 2 |
| 277 | TCOOFF = 0 |
| 278 | TCOON = 1 |
| 279 | TCIOFF = 2 |
| 280 | TCION = 3 |
| 281 | tIOC = (ord('t')<<8) |
| 282 | TIOCGETD = (tIOC|0) |
| 283 | TIOCSETD = (tIOC|1) |
| 284 | TIOCHPCL = (tIOC|2) |
| 285 | TIOCGETP = (tIOC|8) |
| 286 | TIOCSETP = (tIOC|9) |
| 287 | TIOCSETN = (tIOC|10) |
| 288 | TIOCEXCL = (tIOC|13) |
| 289 | TIOCNXCL = (tIOC|14) |
| 290 | TIOCSETC = (tIOC|17) |
| 291 | TIOCGETC = (tIOC|18) |
| 292 | TIOCLBIS = (tIOC|127) |
| 293 | TIOCLBIC = (tIOC|126) |
| 294 | TIOCLSET = (tIOC|125) |
| 295 | TIOCLGET = (tIOC|124) |
| 296 | TIOCSBRK = (tIOC|123) |
| 297 | TIOCCBRK = (tIOC|122) |
| 298 | TIOCSDTR = (tIOC|121) |
| 299 | TIOCCDTR = (tIOC|120) |
| 300 | TIOCSLTC = (tIOC|117) |
| 301 | TIOCGLTC = (tIOC|116) |
| 302 | TIOCOUTQ = (tIOC|115) |
| 303 | TIOCSTOP = (tIOC|111) |
| 304 | TIOCSTART = (tIOC|110) |
| 305 | TIOCGSID = (tIOC|22) |
| 306 | TIOCSSID = (tIOC|24) |
| 307 | TIOCMSET = (tIOC|26) |
| 308 | TIOCMBIS = (tIOC|27) |
| 309 | TIOCMBIC = (tIOC|28) |
| 310 | TIOCMGET = (tIOC|29) |
| 311 | TIOCM_LE = 0001 |
| 312 | TIOCM_DTR = 0002 |
| 313 | TIOCM_RTS = 0004 |
| 314 | TIOCM_ST = 0010 |
| 315 | TIOCM_SR = 0020 |
| 316 | TIOCM_CTS = 0040 |
| 317 | TIOCM_CAR = 0100 |
| 318 | TIOCM_CD = TIOCM_CAR |
| 319 | TIOCM_RNG = 0200 |
| 320 | TIOCM_RI = TIOCM_RNG |
| 321 | TIOCM_DSR = 0400 |
| 322 | TIOCREMOTE = (tIOC|30) |
| 323 | TIOCSIGNAL = (tIOC|31) |
| 324 | ISPTM = ((ord('P')<<8)|1) |
| 325 | UNLKPT = ((ord('P')<<8)|2) |
| 326 | SVR4SOPEN = ((ord('P')<<8)|100) |
| 327 | LDIOC = (ord('D')<<8) |
| 328 | LDOPEN = (LDIOC|0) |
| 329 | LDCLOSE = (LDIOC|1) |
| 330 | LDCHG = (LDIOC|2) |
| 331 | LDGETT = (LDIOC|8) |
| 332 | LDSETT = (LDIOC|9) |
| 333 | LDSMAP = (LDIOC|10) |
| 334 | LDGMAP = (LDIOC|11) |
| 335 | LDNMAP = (LDIOC|12) |
| 336 | DIOC = (ord('d')<<8) |
| 337 | DIOCGETP = (DIOC|8) |
| 338 | DIOCSETP = (DIOC|9) |
| 339 | FIORDCHK = ((ord('f')<<8)|3) |