termios.h 847 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. #ifndef _TERMIOS_H
  2. #define _TERMIOS_H
  3. #ifdef __cplusplus
  4. extern "C" {
  5. #endif
  6. #include <features.h>
  7. #define __NEED_pid_t
  8. #include <bits/alltypes.h>
  9. typedef unsigned char cc_t;
  10. typedef unsigned int speed_t;
  11. typedef unsigned int tcflag_t;
  12. #define NCCS 32
  13. #include <bits/termios.h>
  14. speed_t cfgetospeed (const struct termios *);
  15. speed_t cfgetispeed (const struct termios *);
  16. int cfsetospeed (struct termios *, speed_t);
  17. int cfsetispeed (struct termios *, speed_t);
  18. int tcgetattr (int, struct termios *);
  19. int tcsetattr (int, int, const struct termios *);
  20. int tcsendbreak (int, int);
  21. int tcdrain (int);
  22. int tcflush (int, int);
  23. int tcflow (int, int);
  24. pid_t tcgetsid (int);
  25. #if defined(_GNU_SOURCE) || defined(_BSD_SOURCE)
  26. void cfmakeraw(struct termios *);
  27. int cfsetspeed(struct termios *, speed_t);
  28. #endif
  29. #ifdef __cplusplus
  30. }
  31. #endif
  32. #endif