| 3 |
- |
1 |
|
|
|
2 |
/* /usr/include/termios.h */
|
|
|
3 |
|
|
|
4 |
typedef u_char cc_t;
|
|
|
5 |
typedef u_int speed_t;
|
|
|
6 |
typedef u_int tcflag_t;
|
|
|
7 |
typedef void termios;
|
|
|
8 |
|
|
|
9 |
|
|
|
10 |
speed_t cfgetospeed(termios *termios_p);
|
|
|
11 |
speed_t cfgetispeed(termios *termios_p);
|
|
|
12 |
|
|
|
13 |
|
|
|
14 |
int cfsetospeed(termios *termios_p, speed_t speed);
|
|
|
15 |
int cfsetispeed(termios *termios_p, speed_t speed);
|
|
|
16 |
int cfsetspeed(termios *termios_p, speed_t speed);
|
|
|
17 |
|
|
|
18 |
|
|
|
19 |
int tcgetattr(int fd, termios *termios_p);
|
|
|
20 |
int tcsetattr(int fd, int optional_actions, termios *termios_p);
|
|
|
21 |
|
|
|
22 |
|
|
|
23 |
void cfmakeraw(termios *termios_p);
|
|
|
24 |
int tcsendbreak(int fd, int duration);
|
|
|
25 |
int tcdrain(int fd);
|
|
|
26 |
int tcflush(int fd, int queue_selector);
|
|
|
27 |
int tcflow(int fd, int action);
|
|
|
28 |
__pid_t tcgetsid(int fd);
|