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