mirror of
https://git.musl-libc.org/git/musl
synced 2025-01-08 07:42:09 +03:00
ba6a9e7734
- add the rest of the junk traditionally in sys/param.h - add prototypes for some nonstandard functions - add _GNU_SOURCE to their source files so the compiler can check proto
45 lines
795 B
C
45 lines
795 B
C
#ifndef _TERMIOS_H
|
|
#define _TERMIOS_H
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
#define __NEED_pid_t
|
|
|
|
#include <bits/alltypes.h>
|
|
|
|
typedef unsigned char cc_t;
|
|
typedef unsigned int speed_t;
|
|
typedef unsigned int tcflag_t;
|
|
|
|
#define NCCS 32
|
|
|
|
#include <bits/termios.h>
|
|
|
|
speed_t cfgetospeed (const struct termios *);
|
|
speed_t cfgetispeed (const struct termios *);
|
|
int cfsetospeed (struct termios *, speed_t);
|
|
int cfsetispeed (struct termios *, speed_t);
|
|
|
|
int tcgetattr (int, struct termios *);
|
|
int tcsetattr (int, int, const struct termios *);
|
|
|
|
int tcsendbreak (int, int);
|
|
int tcdrain (int);
|
|
int tcflush (int, int);
|
|
int tcflow (int, int);
|
|
|
|
pid_t tcgetsid (int);
|
|
|
|
#ifdef _GNUS_SOURCE
|
|
void cfmakeraw(struct termios *);
|
|
int cfsetspeed(struct termios *, speed_t);
|
|
#endif
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif
|