4 * The contents of this file are subject to the terms of the
5 * Common Development and Distribution License, Version 1.0 only
6 * (the "License"). You may not use this file except in compliance
9 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
10 * or http://www.opensolaris.org/os/licensing.
11 * See the License for the specific language governing permissions
12 * and limitations under the License.
14 * When distributing Covered Code, include this CDDL HEADER in each
15 * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
16 * If applicable, add the following below this CDDL HEADER, with the
17 * fields enclosed by brackets "[]" replaced with your own identifying
18 * information: Portions Copyright [yyyy] [name of copyright owner]
23 * Copyright 1991 Sun Microsystems, Inc. All rights reserved.
24 * Use is subject to license terms.
27 /* Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T */
28 /* All Rights Reserved */
33 #pragma ident "%Z%%M% %I% %E% SMI"
40 * There are some inherent problems in having a single file
41 * ioctl.h, with both System V and BSD flags. Introducing
42 * BSD flags into this file creates compilation problems
43 * with flags such as ECHO, NL1 etc., if termio.h and ioctl.h
44 * are included by the same file. Since these two files can
45 * be only included by System V applications, /usr/inclule/sys/ioctl.h
46 * will be System V mode and all the BSD flags will be turned off
47 * using #ifdef BSD_COMP. This file will also exist in
48 * /usr/ucbinclude/sys/ioctl.h for BSD applications but without the
49 * BSD flags turned off. System V appliactions can use ioctl.h without
50 * any changes, System V applications requiring BSD flags should
51 * -D BSD_COMP when compiling (and be warned about the common
52 * flags between System V and BSD) and BSD applications should
53 * use /usr/ucbinclude/sys/ioctl.h.
57 #define IOCTYPE 0xff00
60 #define LIOCGETP (LIOC|1)
61 #define LIOCSETP (LIOC|2)
62 #define LIOCGETS (LIOC|5)
63 #define LIOCSETS (LIOC|6)
66 #define DIOCGETC (DIOC|1)
67 #define DIOCGETB (DIOC|2)
68 #define DIOCSETE (DIOC|3)
74 /* BSD related defines */
78 #include <sys/ttychars.h>
79 #include <sys/ttydev.h>
80 #include <sys/ttold.h>
86 #define TANDEM O_TANDEM
87 #define CBREAK O_CBREAK
96 #define NLDELAY O_NLDELAY
101 #define TBDELAY O_TBDELAY
105 #define XTABS O_XTABS
106 #define CRDELAY O_CRDELAY
111 #define VTDELAY O_VTDELAY
114 #define BSDELAY O_BSDELAY
117 #define ALLDELAY O_ALLDELAY
118 #endif /* _SGTTY_H */
119 #define CRTBS O_CRTBS
120 #define PRTERA O_PRTERA
121 #define CRTERA O_CRTERA
122 #define TILDE O_TILDE
123 #define MDMBUF O_MDMBUF
124 #define LITOUT O_LITOUT
125 #define TOSTOP O_TOSTOP
126 #define FLUSHO O_FLUSHO
127 #define NOHANG O_NOHANG
128 #define L001000 O_L001000
129 #define CRTKIL O_CRTKIL
130 #define PASS8 O_PASS8
131 #define CTLECH O_CTLECH
132 #define PENDIN O_PENDIN
133 #define DECCTQ O_DECCTQ
134 #define NOFLSH O_NOFLSH
140 #include <sys/filio.h>
141 #include <sys/sockio.h>
143 #endif /* BSD_COMP */
145 #endif /* _SYS_IOCTL_H */