termios.h
#ifndef _TERMIOS_H
#define _TERMIOS_H 1
#include
#ifdef __USE_UNIX98
# include
# ifndef __pid_t_defined
typedef __pid_t pid_t;
# define __pid_t_defined
# endif
#endif
__BEGIN_DECLS
#include
#ifdef __USE_BSD
# 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_BSD
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_BSD
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;
#ifdef __USE_UNIX98
extern __pid_t tcgetsid (int __fd) __THROW;
#endif
#ifdef __USE_BSD
# include
#endif
__END_DECLS
#endif
|
|