xref: /original-bsd/sys/sys/ioctl.h (revision e58c8952)
1 /*-
2  * Copyright (c) 1982, 1986, 1990, 1993, 1994
3  *	The Regents of the University of California.  All rights reserved.
4  * (c) UNIX System Laboratories, Inc.
5  * All or some portions of this file are derived from material licensed
6  * to the University of California by American Telephone and Telegraph
7  * Co. or Unix System Laboratories, Inc. and are reproduced herein with
8  * the permission of UNIX System Laboratories, Inc.
9  *
10  * %sccs.include.redist.c%
11  *
12  *	@(#)ioctl.h	8.6 (Berkeley) 03/28/94
13  */
14 
15 #ifndef	_SYS_IOCTL_H_
16 #define	_SYS_IOCTL_H_
17 
18 #include <sys/ttycom.h>
19 
20 /*
21  * Pun for SunOS prior to 3.2.  SunOS 3.2 and later support TIOCGWINSZ
22  * and TIOCSWINSZ (yes, even 3.2-3.5, the fact that it wasn't documented
23  * nonwithstanding).
24  */
25 struct ttysize {
26 	unsigned short	ts_lines;
27 	unsigned short	ts_cols;
28 	unsigned short	ts_xxx;
29 	unsigned short	ts_yyy;
30 };
31 #define	TIOCGSIZE	TIOCGWINSZ
32 #define	TIOCSSIZE	TIOCSWINSZ
33 
34 #include <sys/ioccom.h>
35 
36 #include <sys/filio.h>
37 #include <sys/sockio.h>
38 
39 #ifndef KERNEL
40 
41 #include <sys/cdefs.h>
42 
43 __BEGIN_DECLS
44 int	ioctl __P((int, unsigned long, ...));
45 __END_DECLS
46 #endif /* !KERNEL */
47 #endif /* !_SYS_IOCTL_H_ */
48 
49 /*
50  * Keep outside _SYS_IOCTL_H_
51  * Compatability with old terminal driver
52  *
53  * Source level -> #define USE_OLD_TTY
54  * Kernel level -> options COMPAT_43 or COMPAT_SUNOS
55  */
56 #if defined(USE_OLD_TTY) || defined(COMPAT_43) || defined(COMPAT_SUNOS)
57 #include <sys/ioctl_compat.h>
58 #endif
59