termios.h 794 B

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