remove LFS64 symbol aliases; replace with dynamic linker remapping
[musl.git] / include / termios.h
blobcbb533010e8b2b0f0eeab88788a1fa75d8b354cf
1 #ifndef _TERMIOS_H
2 #define _TERMIOS_H
4 #ifdef __cplusplus
5 extern "C" {
6 #endif
8 #include <features.h>
10 #define __NEED_pid_t
11 #define __NEED_struct_winsize
13 #include <bits/alltypes.h>
15 typedef unsigned char cc_t;
16 typedef unsigned int speed_t;
17 typedef unsigned int tcflag_t;
19 #define NCCS 32
21 #include <bits/termios.h>
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);
28 int tcgetattr (int, struct termios *);
29 int tcsetattr (int, int, const struct termios *);
31 int tcgetwinsize (int, struct winsize *);
32 int tcsetwinsize (int, const struct winsize *);
34 int tcsendbreak (int, int);
35 int tcdrain (int);
36 int tcflush (int, int);
37 int tcflow (int, int);
39 pid_t tcgetsid (int);
41 #if defined(_GNU_SOURCE) || defined(_BSD_SOURCE)
42 void cfmakeraw(struct termios *);
43 int cfsetspeed(struct termios *, speed_t);
44 #endif
46 #ifdef __cplusplus
48 #endif
50 #endif