termios.h 1.3 KB

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