home *** CD-ROM | disk | FTP | other *** search
/ The World of Computer Software / World_Of_Computer_Software-02-385-Vol-1of3.iso / k / ksh48.zip / sh / tty.h < prev    next >
C/C++ Source or Header  |  1992-08-25  |  791b  |  40 lines

  1. /*
  2.     tty.h -- centralized definitions for a variety of terminal interfaces
  3.  
  4.     created by DPK, Oct. 1986
  5.  
  6.     last edit:    30-Jul-1987    D A Gwyn
  7. */
  8.  
  9. #ifndef _OS2
  10. #if _BSD_SYSV            /* BRL UNIX System V emulation */
  11. #include <termio.h>    /* includes <sys/_ioctl.h> */
  12. #ifndef NTTYDISC
  13. #define    TIOCGETD    _IOR( 't', 0, int )
  14. #define    TIOCSETD    _IOW( 't', 1, int )
  15. #define    NTTYDISC    2
  16. #endif
  17. #ifndef TIOCSTI
  18. #define    TIOCSTI        _IOW( 't', 114, char )
  19. #endif
  20. #ifndef TIOCSPGRP
  21. #define    TIOCSPGRP    _IOW( 't', 118, int )
  22. #endif
  23. #else    /* !_BSD_SYSV */
  24. #if _BSD
  25. #ifdef _MINIX
  26. #include <sgtty.h>
  27. #define TIOCSETN    TIOCSETP
  28. #else
  29. #include <sys/ioctl.h>
  30. #endif
  31. #else
  32. #ifdef    _POSIX_TERM
  33. #include <termios.h>
  34. #else
  35. #include <termio.h>
  36. #endif
  37. #endif
  38. #endif    /* _BSD_SYSV */
  39. #endif  /* OS2 */
  40.