OLD | NEW |
(Empty) | |
| 1 #undef NCCS |
| 2 #define NCCS 19 |
| 3 struct termios |
| 4 { |
| 5 tcflag_t c_iflag; |
| 6 tcflag_t c_oflag; |
| 7 tcflag_t c_cflag; |
| 8 tcflag_t c_lflag; |
| 9 cc_t c_cc[NCCS]; |
| 10 cc_t c_line; |
| 11 speed_t __c_ispeed; |
| 12 speed_t __c_ospeed; |
| 13 }; |
| 14 |
| 15 #define VINTR 0 |
| 16 #define VQUIT 1 |
| 17 #define VERASE 2 |
| 18 #define VKILL 3 |
| 19 #define VEOF 4 |
| 20 #define VMIN 5 |
| 21 #define VEOL 6 |
| 22 #define VTIME 7 |
| 23 #define VEOL2 8 |
| 24 #define VSWTC 9 |
| 25 #define VWERASE 10 |
| 26 #define VREPRINT 11 |
| 27 #define VSUSP 12 |
| 28 #define VSTART 13 |
| 29 #define VSTOP 14 |
| 30 #define VLNEXT 15 |
| 31 #define VDISCARD 16 |
| 32 |
| 33 #define IGNBRK 0000001 |
| 34 #define BRKINT 0000002 |
| 35 #define IGNPAR 0000004 |
| 36 #define PARMRK 0000010 |
| 37 #define INPCK 0000020 |
| 38 #define ISTRIP 0000040 |
| 39 #define INLCR 0000100 |
| 40 #define IGNCR 0000200 |
| 41 #define ICRNL 0000400 |
| 42 #define IXON 0001000 |
| 43 #define IXOFF 0002000 |
| 44 #define IXANY 0004000 |
| 45 #define IUCLC 0010000 |
| 46 #define IMAXBEL 0020000 |
| 47 #define IUTF8 0040000 |
| 48 |
| 49 #define OPOST 0000001 |
| 50 #define ONLCR 0000002 |
| 51 #define OLCUC 0000004 |
| 52 #define OCRNL 0000010 |
| 53 #define ONOCR 0000020 |
| 54 #define ONLRET 0000040 |
| 55 #define OFILL 0000100 |
| 56 #define OFDEL 0000200 |
| 57 #define NLDLY 0001400 |
| 58 #define NL0 0000000 |
| 59 #define NL1 0000400 |
| 60 #define NL2 0001000 |
| 61 #define NL3 0001400 |
| 62 #define TABDLY 0006000 |
| 63 #define TAB0 0000000 |
| 64 #define TAB1 0002000 |
| 65 #define TAB2 0004000 |
| 66 #define TAB3 0006000 |
| 67 #define CRDLY 0030000 |
| 68 #define CR0 0000000 |
| 69 #define CR1 0010000 |
| 70 #define CR2 0020000 |
| 71 #define CR3 0030000 |
| 72 #define FFDLY 0040000 |
| 73 #define FF0 0000000 |
| 74 #define FF1 0040000 |
| 75 #define BSDLY 0100000 |
| 76 #define BS0 0000000 |
| 77 #define BS1 0100000 |
| 78 |
| 79 #define VTDLY 0200000 |
| 80 #define VT0 0000000 |
| 81 #define VT1 0200000 |
| 82 |
| 83 #define B0 0000000 |
| 84 #define B50 0000001 |
| 85 #define B75 0000002 |
| 86 #define B110 0000003 |
| 87 #define B134 0000004 |
| 88 #define B150 0000005 |
| 89 #define B200 0000006 |
| 90 #define B300 0000007 |
| 91 #define B600 0000010 |
| 92 #define B1200 0000011 |
| 93 #define B1800 0000012 |
| 94 #define B2400 0000013 |
| 95 #define B4800 0000014 |
| 96 #define B9600 0000015 |
| 97 #define B19200 0000016 |
| 98 #define B38400 0000017 |
| 99 #define EXTA 0000016 |
| 100 #define EXTB 0000017 |
| 101 |
| 102 #define B57600 00020 |
| 103 #define B115200 00021 |
| 104 #define B230400 00022 |
| 105 #define B460800 00023 |
| 106 #define B500000 00024 |
| 107 #define B576000 00025 |
| 108 #define B921600 00026 |
| 109 #define B1000000 00027 |
| 110 #define B1152000 00030 |
| 111 #define B1500000 00031 |
| 112 #define B2000000 00032 |
| 113 #define B2500000 00033 |
| 114 #define B3000000 00034 |
| 115 #define B3500000 00035 |
| 116 #define B4000000 00036 |
| 117 #define BOTHER 00037 |
| 118 |
| 119 #define CBAUD 00377 |
| 120 |
| 121 #define CSIZE 00001400 |
| 122 #define CS5 00000000 |
| 123 #define CS6 00000400 |
| 124 #define CS7 00001000 |
| 125 #define CS8 00001400 |
| 126 #define CSTOPB 00002000 |
| 127 #define CREAD 00004000 |
| 128 #define PARENB 00010000 |
| 129 #define PARODD 00020000 |
| 130 #define HUPCL 00040000 |
| 131 #define CLOCAL 00100000 |
| 132 |
| 133 #define ECHOKE 0x00000001 |
| 134 #define ECHOE 0x00000002 |
| 135 #define ECHOK 0x00000004 |
| 136 #define ECHO 0x00000008 |
| 137 #define ECHONL 0x00000010 |
| 138 #define ECHOPRT 0x00000020 |
| 139 #define ECHOCTL 0x00000040 |
| 140 #define ISIG 0x00000080 |
| 141 #define ICANON 0x00000100 |
| 142 #define IEXTEN 0x00000400 |
| 143 #define XCASE 0x00004000 |
| 144 #define TOSTOP 0x00400000 |
| 145 #define FLUSHO 0x00800000 |
| 146 #define PENDIN 0x20000000 |
| 147 #define NOFLSH 0x80000000 |
| 148 |
| 149 #define TCOOFF 0 |
| 150 #define TCOON 1 |
| 151 #define TCIOFF 2 |
| 152 #define TCION 3 |
| 153 |
| 154 #define TCIFLUSH 0 |
| 155 #define TCOFLUSH 1 |
| 156 #define TCIOFLUSH 2 |
| 157 |
| 158 #define TCSANOW 0 |
| 159 #define TCSADRAIN 1 |
| 160 #define TCSAFLUSH 2 |
| 161 |
| 162 #if defined(_GNU_SOURCE) || defined(_BSD_SOURCE) |
| 163 #define CBAUDEX 0000000 |
| 164 #define CIBAUD 077600000 |
| 165 #define IBSHIFT 16 |
| 166 #define CMSPAR 010000000000 |
| 167 #define CRTSCTS 020000000000 |
| 168 #define EXTPROC 0x10000000 |
| 169 #define XTABS 00006000 |
| 170 #endif |
OLD | NEW |