123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109 |
- #ifndef _TERMIOS_H
- #define _TERMIOS_H 1
- #include <features.h>
- #if defined __USE_UNIX98 || defined __USE_XOPEN2K8
- # include <bits/types.h>
- # ifndef __pid_t_defined
- typedef __pid_t pid_t;
- # define __pid_t_defined
- # endif
- #endif
- __BEGIN_DECLS
- #include <bits/termios.h>
- #ifdef __USE_MISC
- # define CCEQ(val, c) ((c) == (val) && (val) != _POSIX_VDISABLE)
- #endif
- extern speed_t cfgetospeed (const struct termios *__termios_p) __THROW;
- extern speed_t cfgetispeed (const struct termios *__termios_p) __THROW;
- extern int cfsetospeed (struct termios *__termios_p, speed_t __speed) __THROW;
- extern int cfsetispeed (struct termios *__termios_p, speed_t __speed) __THROW;
- #ifdef __USE_MISC
- extern int cfsetspeed (struct termios *__termios_p, speed_t __speed) __THROW;
- #endif
- extern int tcgetattr (int __fd, struct termios *__termios_p) __THROW;
- extern int tcsetattr (int __fd, int __optional_actions,
- const struct termios *__termios_p) __THROW;
- #ifdef __USE_MISC
- extern void cfmakeraw (struct termios *__termios_p) __THROW;
- #endif
- extern int tcsendbreak (int __fd, int __duration) __THROW;
- extern int tcdrain (int __fd);
- extern int tcflush (int __fd, int __queue_selector) __THROW;
- extern int tcflow (int __fd, int __action) __THROW;
- #if defined __USE_UNIX98 || defined __USE_XOPEN2K8
- extern __pid_t tcgetsid (int __fd) __THROW;
- #endif
- #ifdef __USE_MISC
- # include <sys/ttydefaults.h>
- #endif
- __END_DECLS
- #endif
|