home *** CD-ROM | disk | FTP | other *** search
/ Geek Gadgets 1 / ADE-1.bin / ade-dist / pdksh-4.9-src.tgz / tar.out / contrib / pdksh / sh / tty.h < prev    next >
C/C++ Source or Header  |  1996-09-28  |  900b  |  41 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. #ifdef    _POSIX_TERM
  10. # include <termios.h>
  11. #else
  12. # if _BSD_SYSV            /* BRL UNIX System V emulation */
  13. #   include <termio.h>    /* includes <sys/_ioctl.h> */
  14. #   ifndef NTTYDISC
  15. #     define    TIOCGETD    _IOR( 't', 0, int )
  16. #     define    TIOCSETD    _IOW( 't', 1, int )
  17. #     define    NTTYDISC    2
  18. #   endif
  19. #   ifndef TIOCSTI
  20. #     define    TIOCSTI        _IOW( 't', 114, char )
  21. #   endif
  22. #   ifndef TIOCSPGRP
  23. #     define    TIOCSPGRP    _IOW( 't', 118, int )
  24. #   endif
  25. # else    /* !_BSD_SYSV */
  26. #   if _BSD
  27. #     ifdef _MINIX
  28. #       include <sgtty.h>
  29. #       define TIOCSETN    TIOCSETP
  30. #     else
  31. #       include <sys/ioctl.h>
  32. #    ifdef __amigaos__
  33. #      include <sys/ioctl_compat.h>
  34. #    endif
  35. #     endif
  36. #   else
  37. #     include <termio.h>
  38. #   endif
  39. # endif    /* _BSD_SYSV */
  40. #endif /* _POSIX_TERM */
  41.