home *** CD-ROM | disk | FTP | other *** search
/ Piper's Pit BBS/FTP: ibm 0010 - 0019 / ibm0010-0019 / ibm0010.tar / ibm0010 / UNIX3862.ZIP / U386-06.ZIP / U386-6.TD0 / usr / include / sys / ioctl.h < prev    next >
Encoding:
C/C++ Source or Header  |  1988-06-26  |  1.3 KB  |  52 lines

  1. /*    Copyright (c) 1984, 1986, 1987, 1988 AT&T    */
  2. /*      All Rights Reserved      */
  3.  
  4. /*    THIS IS UNPUBLISHED PROPRIETARY SOURCE CODE OF AT&T    */
  5. /*    The copyright notice above does not evidence any       */
  6. /*    actual or intended publication of such source code.    */
  7.  
  8. /*    Copyright (c) 1987, 1988 Microsoft Corporation    */
  9. /*      All Rights Reserved    */
  10.  
  11. /*    This Module contains Proprietary Information of Microsoft  */
  12. /*    Corporation and should be treated as Confidential.       */
  13.  
  14. #ident    "@(#)head.sys:ioctl.h    1.3.1.2"
  15.  
  16. /*
  17.  *    Ioctl commands
  18.  */
  19. #define    IOCTYPE    0xff00
  20.  
  21. #define    LIOC    ('l'<<8)
  22. #define    LIOCGETP    (LIOC|1)
  23. #define    LIOCSETP    (LIOC|2)
  24. #define    LIOCGETS    (LIOC|5)
  25. #define    LIOCSETS    (LIOC|6)
  26.  
  27. #define    DIOC    ('d'<<8)
  28. #define    DIOCGETC    (DIOC|1)
  29. #define    DIOCGETB    (DIOC|2)
  30. #define    DIOCSETE    (DIOC|3)
  31.  
  32. /*
  33. **    Union for use by all device handler ioctl routines.
  34. */
  35. union ioctl_arg {
  36.     struct termio    *stparg;    /* ptr to termio struct */
  37.     struct Generic    *sparg;        /* ptr to generic struct */
  38.     char        *cparg;        /* ptr to character */
  39.     char        carg;        /* character */
  40.     int        *iparg;        /* ptr to integer */
  41.     int        iarg;        /* integer */
  42.     long            *lparg;         /* ptr to long */
  43.     long            larg;           /* long */
  44. };
  45.  
  46. /*
  47.  * Commands needed for XENIX ioctl() compatibility
  48.  */
  49.  
  50. #define    TIOC    ('T'<<8)
  51. #define    TCFLSH    (TIOC|7)
  52.