| 1 | #ifndef	_TERMIOS_H |
| 2 | #define	_TERMIOS_H |
| 3 | |
| 4 | #ifdef __cplusplus |
| 5 | extern "C" { |
| 6 | #endif |
| 7 | |
| 8 | #include <features.h> |
| 9 | |
| 10 | #define __NEED_pid_t |
| 11 | #define __NEED_struct_winsize |
| 12 | |
| 13 | #include <bits/alltypes.h> |
| 14 | |
| 15 | typedef unsigned char cc_t; |
| 16 | typedef unsigned int speed_t; |
| 17 | typedef unsigned int tcflag_t; |
| 18 | |
| 19 | #define NCCS 32 |
| 20 | |
| 21 | #include <bits/termios.h> |
| 22 | |
| 23 | speed_t cfgetospeed (const struct termios *); |
| 24 | speed_t cfgetispeed (const struct termios *); |
| 25 | int cfsetospeed (struct termios *, speed_t); |
| 26 | int cfsetispeed (struct termios *, speed_t); |
| 27 | |
| 28 | int tcgetattr (int, struct termios *); |
| 29 | int tcsetattr (int, int, const struct termios *); |
| 30 | |
| 31 | int tcgetwinsize (int, struct winsize *); |
| 32 | int tcsetwinsize (int, const struct winsize *); |
| 33 | |
| 34 | int tcsendbreak (int, int); |
| 35 | int tcdrain (int); |
| 36 | int tcflush (int, int); |
| 37 | int tcflow (int, int); |
| 38 | |
| 39 | pid_t tcgetsid (int); |
| 40 | |
| 41 | #if defined(_GNU_SOURCE) || defined(_BSD_SOURCE) |
| 42 | void cfmakeraw(struct termios *); |
| 43 | int cfsetspeed(struct termios *, speed_t); |
| 44 | #endif |
| 45 | |
| 46 | #ifdef __cplusplus |
| 47 | } |
| 48 | #endif |
| 49 | |
| 50 | #endif |