home *** CD-ROM | disk | FTP | other *** search
/ InfoMagic Internet Tools 1995 April / Internet Tools.iso / osi / isode / vmsisode / vmsisode80_tar.Z / vmsisode80_tar / sockit / gccinclude / sys / ioctl.h < prev    next >
Encoding:
C/C++ Source or Header  |  1992-01-08  |  878 b   |  31 lines

  1. #ifndef __IOCTL_INCLUDE
  2. #define __IOCTL_INCLUDE
  3. #define _IO(x,y)     (0x20000000|(x<<8)|y)
  4. #define _IOR(x,y,t)  (0x40000000|((sizeof(t)&0x7f)<<16)|(x<<8)|y)
  5. #define _IOW(x,y,t)  (0x80000000|((sizeof(t)&0x7f)<<16)|(x<<8)|y)
  6. #define _IOWR(x,y,t) (0xc0000000|((sizeof(t)&0x7f)<<16)|(x<<8)|y)
  7. #define SIOCSPGRP _IOW('s',8,int)
  8. #define TIOCGETP _IOR('t',8,struct sgttyb)
  9. #define TIOCSETP _IOW('t',9,struct sgttyb)
  10. #define TIOCGLTC _IOR('t',116,struct ltchars)
  11. #define TIOCSLTC _IOW('t',117,struct ltchars)
  12. #define TIOCNOTTY _IO('t',113)
  13. #define FIONREAD _IOR('f',127,int)
  14. #define FIONBIO  _IOW('f',126,int)
  15. #ifndef _SGTTYB_
  16. #define _SGTTYB_
  17. struct sgttyb {
  18.   char sg_ispeed;
  19.   char sg_ospeed;
  20.   char sg_erase;
  21.   char sg_kill;
  22.   char sg_flags;
  23. };
  24. #endif
  25. #define CBREAK 0x00000002
  26. #define LCASE 0x00000004
  27. #define ECHO 0x00000008
  28. #define CRMOD 0x00000010
  29. #define RAW 0x00000020
  30. #endif
  31.