kernel_termios.h 793 B

123456789101112131415161718192021222324252627282930
  1. #ifndef _KERNEL_TERMIOS_H
  2. #define _KERNEL_TERMIOS_H 1
  3. #include <sys/types.h>
  4. /* Pull in whatever this particular arch's kernel thinks the kernel version of
  5. * struct termios should look like. It turns out that each arch has a different
  6. * opinion on the subject, and different kernel revs use different names... */
  7. #define termio __kernel_termios
  8. #define winsize __kernel_winsize
  9. #define cc_t __kernel_cc_t
  10. #define speed_t __kernel_speed_t
  11. #define tcflag_t __kernel_tcflag_t
  12. #undef NCCS
  13. #include <asm/termios.h>
  14. #define __KERNEL_NCCS NCCS
  15. #undef NCCS
  16. #undef termio
  17. #undef winsize
  18. #undef cc_t
  19. #undef speed_t
  20. #undef tcflag_t
  21. /* Now pull in libc's version of termios */
  22. #define termios libc_termios
  23. #include <termios.h>
  24. #undef termios
  25. #endif /* _KERNEL_TERMIOS_H */