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