mirror of
git://git.musl-libc.org/musl
synced 2024-12-28 09:53:24 +00:00
c1a9658bd1
the old behavior of exposing nothing except plain ISO C can be obtained by defining __STRICT_ANSI__ or using a compiler option (such as -std=c99) that predefines it. the new default featureset is POSIX with XSI plus _BSD_SOURCE. any explicit feature test macros will inhibit the default. installation docs have also been updated to reflect this change.
47 lines
847 B
C
47 lines
847 B
C
#ifndef _TERMIOS_H
|
|
#define _TERMIOS_H
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
#include <features.h>
|
|
|
|
#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
|