sgtty.h 431 B

1234567891011121314151617181920212223
  1. #ifdef __CHANNEL__
  2. struct sgttyb {
  3. char sg_ispeed;
  4. char sg_ospeed;
  5. char sg_erase;
  6. char sg_kill;
  7. short sg_flags;
  8. };
  9. #ifdef __BSD4_2
  10. #define TIOCGETP ((('t'<<8)|8)|(sizeof(struct sgttyb)<<16))
  11. #define TIOCSETN ((('t'<<8)|10)|(sizeof(struct sgttyb)<<16))
  12. #else
  13. #define TIOCGETP (('t'<<8)|8)
  14. #define TIOCSETN (('t'<<8)|10)
  15. #endif
  16. #define CBREAK 02
  17. #define ECHO 010
  18. #define CRMOD 020
  19. #else
  20. #include "/usr/include/sgtty.h"
  21. #endif