termios.h 1.3 KB

1234567891011121314151617181920212223242526272829303132
  1. #ifndef __TERMIOS_H
  2. #define __TERMIOS_H
  3. #include <features.h>
  4. #include <sys/types.h>
  5. #include <linux/termios.h>
  6. extern speed_t cfgetispeed __P ((struct termios *__termios_p));
  7. extern speed_t cfgetospeed __P ((struct termios *__termios_p));
  8. extern int cfsetispeed __P ((struct termios *__termios_p, speed_t __speed));
  9. extern int cfsetospeed __P ((struct termios *__termios_p, speed_t __speed));
  10. extern int tcspeed_to_number __P ((speed_t __speed));
  11. extern speed_t tcspeed_from_number __P ((int number));
  12. extern int cfgetispeedn __P ((struct termios *__termios_p));
  13. extern int cfgetospeedn __P ((struct termios *__termios_p));
  14. extern int cfsetispeedn __P ((struct termios *__termios_p, int __speed));
  15. extern int cfsetospeedn __P ((struct termios *__termios_p, int __speed));
  16. extern void cfmakeraw __P ((struct termios *__t));
  17. extern int tcsetattr __P ((int __fd, int __opt, struct termios *__termios_p));
  18. extern int tcgetattr __P ((int __fildes, struct termios *__termios_p));
  19. extern int tcdrain __P ((int __fildes));
  20. extern int tcflow __P ((int __fildes, int __action));
  21. extern int tcflush __P ((int __fildes, int __queue_selector));
  22. extern int tcsendbreak __P ((int __fildes, int __duration));
  23. extern pid_t tcgetpgrp __P ((int __fildes));
  24. extern int tcsetpgrp __P ((int __fildes, pid_t __pgrp_id));
  25. #endif