mirror of
git://git.musl-libc.org/musl
synced 2024-12-24 15:43:06 +00:00
419ae6d5c9
patch by Isaac Dunham. matched closely (maybe not exact) to glibc's idea of what _BSD_SOURCE should make visible.
45 lines
824 B
C
45 lines
824 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);
|
|
|
|
#if defined(_GNU_SOURCE) || defined(_BSD_SOURCE)
|
|
void cfmakeraw(struct termios *);
|
|
int cfsetspeed(struct termios *, speed_t);
|
|
#endif
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif
|