2 * D header file for POSIX.
4 * Copyright: Public Domain
5 * License: Public Domain
7 * Standards: The Open Group Base Specifications Issue 6, IEEE Std 1003.1, 2004 Edition
9 module stdc.posix.termios;
11 private import stdc.posix.config;
12 public import stdc.posix.sys.types; // for pid_t
113 speed_t cfgetispeed(in termios*);
114 speed_t cfgetospeed(in termios*);
115 int cfsetispeed(termios*, speed_t);
116 int cfsetospeed(termios*, speed_t);
118 int tcflow(int, int);
119 int tcflush(int, int);
120 int tcgetattr(int, termios*);
121 int tcsendbreak(int, int);
122 int tcsetattr(int, int, in termios*);
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;
168 const OPOST = 0x0000001;
184 const B19200 = 19200;
185 const B38400 = 38400;
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;
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;
222 speed_t cfgetispeed(in termios*);
223 speed_t cfgetospeed(in termios*);
224 int cfsetispeed(termios*, speed_t);
225 int cfsetospeed(termios*, speed_t);
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*);
234 else version( linux )
266 const BRKINT = 0000002;
267 const ICRNL = 0000400;
268 const IGNBRK = 0000001;
269 const IGNCR = 0000200;
270 const IGNPAR = 0000004;
271 const INLCR = 0000100;
272 const INPCK = 0000020;
273 const ISTRIP = 0000040;
274 const IXOFF = 0010000;
275 const IXON = 0002000;
276 const PARMRK = 0000010;
278 const OPOST = 0000001;
283 const B110 = 0000003;
284 const B134 = 0000004;
285 const B150 = 0000005;
286 const B200 = 0000006;
287 const B300 = 0000007;
288 const B600 = 0000010;
289 const B1200 = 0000011;
290 const B1800 = 0000012;
291 const B2400 = 0000013;
292 const B4800 = 0000014;
293 const B9600 = 0000015;
294 const B19200 = 0000016;
295 const B38400 = 0000017;
297 const CSIZE = 0000060;
302 const CSTOPB = 0000100;
303 const CREAD = 0000200;
304 const PARENB = 0000400;
305 const PARODD = 0001000;
306 const HUPCL = 0002000;
307 const CLOCAL = 0004000;
309 const ECHO = 0000010;
310 const ECHOE = 0000020;
311 const ECHOK = 0000040;
312 const ECHONL = 0000100;
313 const ICANON = 0000002;
314 const IEXTEN = 0100000;
315 const ISIG = 0000001;
316 const NOFLSH = 0000200;
317 const TOSTOP = 0000400;
332 speed_t cfgetispeed(in termios*);
333 speed_t cfgetospeed(in termios*);
334 int cfsetispeed(termios*, speed_t);
335 int cfsetospeed(termios*, speed_t);
337 int tcflow(int, int);
338 int tcflush(int, int);
339 int tcgetattr(int, termios*);
340 int tcsendbreak(int, int);
341 int tcsetattr(int, int, in termios*);
343 else version ( freebsd )
374 const BRKINT = 0x0000002;
375 const ICRNL = 0x0000100;
376 const IGNBRK = 0x0000001;
377 const IGNCR = 0x0000080;
378 const IGNPAR = 0x0000004;
379 const INLCR = 0x0000040;
380 const INPCK = 0x0000010;
381 const ISTRIP = 0x0000020;
382 const IXOFF = 0x0000400;
383 const IXON = 0x0000200;
384 const PARMRK = 0x0000008;
386 const OPOST = 0x0000001;
402 const B19200 = 19200;
403 const B38400 = 38400;
405 const CSIZE = 0x0000300;
406 const CS5 = 0x0000000;
407 const CS6 = 0x0000100;
408 const CS7 = 0x0000200;
409 const CS8 = 0x0000300;
410 const CSTOPB = 0x0000400;
411 const CREAD = 0x0000800;
412 const PARENB = 0x0001000;
413 const PARODD = 0x0002000;
414 const HUPCL = 0x0004000;
415 const CLOCAL = 0x0008000;
417 const ECHO = 0x00000008;
418 const ECHOE = 0x00000002;
419 const ECHOK = 0x00000004;
420 const ECHONL = 0x00000010;
421 const ICANON = 0x00000100;
422 const IEXTEN = 0x00000400;
423 const ISIG = 0x00000080;
424 const NOFLSH = 0x80000000;
425 const TOSTOP = 0x00400000;
440 speed_t cfgetispeed(in termios*);
441 speed_t cfgetospeed(in termios*);
442 int cfsetispeed(termios*, speed_t);
443 int cfsetospeed(termios*, speed_t);
445 int tcflow(int, int);
446 int tcflush(int, int);
447 int tcgetattr(int, termios*);
448 int tcsendbreak(int, int);
449 int tcsetattr(int, int, in termios*);
492 const IXANY = 0004000;
494 const ONLCR = 0000004;
495 const OCRNL = 0000010;
496 const ONOCR = 0000020;
497 const ONLRET = 0000040;
498 const OFILL = 0000100;
499 const NLDLY = 0000400;
502 const CRDLY = 0003000;
507 const TABDLY = 0014000;
508 const TAB0 = 0000000;
509 const TAB1 = 0004000;
510 const TAB2 = 0010000;
511 const TAB3 = 0014000;
512 const BSDLY = 0020000;
515 const VTDLY = 0040000;
518 const FFDLY = 0100000;