ioctl.h 427 B

123456789101112131415161718192021222324252627
  1. #ifndef __GBLIBC_BITS_IOCTL_H_
  2. #define __GBLIBC_BITS_IOCTL_H_
  3. #include <sys/uio.h>
  4. #define TCGETS (0x5401)
  5. #define TCSETS (0x5402)
  6. #define TIOCGPGRP (0x540f)
  7. #define TIOCSPGRP (0x5410)
  8. #define TIOCGWINSZ (0x5413)
  9. #ifdef __cplusplus
  10. extern "C" {
  11. #endif
  12. struct winsize {
  13. unsigned short ws_row;
  14. unsigned short ws_col;
  15. unsigned short ws_xpixel;
  16. unsigned short ws_ypixel;
  17. };
  18. #ifdef __cplusplus
  19. }
  20. #endif
  21. #endif