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*);
267 const BRKINT = 0000002;
268 const ICRNL = 0000400;
269 const IGNBRK = 0000001;
270 const IGNCR = 0000200;
271 const IGNPAR = 0000004;
272 const INLCR = 0000100;
273 const INPCK = 0000020;
274 const ISTRIP = 0000040;
275 const IXOFF = 0010000;
276 const IXON = 0002000;
277 const PARMRK = 0000010;
279 const OPOST = 0000001;
284 const B110 = 0000003;
285 const B134 = 0000004;
286 const B150 = 0000005;
287 const B200 = 0000006;
288 const B300 = 0000007;
289 const B600 = 0000010;
290 const B1200 = 0000011;
291 const B1800 = 0000012;
292 const B2400 = 0000013;
293 const B4800 = 0000014;
294 const B9600 = 0000015;
295 const B19200 = 0000016;
296 const B38400 = 0000017;
298 const CSIZE = 0000060;
303 const CSTOPB = 0000100;
304 const CREAD = 0000200;
305 const PARENB = 0000400;
306 const PARODD = 0001000;
307 const HUPCL = 0002000;
308 const CLOCAL = 0004000;
310 const ECHO = 0000010;
311 const ECHOE = 0000020;
312 const ECHOK = 0000040;
313 const ECHONL = 0000100;
314 const ICANON = 0000002;
315 const IEXTEN = 0100000;
316 const ISIG = 0000001;
317 const NOFLSH = 0000200;
318 const TOSTOP = 0000400;
333 speed_t cfgetispeed(in termios*);
334 speed_t cfgetospeed(in termios*);
335 int cfsetispeed(termios*, speed_t);
336 int cfsetospeed(termios*, speed_t);
338 int tcflow(int, int);
339 int tcflush(int, int);
340 int tcgetattr(int, termios*);
341 int tcsendbreak(int, int);
342 int tcsetattr(int, int, in termios*);
384 const IXANY = 0004000;
386 const ONLCR = 0000004;
387 const OCRNL = 0000010;
388 const ONOCR = 0000020;
389 const ONLRET = 0000040;
390 const OFILL = 0000100;
391 const NLDLY = 0000400;
394 const CRDLY = 0003000;
399 const TABDLY = 0014000;
400 const TAB0 = 0000000;
401 const TAB1 = 0004000;
402 const TAB2 = 0010000;
403 const TAB3 = 0014000;
404 const BSDLY = 0020000;
407 const VTDLY = 0040000;
410 const FFDLY = 0100000;