17c478bd9Sstevel@tonic-gate /* 27c478bd9Sstevel@tonic-gate * CDDL HEADER START 37c478bd9Sstevel@tonic-gate * 47c478bd9Sstevel@tonic-gate * The contents of this file are subject to the terms of the 57c478bd9Sstevel@tonic-gate * Common Development and Distribution License, Version 1.0 only 67c478bd9Sstevel@tonic-gate * (the "License"). You may not use this file except in compliance 77c478bd9Sstevel@tonic-gate * with the License. 87c478bd9Sstevel@tonic-gate * 97c478bd9Sstevel@tonic-gate * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 107c478bd9Sstevel@tonic-gate * or http://www.opensolaris.org/os/licensing. 117c478bd9Sstevel@tonic-gate * See the License for the specific language governing permissions 127c478bd9Sstevel@tonic-gate * and limitations under the License. 137c478bd9Sstevel@tonic-gate * 147c478bd9Sstevel@tonic-gate * When distributing Covered Code, include this CDDL HEADER in each 157c478bd9Sstevel@tonic-gate * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 167c478bd9Sstevel@tonic-gate * If applicable, add the following below this CDDL HEADER, with the 177c478bd9Sstevel@tonic-gate * fields enclosed by brackets "[]" replaced with your own identifying 187c478bd9Sstevel@tonic-gate * information: Portions Copyright [yyyy] [name of copyright owner] 197c478bd9Sstevel@tonic-gate * 207c478bd9Sstevel@tonic-gate * CDDL HEADER END 217c478bd9Sstevel@tonic-gate */ 227c478bd9Sstevel@tonic-gate /* 237c478bd9Sstevel@tonic-gate * Copyright 1991 Sun Microsystems, Inc. All rights reserved. 247c478bd9Sstevel@tonic-gate * Use is subject to license terms. 257c478bd9Sstevel@tonic-gate */ 267c478bd9Sstevel@tonic-gate 277c478bd9Sstevel@tonic-gate /* Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T */ 28*b4203d75SMarcel Telka /* All Rights Reserved */ 297c478bd9Sstevel@tonic-gate 307c478bd9Sstevel@tonic-gate #ifndef _SYS_IOCTL_H 317c478bd9Sstevel@tonic-gate #define _SYS_IOCTL_H 327c478bd9Sstevel@tonic-gate 337c478bd9Sstevel@tonic-gate #ifdef __cplusplus 347c478bd9Sstevel@tonic-gate extern "C" { 357c478bd9Sstevel@tonic-gate #endif 367c478bd9Sstevel@tonic-gate 377c478bd9Sstevel@tonic-gate /* 387c478bd9Sstevel@tonic-gate * There are some inherent problems in having a single file 397c478bd9Sstevel@tonic-gate * ioctl.h, with both System V and BSD flags. Introducing 407c478bd9Sstevel@tonic-gate * BSD flags into this file creates compilation problems 417c478bd9Sstevel@tonic-gate * with flags such as ECHO, NL1 etc., if termio.h and ioctl.h 427c478bd9Sstevel@tonic-gate * are included by the same file. Since these two files can 437c478bd9Sstevel@tonic-gate * be only included by System V applications, /usr/inclule/sys/ioctl.h 447c478bd9Sstevel@tonic-gate * will be System V mode and all the BSD flags will be turned off 457c478bd9Sstevel@tonic-gate * using #ifdef BSD_COMP. This file will also exist in 467c478bd9Sstevel@tonic-gate * /usr/ucbinclude/sys/ioctl.h for BSD applications but without the 477c478bd9Sstevel@tonic-gate * BSD flags turned off. System V appliactions can use ioctl.h without 487c478bd9Sstevel@tonic-gate * any changes, System V applications requiring BSD flags should 497c478bd9Sstevel@tonic-gate * -D BSD_COMP when compiling (and be warned about the common 507c478bd9Sstevel@tonic-gate * flags between System V and BSD) and BSD applications should 517c478bd9Sstevel@tonic-gate * use /usr/ucbinclude/sys/ioctl.h. 527c478bd9Sstevel@tonic-gate * 537c478bd9Sstevel@tonic-gate */ 547c478bd9Sstevel@tonic-gate 557c478bd9Sstevel@tonic-gate #define IOCTYPE 0xff00 567c478bd9Sstevel@tonic-gate 577c478bd9Sstevel@tonic-gate #define LIOC ('l'<<8) 587c478bd9Sstevel@tonic-gate #define LIOCGETP (LIOC|1) 597c478bd9Sstevel@tonic-gate #define LIOCSETP (LIOC|2) 607c478bd9Sstevel@tonic-gate #define LIOCGETS (LIOC|5) 617c478bd9Sstevel@tonic-gate #define LIOCSETS (LIOC|6) 627c478bd9Sstevel@tonic-gate 637c478bd9Sstevel@tonic-gate #define DIOC ('d'<<8) 647c478bd9Sstevel@tonic-gate #define DIOCGETC (DIOC|1) 657c478bd9Sstevel@tonic-gate #define DIOCGETB (DIOC|2) 667c478bd9Sstevel@tonic-gate #define DIOCSETE (DIOC|3) 677c478bd9Sstevel@tonic-gate 687c478bd9Sstevel@tonic-gate #ifdef __cplusplus 697c478bd9Sstevel@tonic-gate } 707c478bd9Sstevel@tonic-gate #endif 717c478bd9Sstevel@tonic-gate 727c478bd9Sstevel@tonic-gate /* BSD related defines */ 737c478bd9Sstevel@tonic-gate 747c478bd9Sstevel@tonic-gate #ifdef BSD_COMP 757c478bd9Sstevel@tonic-gate 767c478bd9Sstevel@tonic-gate #include <sys/ttychars.h> 777c478bd9Sstevel@tonic-gate #include <sys/ttydev.h> 787c478bd9Sstevel@tonic-gate #include <sys/ttold.h> 797c478bd9Sstevel@tonic-gate 807c478bd9Sstevel@tonic-gate #ifdef __cplusplus 817c478bd9Sstevel@tonic-gate extern "C" { 827c478bd9Sstevel@tonic-gate #endif 837c478bd9Sstevel@tonic-gate 847c478bd9Sstevel@tonic-gate #define TANDEM O_TANDEM 857c478bd9Sstevel@tonic-gate #define CBREAK O_CBREAK 867c478bd9Sstevel@tonic-gate #ifndef _SGTTY_H 877c478bd9Sstevel@tonic-gate #define LCASE O_LCASE 887c478bd9Sstevel@tonic-gate #define ECHO O_ECHO 897c478bd9Sstevel@tonic-gate #define CRMOD O_CRMOD 907c478bd9Sstevel@tonic-gate #define RAW O_RAW 917c478bd9Sstevel@tonic-gate #define ODDP O_ODDP 927c478bd9Sstevel@tonic-gate #define EVENP O_EVENP 937c478bd9Sstevel@tonic-gate #define ANYP O_ANYP 947c478bd9Sstevel@tonic-gate #define NLDELAY O_NLDELAY 957c478bd9Sstevel@tonic-gate #define NL0 O_NL0 967c478bd9Sstevel@tonic-gate #define NL1 O_NL1 977c478bd9Sstevel@tonic-gate #define NL2 O_NL2 987c478bd9Sstevel@tonic-gate #define NL3 O_NL3 997c478bd9Sstevel@tonic-gate #define TBDELAY O_TBDELAY 1007c478bd9Sstevel@tonic-gate #define TAB0 O_TAB0 1017c478bd9Sstevel@tonic-gate #define TAB1 O_TAB1 1027c478bd9Sstevel@tonic-gate #define TAB2 O_TAB2 1037c478bd9Sstevel@tonic-gate #define XTABS O_XTABS 1047c478bd9Sstevel@tonic-gate #define CRDELAY O_CRDELAY 1057c478bd9Sstevel@tonic-gate #define CR0 O_CR0 1067c478bd9Sstevel@tonic-gate #define CR1 O_CR1 1077c478bd9Sstevel@tonic-gate #define CR2 O_CR2 1087c478bd9Sstevel@tonic-gate #define CR3 O_CR3 1097c478bd9Sstevel@tonic-gate #define VTDELAY O_VTDELAY 1107c478bd9Sstevel@tonic-gate #define FF0 O_FF0 1117c478bd9Sstevel@tonic-gate #define FF1 O_FF1 1127c478bd9Sstevel@tonic-gate #define BSDELAY O_BSDELAY 1137c478bd9Sstevel@tonic-gate #define BS0 O_BS0 1147c478bd9Sstevel@tonic-gate #define BS1 O_BS1 1157c478bd9Sstevel@tonic-gate #define ALLDELAY O_ALLDELAY 1167c478bd9Sstevel@tonic-gate #endif /* _SGTTY_H */ 1177c478bd9Sstevel@tonic-gate #define CRTBS O_CRTBS 1187c478bd9Sstevel@tonic-gate #define PRTERA O_PRTERA 1197c478bd9Sstevel@tonic-gate #define CRTERA O_CRTERA 1207c478bd9Sstevel@tonic-gate #define TILDE O_TILDE 1217c478bd9Sstevel@tonic-gate #define MDMBUF O_MDMBUF 1227c478bd9Sstevel@tonic-gate #define LITOUT O_LITOUT 1237c478bd9Sstevel@tonic-gate #define TOSTOP O_TOSTOP 1247c478bd9Sstevel@tonic-gate #define FLUSHO O_FLUSHO 1257c478bd9Sstevel@tonic-gate #define NOHANG O_NOHANG 1267c478bd9Sstevel@tonic-gate #define L001000 O_L001000 1277c478bd9Sstevel@tonic-gate #define CRTKIL O_CRTKIL 1287c478bd9Sstevel@tonic-gate #define PASS8 O_PASS8 1297c478bd9Sstevel@tonic-gate #define CTLECH O_CTLECH 1307c478bd9Sstevel@tonic-gate #define PENDIN O_PENDIN 1317c478bd9Sstevel@tonic-gate #define DECCTQ O_DECCTQ 1327c478bd9Sstevel@tonic-gate #define NOFLSH O_NOFLSH 1337c478bd9Sstevel@tonic-gate 1347c478bd9Sstevel@tonic-gate #ifdef __cplusplus 1357c478bd9Sstevel@tonic-gate } 1367c478bd9Sstevel@tonic-gate #endif 1377c478bd9Sstevel@tonic-gate 1387c478bd9Sstevel@tonic-gate #include <sys/filio.h> 1397c478bd9Sstevel@tonic-gate #include <sys/sockio.h> 1407c478bd9Sstevel@tonic-gate 1417c478bd9Sstevel@tonic-gate #endif /* BSD_COMP */ 1427c478bd9Sstevel@tonic-gate 1437c478bd9Sstevel@tonic-gate #endif /* _SYS_IOCTL_H */ 144