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