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