termios.h 968 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  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. #define __NEED_struct_winsize
  9. #include <bits/alltypes.h>
  10. typedef unsigned char cc_t;
  11. typedef unsigned int speed_t;
  12. typedef unsigned int tcflag_t;
  13. #define NCCS 32
  14. #include <bits/termios.h>
  15. speed_t cfgetospeed (const struct termios *);
  16. speed_t cfgetispeed (const struct termios *);
  17. int cfsetospeed (struct termios *, speed_t);
  18. int cfsetispeed (struct termios *, speed_t);
  19. int tcgetattr (int, struct termios *);
  20. int tcsetattr (int, int, const struct termios *);
  21. int tcgetwinsize (int, struct winsize *);
  22. int tcsetwinsize (int, const struct winsize *);
  23. int tcsendbreak (int, int);
  24. int tcdrain (int);
  25. int tcflush (int, int);
  26. int tcflow (int, int);
  27. pid_t tcgetsid (int);
  28. #if defined(_GNU_SOURCE) || defined(_BSD_SOURCE)
  29. void cfmakeraw(struct termios *);
  30. int cfsetspeed(struct termios *, speed_t);
  31. #endif
  32. #ifdef __cplusplus
  33. }
  34. #endif
  35. #endif