home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 15 / 15.iso / s / s053 / 25.ddi / root.2 / usr / ucbinclude / sys / ioctl.h < prev    next >
Encoding:
C/C++ Source or Header  |  1990-12-08  |  3.8 KB  |  142 lines

  1. /*    Copyright (c) 1990 UNIX System Laboratories, Inc.    */
  2. /*    Copyright (c) 1984, 1986, 1987, 1988, 1989, 1990 AT&T    */
  3. /*      All Rights Reserved      */
  4.  
  5. /*    THIS IS UNPUBLISHED PROPRIETARY SOURCE CODE OF         */
  6. /*    UNIX System Laboratories, Inc.                         */
  7. /*    The copyright notice above does not evidence any       */
  8. /*    actual or intended publication of such source code.    */
  9.  
  10.  
  11. #ifndef _SYS_IOCTL_H
  12. #define _SYS_IOCTL_H
  13.  
  14. #ident    "@(#)//usr/ucbinclude/sys/ioctl.h.sl 1.1 4.0 12/08/90 544 AT&T-USL"
  15.  
  16. /*******************************************************************
  17.  
  18.         PROPRIETARY NOTICE (Combined)
  19.  
  20. This source code is unpublished proprietary information
  21. constituting, or derived under license from AT&T's UNIX(r) System V.
  22. In addition, portions of such source code were derived from Berkeley
  23. 4.3 BSD under license from the Regents of the University of
  24. California.
  25.  
  26.  
  27.  
  28.         Copyright Notice 
  29.  
  30. Notice of copyright on this source code product does not indicate 
  31. publication.
  32.  
  33.     (c) 1986,1987,1988,1989  Sun Microsystems, Inc
  34.     (c) 1983,1984,1985,1986,1987,1988,1989  AT&T.
  35.               All rights reserved.
  36. ********************************************************************/ 
  37.  
  38. /*
  39.  *      There are some inherent problems in having a single file
  40.  *      ioctl.h, with both System V and BSD flags. Introducing
  41.  *     BSD flags into this file creates compilation problems
  42.  *    with flags such as ECHO, NL1 etc., if termio.h and ioctl.h
  43.  *      are included by the same file. Since these two files can
  44.  *     be only included by System V applications, /usr/inclule/sys/ioctl.h
  45.  *      will be System V mode and all the BSD flags will be turned off
  46.  *      using #ifdef BSD_COMP. This file will also exist in 
  47.  *    /usr/ucbinclude/sys/ioctl.h for BSD applications but without the
  48.  *      BSD flags turned off. System V appliactions can use ioctl.h without
  49.  *      any changes, System V applications requiring BSD flags should
  50.  *      -D BSD_COMP when compiling (and be warned about the common
  51.  *      flags between System V and BSD) and BSD applications should
  52.  *     use /usr/ucbinclude/sys/ioctl.h.
  53.  *     
  54.  */
  55.  
  56. #define    IOCTYPE    0xff00
  57.  
  58. #define    LIOC    ('l'<<8)
  59. #define    LIOCGETP    (LIOC|1)
  60. #define    LIOCSETP    (LIOC|2)
  61. #define    LIOCGETS    (LIOC|5)
  62. #define    LIOCSETS    (LIOC|6)
  63.  
  64. #define    DIOC    ('d'<<8)
  65. #define    DIOCGETC    (DIOC|1)
  66. #define    DIOCGETB    (DIOC|2)
  67. #define    DIOCSETE    (DIOC|3)
  68.  
  69.  
  70. /* BSD related defines */
  71.  
  72. #include <sys/ttychars.h>
  73. #include <sys/ttydev.h>
  74. #include <sys/ttold.h>
  75.  
  76. #define    TANDEM        O_TANDEM
  77. #define    CBREAK        O_CBREAK
  78. #ifndef _SGTTY_H
  79. #define    LCASE        O_LCASE
  80. #define    ECHO        O_ECHO
  81. #define    CRMOD        O_CRMOD
  82. #define    RAW        O_RAW
  83. #define    ODDP        O_ODDP
  84. #define    EVENP        O_EVENP
  85. #define    ANYP        O_ANYP
  86. #define    NLDELAY        O_NLDELAY
  87. #define        NL0        O_NL0
  88. #define        NL1        O_NL1
  89. #define        NL2        O_NL2
  90. #define        NL3        O_NL3
  91. #define    TBDELAY        O_TBDELAY
  92. #define        TAB0        O_TAB0
  93. #define        TAB1        O_TAB1
  94. #define        TAB2        O_TAB2
  95. #define    XTABS        O_XTABS
  96. #define    CRDELAY        O_CRDELAY
  97. #define        CR0        O_CR0
  98. #define        CR1        O_CR1
  99. #define        CR2        O_CR2
  100. #define        CR3        O_CR3
  101. #define    VTDELAY        O_VTDELAY
  102. #define        FF0        O_FF0
  103. #define        FF1        O_FF1
  104. #define    BSDELAY        O_BSDELAY
  105. #define        BS0        O_BS0
  106. #define        BS1        O_BS1
  107. #define     ALLDELAY    O_ALLDELAY
  108. #endif /* _SGTTY_H */
  109. #define    CRTBS        O_CRTBS
  110. #define    PRTERA        O_PRTERA
  111. #define    CRTERA        O_CRTERA
  112. #define    TILDE        O_TILDE
  113. #define    MDMBUF        O_MDMBUF
  114. #define    LITOUT        O_LITOUT
  115. #define    TOSTOP        O_TOSTOP
  116. #define    FLUSHO        O_FLUSHO
  117. #define    NOHANG        O_NOHANG
  118. #define    L001000        O_L001000
  119. #define    CRTKIL        O_CRTKIL
  120. #define    PASS8        O_PASS8
  121. #define    CTLECH        O_CTLECH
  122. #define    PENDIN        O_PENDIN
  123. #define    DECCTQ        O_DECCTQ
  124. #define    NOFLSH        O_NOFLSH
  125.  
  126. #define TIOCGSIZE    TIOCGWINSZ
  127. #define TIOCSSIZE    TIOCSWINSZ
  128.  
  129. #ifndef tIOC
  130. #define tIOC    ('t'<<8)
  131. #endif
  132.  
  133. #ifndef TIOCGPGRP
  134. #define TIOCGPGRP       (tIOC|20)       /* get pgrp of tty */
  135. #define TIOCSPGRP       (tIOC|21)       /* set pgrp of tty */
  136. #endif
  137.  
  138. #include <sys/filio.h>
  139. #include <sys/sockio.h>
  140.  
  141. #endif    /* _SYS_IOCTL_H */
  142.