termios.h 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. #ifndef _UAPI_ALPHA_TERMIOS_H
  2. #define _UAPI_ALPHA_TERMIOS_H
  3. #include <asm/ioctls.h>
  4. #include <asm/termbits.h>
  5. struct sgttyb {
  6. char sg_ispeed;
  7. char sg_ospeed;
  8. char sg_erase;
  9. char sg_kill;
  10. short sg_flags;
  11. };
  12. struct tchars {
  13. char t_intrc;
  14. char t_quitc;
  15. char t_startc;
  16. char t_stopc;
  17. char t_eofc;
  18. char t_brkc;
  19. };
  20. struct ltchars {
  21. char t_suspc;
  22. char t_dsuspc;
  23. char t_rprntc;
  24. char t_flushc;
  25. char t_werasc;
  26. char t_lnextc;
  27. };
  28. struct winsize {
  29. unsigned short ws_row;
  30. unsigned short ws_col;
  31. unsigned short ws_xpixel;
  32. unsigned short ws_ypixel;
  33. };
  34. #define NCC 8
  35. struct termio {
  36. unsigned short c_iflag; /* input mode flags */
  37. unsigned short c_oflag; /* output mode flags */
  38. unsigned short c_cflag; /* control mode flags */
  39. unsigned short c_lflag; /* local mode flags */
  40. unsigned char c_line; /* line discipline */
  41. unsigned char c_cc[NCC]; /* control characters */
  42. };
  43. /*
  44. * c_cc characters in the termio structure. Oh, how I love being
  45. * backwardly compatible. Notice that character 4 and 5 are
  46. * interpreted differently depending on whether ICANON is set in
  47. * c_lflag. If it's set, they are used as _VEOF and _VEOL, otherwise
  48. * as _VMIN and V_TIME. This is for compatibility with OSF/1 (which
  49. * is compatible with sysV)...
  50. */
  51. #define _VINTR 0
  52. #define _VQUIT 1
  53. #define _VERASE 2
  54. #define _VKILL 3
  55. #define _VEOF 4
  56. #define _VMIN 4
  57. #define _VEOL 5
  58. #define _VTIME 5
  59. #define _VEOL2 6
  60. #define _VSWTC 7
  61. #endif /* _UAPI_ALPHA_TERMIOS_H */