5 * Copyright © 1995-2012, The AROS Development Team. All rights reserved.
8 * POSIX.1-2008 header file <termios.h>
11 /* FIXME: Are these OK ? */
12 typedef unsigned char cc_t
;
13 typedef unsigned int speed_t
;
14 typedef unsigned int tcflag_t
;
18 tcflag_t c_iflag
; /* input mode flags */
19 tcflag_t c_oflag
; /* output mode flags */
20 tcflag_t c_cflag
; /* control mode flags */
21 tcflag_t c_lflag
; /* local mode flags */
22 cc_t c_cc
[NCCS
]; /* control characters */
23 char internal
[64]; /* Private */
46 #define IGNBRK 0000001
47 #define BRKINT 0000002
48 #define IGNPAR 0000004
49 #define PARMRK 0000010
51 #define ISTRIP 0000040
59 #define IMAXBEL 0020000
68 #define ONLRET 0000040
72 /* c_cflag bit meaning */
73 #define B0 0000000 /* hang up */
87 #define B19200 0000016
88 #define B38400 0000017
94 #define CSTOPB 0000100
96 #define PARENB 0000400
97 #define PARODD 0001000
99 #define CLOCAL 0004000
100 #define B57600 0010001
101 #define B115200 0010002
105 #define ICANON 0000002
107 #define ECHOE 0000020
108 #define ECHOK 0000040
109 #define ECHONL 0000100
110 #define NOFLSH 0000200
111 #define TOSTOP 0000400
112 #define IEXTEN 0100000
114 /* tcflow() and TCXONC use these */
120 /* tcflush() and TCFLSH use these */
125 /* tcsetattr uses these */
130 extern int tcgetattr(int __fd
, struct termios
*__termios_p
);
131 extern int tcsetattr(int __fd
, int __optional_actions
,
132 const struct termios
*__termios_p
);
134 extern speed_t
cfgetispeed(const struct termios
*__termios_p
);
135 extern speed_t
cfgetospeed(const struct termios
*__termios_p
);
137 extern int cfsetispeed(struct termios
*__termios_p
, speed_t __speed
);
138 extern int cfsetospeed(struct termios
*__termios_p
, speed_t __speed
);