 |
Changeset 3916
- Timestamp:
- 08/27/08 18:50:47
(3 months ago)
- Author:
- Nietsnie
- Message:
Updated termios to include darwin consts and definitions
-
Files:
-
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
| r3113 |
r3916 |
|
| 122 | 122 | int tcsetattr(int, int, in termios*); |
|---|
| 123 | 123 | */ |
|---|
| | 124 | |
|---|
| | 125 | version ( darwin) |
|---|
| | 126 | { |
|---|
| | 127 | alias ubyte cc_t; |
|---|
| | 128 | alias uint speed_t; |
|---|
| | 129 | alias uint tcflag_t; |
|---|
| | 130 | |
|---|
| | 131 | const NCCS = 20; |
|---|
| | 132 | |
|---|
| | 133 | struct termios |
|---|
| | 134 | { |
|---|
| | 135 | tcflag_t c_iflag; |
|---|
| | 136 | tcflag_t c_oflag; |
|---|
| | 137 | tcflag_t c_cflag; |
|---|
| | 138 | tcflag_t c_lflag; |
|---|
| | 139 | cc_t[NCCS] c_cc; |
|---|
| | 140 | speed_t c_ispeed; |
|---|
| | 141 | speed_t c_ospeed; |
|---|
| | 142 | } |
|---|
| | 143 | |
|---|
| | 144 | const VEOF = 0; |
|---|
| | 145 | const VEOL = 1; |
|---|
| | 146 | const VERASE = 3; |
|---|
| | 147 | const VINTR = 8; |
|---|
| | 148 | const VKILL = 5; |
|---|
| | 149 | const VMIN = 16; |
|---|
| | 150 | const VQUIT = 9; |
|---|
| | 151 | const VSTART = 12; |
|---|
| | 152 | const VSTOP = 13; |
|---|
| | 153 | const VSUSP = 10; |
|---|
| | 154 | const VTIME = 17; |
|---|
| | 155 | |
|---|
| | 156 | const BRKINT = 0x0000002; |
|---|
| | 157 | const ICRNL = 0x0000100; |
|---|
| | 158 | const IGNBRK = 0x0000001; |
|---|
| | 159 | const IGNCR = 0x0000080; |
|---|
| | 160 | const IGNPAR = 0x0000004; |
|---|
| | 161 | const INLCR = 0x0000040; |
|---|
| | 162 | const INPCK = 0x0000010; |
|---|
| | 163 | const ISTRIP = 0x0000020; |
|---|
| | 164 | const IXOFF = 0x0000400; |
|---|
| | 165 | const IXON = 0x0000200; |
|---|
| | 166 | const PARMRK = 0x0000008; |
|---|
| | 167 | |
|---|
| | 168 | const OPOST = 0x0000001; |
|---|
| | 169 | |
|---|
| | 170 | const B0 = 0; |
|---|
| | 171 | const B50 = 50; |
|---|
| | 172 | const B75 = 75; |
|---|
| | 173 | const B110 = 110; |
|---|
| | 174 | const B134 = 134; |
|---|
| | 175 | const B150 = 150; |
|---|
| | 176 | const B200 = 200; |
|---|
| | 177 | const B300 = 300; |
|---|
| | 178 | const B600 = 600; |
|---|
| | 179 | const B1200 = 1200; |
|---|
| | 180 | const B1800 = 1800; |
|---|
| | 181 | const B2400 = 2400; |
|---|
| | 182 | const B4800 = 4800; |
|---|
| | 183 | const B9600 = 9600; |
|---|
| | 184 | const B19200 = 19200; |
|---|
| | 185 | const B38400 = 38400; |
|---|
| | 186 | |
|---|
| | 187 | const CSIZE = 0x0000300; |
|---|
| | 188 | const CS5 = 0x0000000; |
|---|
| | 189 | const CS6 = 0x0000100; |
|---|
| | 190 | const CS7 = 0x0000200; |
|---|
| | 191 | const CS8 = 0x0000300; |
|---|
| | 192 | const CSTOPB = 0x0000400; |
|---|
| | 193 | const CREAD = 0x0000800; |
|---|
| | 194 | const PARENB = 0x0001000; |
|---|
| | 195 | const PARODD = 0x0002000; |
|---|
| | 196 | const HUPCL = 0x0004000; |
|---|
| | 197 | const CLOCAL = 0x0008000; |
|---|
| | 198 | |
|---|
| | 199 | const ECHO = 0x00000008; |
|---|
| | 200 | const ECHOE = 0x00000002; |
|---|
| | 201 | const ECHOK = 0x00000004; |
|---|
| | 202 | const ECHONL = 0x00000010; |
|---|
| | 203 | const ICANON = 0x00000100; |
|---|
| | 204 | const IEXTEN = 0x00000400; |
|---|
| | 205 | const ISIG = 0x00000080; |
|---|
| | 206 | const NOFLSH = 0x80000000; |
|---|
| | 207 | const TOSTOP = 0x00400000; |
|---|
| | 208 | |
|---|
| | 209 | const TCSANOW = 0; |
|---|
| | 210 | const TCSADRAIN = 1; |
|---|
| | 211 | const TCSAFLUSH = 2; |
|---|
| | 212 | |
|---|
| | 213 | const TCIFLUSH = 1; |
|---|
| | 214 | const TCOFLUSH = 2; |
|---|
| | 215 | const TCIOFLUSH = 3; |
|---|
| | 216 | |
|---|
| | 217 | const TCIOFF = 3; |
|---|
| | 218 | const TCION = 4; |
|---|
| | 219 | const TCOOFF = 1; |
|---|
| | 220 | const TCOON = 2; |
|---|
| | 221 | |
|---|
| | 222 | speed_t cfgetispeed(in termios*); |
|---|
| | 223 | speed_t cfgetospeed(in termios*); |
|---|
| | 224 | int cfsetispeed(termios*, speed_t); |
|---|
| | 225 | int cfsetospeed(termios*, speed_t); |
|---|
| | 226 | int tcdrain(int); |
|---|
| | 227 | int tcflow(int, int); |
|---|
| | 228 | int tcflush(int, int); |
|---|
| | 229 | int tcgetattr(int, termios*); |
|---|
| | 230 | int tcsendbreak(int, int); |
|---|
| | 231 | int tcsetattr(int, int, in termios*); |
|---|
| | 232 | |
|---|
| | 233 | } |
|---|
| 124 | 234 | |
|---|
| 125 | 235 | version( linux ) |
|---|
Download in other formats:
|
 |
 |
|
 |
Copyright © 2006-2008 Tango. All Rights Reserved. | Page Width:
Static or
Dynamic