diff options
author | bde <bde@FreeBSD.org> | 1996-09-21 14:59:43 +0000 |
---|---|---|
committer | bde <bde@FreeBSD.org> | 1996-09-21 14:59:43 +0000 |
commit | 9bcb122232e4319fd67ee59c7cd43611d5e2fc60 (patch) | |
tree | e03f53db0e9dc53fdad8b0a593af598744be17da | |
parent | 178a446971cddf750d684ed6f842b14faed1c64e (diff) | |
download | FreeBSD-src-9bcb122232e4319fd67ee59c7cd43611d5e2fc60.zip FreeBSD-src-9bcb122232e4319fd67ee59c7cd43611d5e2fc60.tar.gz |
Cleaned up all headers that include <sys/ioctl.h> or <sys/ioccom.h>:
- don't include <sys/ioctl.h> in any header. Include <sys/ioccom.h>
instead. This was already done in 4.4Lite for the most important
ioctl headers. Header spam currently increases kernel build
times by 10-20%. There are more than 30000 #includes (not counting
duplicates) for compiling LINT.
- include <sys/types.h> if and only it is necessary to make the header
almost self-sufficient (some ioctl headers still need structs from
elsewhere).
- uniformized idempotency ifdefs. Copied the style in the 4.4Lite
ioctl headers.
44 files changed, 288 insertions, 199 deletions
diff --git a/sys/alpha/include/console.h b/sys/alpha/include/console.h index 43b70f0..9fc33d3 100644 --- a/sys/alpha/include/console.h +++ b/sys/alpha/include/console.h @@ -25,13 +25,15 @@ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * - * $Id: console.h,v 1.21 1996/06/14 11:00:57 asami Exp $ + * $Id: console.h,v 1.23 1996/06/25 08:54:34 sos Exp $ */ -#ifndef _CONSOLE_H_ -#define _CONSOLE_H_ +#ifndef _MACHINE_CONSOLE_H_ +#define _MACHINE_CONSOLE_H_ +#ifndef KERNEL #include <sys/types.h> +#endif #include <sys/ioccom.h> #define KDGKBMODE _IOR('K', 6, int) @@ -80,7 +82,7 @@ #ifdef PC98 #define ADJUST_CLOCK _IO('t',100) /* for 98note resume */ -#endif /* for PC98 */ +#endif #define VT_OPENQRY _IOR('v', 1, int) #define VT_SETMODE _IOW('v', 2, vtmode_t) @@ -336,7 +338,7 @@ typedef struct ssaver ssaver_t; #define M_HGC_P0 0xe0 /* hercules graphics - page 0 @ B0000 */ #define M_HGC_P1 0xe1 /* hercules graphics - page 1 @ B8000 */ #define M_MCA_MODE 0xff /* monochrome adapter mode */ -#endif +#endif /* PC98 */ #ifdef PC98 #define SW_PC98_80x25 _IO('S', M_PC98_80x25) @@ -378,6 +380,6 @@ typedef struct ssaver ssaver_t; #define SW_CG640x480 _IO('S', M_VGA12) #define SW_VGA13 _IO('S', M_VGA13) #define SW_VGA_CG320 _IO('S', M_VGA13) -#endif +#endif /* PC98 */ -#endif +#endif /* !_MACHINE_CONSOLE_H_ */ diff --git a/sys/dev/bktr/ioctl_meteor.h b/sys/dev/bktr/ioctl_meteor.h index f432550..919100f 100644 --- a/sys/dev/bktr/ioctl_meteor.h +++ b/sys/dev/bktr/ioctl_meteor.h @@ -32,10 +32,13 @@ * ioctl constants for Matrox Meteor Capture card. */ -#ifndef _MACHINE_IOCTL_METEOR_H -#define _MACHINE_IOCTL_METEOR_H +#ifndef _MACHINE_IOCTL_METEOR_H_ +#define _MACHINE_IOCTL_METEOR_H_ -#include <sys/ioctl.h> +#ifndef KERNEL +#include <sys/types.h> +#endif +#include <sys/ioccom.h> struct meteor_capframe { short command; /* see below for valid METEORCAPFRM commands */ @@ -179,4 +182,4 @@ struct meteor_mem { caddr_t buf; /* The real space (virtual addr) */ } ; -#endif /* ifndef _MACHINE_IOCTL_METEOR_H */ +#endif /* !_MACHINE_IOCTL_METEOR_H_ */ diff --git a/sys/dev/ppbus/lptio.h b/sys/dev/ppbus/lptio.h index a203c7d..14ea3d3 100644 --- a/sys/dev/ppbus/lptio.h +++ b/sys/dev/ppbus/lptio.h @@ -11,15 +11,14 @@ * * Geoff Rehmet, Rhodes University, South Africa <csgr@cs.ru.ac.za> * - * $Id: lpt.h,v 1.2 1994/08/02 07:38:52 davidg Exp $ + * $Id: lpt.h,v 1.3 1995/05/30 08:00:41 rgrimes Exp $ */ -#ifndef _LPT_PRINTER_H_ -#define _LPT_PRINTER_H_ +#ifndef _MACHINE_LPT_H_ +#define _MACHINE_LPT_H_ -#include <sys/types.h> -#include <sys/ioctl.h> +#include <sys/ioccom.h> #define LPT_IRQ _IOW('p', 1, long) /* set interrupt status */ -#endif +#endif /* !_MACHINE_LPT_H_ */ diff --git a/sys/dev/speaker/speaker.h b/sys/dev/speaker/speaker.h index f097e48..7a233c7 100644 --- a/sys/dev/speaker/speaker.h +++ b/sys/dev/speaker/speaker.h @@ -4,13 +4,13 @@ * v1.4 by Eric S. Raymond (esr@snark.thyrsus.com) Aug 1993 * modified for FreeBSD by Andrew A. Chernov <ache@astral.msk.su> * - * $Id$ + * $Id: speaker.h,v 1.2 1994/08/02 07:39:05 davidg Exp $ */ -#ifndef _SPEAKER_H_ -#define _SPEAKER_H_ +#ifndef _MACHINE_SPEAKER_H_ +#define _MACHINE_SPEAKER_H_ -#include <sys/ioctl.h> +#include <sys/ioccom.h> #define SPKRTONE _IOW('S', 1, tone_t) /* emit tone */ #define SPKRTUNE _IO('S', 2) /* emit tone sequence*/ @@ -27,6 +27,4 @@ tone_t; * see the spkr(4) man page for details. */ -#endif /* _SPEAKER_H_ */ - -/* speaker.h ends here */ +#endif /* !_MACHINE_SPEAKER_H_ */ diff --git a/sys/gnu/isdn/isdn_ioctl.h b/sys/gnu/isdn/isdn_ioctl.h index 64fe163..8ac0c1e 100644 --- a/sys/gnu/isdn/isdn_ioctl.h +++ b/sys/gnu/isdn/isdn_ioctl.h @@ -1,6 +1,6 @@ -/* @(#)$Id: isdn_ioctl.h,v 1.3 1995/11/16 10:44:48 bde Exp $ +/* @(#)$Id: isdn_ioctl.h,v 1.4 1996/06/12 05:02:22 gpalmer Exp $ ******************************************************************************* - * II - Version 0.1 $Revision: 1.3 $ $State: Exp $ + * II - Version 0.1 $Revision: 1.4 $ $State: Exp $ * * Copyright 1994 Dietmar Friede ******************************************************************************* @@ -10,6 +10,11 @@ * ******************************************************************************* * $Log: isdn_ioctl.h,v $ + * Revision 1.4 1996/06/12 05:02:22 gpalmer + * Clean up -Wunused warnings. + * + * Reviewed by: bde + * * Revision 1.3 1995/11/16 10:44:48 bde * Completed function declarations. * @@ -32,6 +37,13 @@ * ******************************************************************************/ +#ifndef _GNU_ISDN_ISDN_IOCTL_H_ +#define _GNU_ISDN_ISDN_IOCTL_H_ + +#ifndef KERNEL +#include <sys/types.h> +#endif +#include <sys/ioccom.h> #pragma pack (1) typedef struct @@ -205,3 +217,5 @@ int ity_input __P((int no, int len, char *buf, int dir)); int ity_out __P((int no, char *buf, int len)); #endif /* KERNEL */ + +#endif /* !_GNU_ISDN_ISDN_IOCTL_H_ */ diff --git a/sys/i386/ibcs2/ibcs2_socksys.h b/sys/i386/ibcs2/ibcs2_socksys.h index f0f29f21..3335805 100644 --- a/sys/i386/ibcs2/ibcs2_socksys.h +++ b/sys/i386/ibcs2/ibcs2_socksys.h @@ -23,11 +23,11 @@ * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ - -#ifndef _IBCS2_SOCKSYS_H -#define _IBCS2_SOCKSYS_H 1 +#ifndef _I386_IBCS2_IBCS2_SOCKSYS_H_ +#define _I386_IBCS2_IBCS2_SOCKSYS_H_ #include <sys/ioccom.h> + #include <i386/ibcs2/ibcs2_types.h> #define SOCKSYS_ACCEPT 1 @@ -123,4 +123,4 @@ struct ibcs2_socksys_args { int ibcs2_socksys __P((struct proc *, struct ibcs2_socksys_args *, int *)); -#endif /* _IBCS2_SOCKSYS_H */ +#endif /* !_I386_IBCS2_IBCS2_SOCKSYS_H_ */ diff --git a/sys/i386/include/apm_bios.h b/sys/i386/include/apm_bios.h index 8e2cbf6..288f4b8 100644 --- a/sys/i386/include/apm_bios.h +++ b/sys/i386/include/apm_bios.h @@ -12,11 +12,16 @@ * * Aug, 1994 Implemented on FreeBSD 1.1.5.1R (Toshiba AVS001WD) * - * $Id: apm_bios.h,v 1.10 1996/04/23 16:02:53 nate Exp $ + * $Id: apm_bios.h,v 1.11 1996/09/12 11:08:04 asami Exp $ */ -#ifndef _MACHINE_APM_BIOS_H_ -#define _MACHINE_APM_BIOS_H_ 1 +#ifndef _MACHINE_APM_BIOS_H_ +#define _MACHINE_APM_BIOS_H_ + +#ifndef KERNEL +#include <sys/types.h> +#endif +#include <sys/ioccom.h> #ifdef KERNEL @@ -192,4 +197,4 @@ typedef struct apm_info { #endif /* !ASSEMBLER && !INITIALIZER */ -#endif /* _MACHINE_APM_BIOS_H_ */ +#endif /* !_MACHINE_APM_BIOS_H_ */ diff --git a/sys/i386/include/asc_ioctl.h b/sys/i386/include/asc_ioctl.h index 6d33429..ac92eddd 100644 --- a/sys/i386/include/asc_ioctl.h +++ b/sys/i386/include/asc_ioctl.h @@ -29,11 +29,10 @@ * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef _I386_ASC_IOCTL_H_ -#define _I386_ASC_IOCTL_H_ +#ifndef _MACHINE_ASC_IOCTL_H_ +#define _MACHINE_ASC_IOCTL_H_ -#include <sys/types.h> -#include <sys/ioctl.h> +#include <sys/ioccom.h> #define ASC_GRES _IOR('S', 1, int) /* get resolution / dpi */ #define ASC_SRES _IOW('S', 2, int) /* set resolution / dpi */ @@ -49,4 +48,4 @@ #define ASC_SRESSW _IO('S', 11) /* set resolution by switch */ -#endif +#endif /* !_MACHINE_ASC_IOCTL_H_ */ diff --git a/sys/i386/include/console.h b/sys/i386/include/console.h index 43b70f0..9fc33d3 100644 --- a/sys/i386/include/console.h +++ b/sys/i386/include/console.h @@ -25,13 +25,15 @@ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * - * $Id: console.h,v 1.21 1996/06/14 11:00:57 asami Exp $ + * $Id: console.h,v 1.23 1996/06/25 08:54:34 sos Exp $ */ -#ifndef _CONSOLE_H_ -#define _CONSOLE_H_ +#ifndef _MACHINE_CONSOLE_H_ +#define _MACHINE_CONSOLE_H_ +#ifndef KERNEL #include <sys/types.h> +#endif #include <sys/ioccom.h> #define KDGKBMODE _IOR('K', 6, int) @@ -80,7 +82,7 @@ #ifdef PC98 #define ADJUST_CLOCK _IO('t',100) /* for 98note resume */ -#endif /* for PC98 */ +#endif #define VT_OPENQRY _IOR('v', 1, int) #define VT_SETMODE _IOW('v', 2, vtmode_t) @@ -336,7 +338,7 @@ typedef struct ssaver ssaver_t; #define M_HGC_P0 0xe0 /* hercules graphics - page 0 @ B0000 */ #define M_HGC_P1 0xe1 /* hercules graphics - page 1 @ B8000 */ #define M_MCA_MODE 0xff /* monochrome adapter mode */ -#endif +#endif /* PC98 */ #ifdef PC98 #define SW_PC98_80x25 _IO('S', M_PC98_80x25) @@ -378,6 +380,6 @@ typedef struct ssaver ssaver_t; #define SW_CG640x480 _IO('S', M_VGA12) #define SW_VGA13 _IO('S', M_VGA13) #define SW_VGA_CG320 _IO('S', M_VGA13) -#endif +#endif /* PC98 */ -#endif +#endif /* !_MACHINE_CONSOLE_H_ */ diff --git a/sys/i386/include/gsc.h b/sys/i386/include/gsc.h index aa225a8..e84e63c 100644 --- a/sys/i386/include/gsc.h +++ b/sys/i386/include/gsc.h @@ -29,11 +29,10 @@ * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef _GSC_IOCTL_H_ -#define _GSC_IOCTL_H_ +#ifndef _MACHINE_GSC_H_ +#define _MACHINE_GSC_H_ -#include <sys/types.h> -#include <sys/ioctl.h> +#include <sys/ioccom.h> #define GSC_GRES _IOR('S', 1, int) /* get resolution / dpi */ #define GSC_SRES _IOW('S', 2, int) /* set resolution / dpi */ @@ -49,4 +48,4 @@ #define GSC_SRESSW _IO('S', 11) /* set resolution by switch */ -#endif +#endif /* !_MACHINE_GSC_H_ */ diff --git a/sys/i386/include/ioctl_ctx.h b/sys/i386/include/ioctl_ctx.h index a330664..bf76f57 100644 --- a/sys/i386/include/ioctl_ctx.h +++ b/sys/i386/include/ioctl_ctx.h @@ -7,17 +7,18 @@ * of this software, nor does the author assume any responsibility * for damages incurred with its use * - * $Id: ioctl_ctx.h,v 1.1 1994/10/01 17:59:38 davidg Exp $ + * $Id: ioctl_ctx.h,v 1.2 1995/05/30 08:00:40 rgrimes Exp $ */ /* * ioctl constants for Cortex-I frame grabber */ -#ifndef _MACHINE_IOCTL_CTX_H_ -#define _MACHINE_IOCTL_CTX_H_ +#ifndef _MACHINE_IOCTL_CTX_H_ +#define _MACHINE_IOCTL_CTX_H_ + +#include <sys/ioccom.h> -#include <sys/ioctl.h> typedef char _CTX_LUTBUF[256]; /* look up table buffer */ #define CTX_LIVE _IO('x', 1) /* live video */ @@ -27,4 +28,4 @@ typedef char _CTX_LUTBUF[256]; /* look up table buffer */ #define CTX_SET_LUT _IOW('x', 5, _CTX_LUTBUF) /* set lookup table */ #define CTX_GET_LUT _IOR('x', 6, _CTX_LUTBUF) /* get lookup table */ -#endif /* ifndef _MACHINE_IOCTL_CTX_H */ +#endif /* !_MACHINE_IOCTL_CTX_H_ */ diff --git a/sys/i386/include/ioctl_fd.h b/sys/i386/include/ioctl_fd.h index 2a9212b..1f6b6d5 100644 --- a/sys/i386/include/ioctl_fd.h +++ b/sys/i386/include/ioctl_fd.h @@ -24,14 +24,16 @@ * USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH * DAMAGE. * - * $Id: ioctl_fd.h,v 1.7 1994/10/30 19:17:39 joerg Exp $ + * $Id: ioctl_fd.h,v 1.8 1996/01/30 22:54:34 mpp Exp $ */ -#ifndef _IOCTL_FD_H -#define _IOCTL_FD_H +#ifndef _MACHINE_IOCTL_FD_H_ +#define _MACHINE_IOCTL_FD_H_ +#ifndef KERNEL #include <sys/types.h> -#include <sys/ioctl.h> +#endif +#include <sys/ioccom.h> #define FD_FORMAT_VERSION 110 /* used to validate before formatting */ #define FD_MAX_NSEC 36 /* highest known number of spt - allow for */ @@ -120,4 +122,4 @@ struct fd_type { /* for some controllers 1MPBS instead */ #endif /* FDC_500KBPS */ -#endif /* !def _IOCTL_FD_H */ +#endif /* !_MACHINE_IOCTL_FD_H_ */ diff --git a/sys/i386/include/ioctl_meteor.h b/sys/i386/include/ioctl_meteor.h index f432550..919100f 100644 --- a/sys/i386/include/ioctl_meteor.h +++ b/sys/i386/include/ioctl_meteor.h @@ -32,10 +32,13 @@ * ioctl constants for Matrox Meteor Capture card. */ -#ifndef _MACHINE_IOCTL_METEOR_H -#define _MACHINE_IOCTL_METEOR_H +#ifndef _MACHINE_IOCTL_METEOR_H_ +#define _MACHINE_IOCTL_METEOR_H_ -#include <sys/ioctl.h> +#ifndef KERNEL +#include <sys/types.h> +#endif +#include <sys/ioccom.h> struct meteor_capframe { short command; /* see below for valid METEORCAPFRM commands */ @@ -179,4 +182,4 @@ struct meteor_mem { caddr_t buf; /* The real space (virtual addr) */ } ; -#endif /* ifndef _MACHINE_IOCTL_METEOR_H */ +#endif /* !_MACHINE_IOCTL_METEOR_H_ */ diff --git a/sys/i386/include/joystick.h b/sys/i386/include/joystick.h index d070ac0..051d991e 100644 --- a/sys/i386/include/joystick.h +++ b/sys/i386/include/joystick.h @@ -1,8 +1,7 @@ -#ifndef _JOY_IOCTL_H_ -#define _JOY_IOCTL_H_ +#ifndef _MACHINE_JOYSTICK_H_ +#define _MACHINE_JOYSTICK_H_ -#include <sys/types.h> -#include <sys/ioctl.h> +#include <sys/ioccom.h> struct joystick { int x; @@ -18,4 +17,4 @@ struct joystick { #define JOY_GET_X_OFFSET _IOR('J', 5, int) /* get offset on X-axis */ #define JOY_GET_Y_OFFSET _IOR('J', 6, int) /* get offset on Y-axis */ -#endif /* _JOY_IOCTL_H_ */ +#endif /* !_MACHINE_JOYSTICK_H_ */ diff --git a/sys/i386/include/lpt.h b/sys/i386/include/lpt.h index a203c7d..14ea3d3 100644 --- a/sys/i386/include/lpt.h +++ b/sys/i386/include/lpt.h @@ -11,15 +11,14 @@ * * Geoff Rehmet, Rhodes University, South Africa <csgr@cs.ru.ac.za> * - * $Id: lpt.h,v 1.2 1994/08/02 07:38:52 davidg Exp $ + * $Id: lpt.h,v 1.3 1995/05/30 08:00:41 rgrimes Exp $ */ -#ifndef _LPT_PRINTER_H_ -#define _LPT_PRINTER_H_ +#ifndef _MACHINE_LPT_H_ +#define _MACHINE_LPT_H_ -#include <sys/types.h> -#include <sys/ioctl.h> +#include <sys/ioccom.h> #define LPT_IRQ _IOW('p', 1, long) /* set interrupt status */ -#endif +#endif /* !_MACHINE_LPT_H_ */ diff --git a/sys/i386/include/pcaudioio.h b/sys/i386/include/pcaudioio.h index b2b79c8..c580fd4 100644 --- a/sys/i386/include/pcaudioio.h +++ b/sys/i386/include/pcaudioio.h @@ -25,11 +25,13 @@ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * - * $Id: pcaudioio.h,v 1.5 1996/01/30 22:54:42 mpp Exp $ + * $Id: pcaudioio.h,v 1.6 1996/07/17 20:18:42 joerg Exp $ */ -#ifndef _PCAUDIOIO_H_ -#define _PCAUDIOIO_H_ +#ifndef _MACHINE_PCAUDIOIO_H_ +#define _MACHINE_PCAUDIOIO_H_ + +#include <sys/ioccom.h> typedef struct audio_prinfo { unsigned sample_rate; /* samples per second */ @@ -77,4 +79,4 @@ typedef struct audio_info { #define AUDIO_COMPAT_DRAIN _IO('P', 1) #define AUDIO_COMPAT_FLUSH _IO('P', 0) -#endif /*!_PCAUDIOIO_H*/ +#endif /* !_MACHINE_PCAUDIOIO_H_ */ diff --git a/sys/i386/include/pcvt_ioctl.h b/sys/i386/include/pcvt_ioctl.h index 9a369da..ac26796 100644 --- a/sys/i386/include/pcvt_ioctl.h +++ b/sys/i386/include/pcvt_ioctl.h @@ -73,7 +73,7 @@ #if !defined(KERNEL) && !defined(_KERNEL) #include <sys/types.h> #endif -#include <sys/ioctl.h> +#include <sys/ioccom.h> /*---------------------------------------------------------------------------* * IOCTLs for MF II and AT Keyboards @@ -578,4 +578,4 @@ typedef struct keymap keymap_t; /* end of USL VT compatibility stuff */ -#endif /* ! _MACHINE_PCVT_IOCTL_H_ */ +#endif /* !_MACHINE_PCVT_IOCTL_H_ */ diff --git a/sys/i386/include/perfmon.h b/sys/i386/include/perfmon.h index 8aec6df..8e5023c 100644 --- a/sys/i386/include/perfmon.h +++ b/sys/i386/include/perfmon.h @@ -26,7 +26,7 @@ * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id$ + * $Id: perfmon.h,v 1.1 1996/03/26 19:57:56 wollman Exp $ */ /* @@ -34,12 +34,13 @@ * Pentium Pro CPUs. */ -#ifndef _MACHINE_PERFMON_H_ -#define _MACHINE_PERFMON_H_ 1 +#ifndef _MACHINE_PERFMON_H_ +#define _MACHINE_PERFMON_H_ #ifndef KERNEL -#include <sys/ioccom.h> +#include <sys/types.h> #endif +#include <sys/ioccom.h> #define NPMC 2 @@ -258,4 +259,4 @@ int perfmon_ioctl __P((dev_t, int, caddr_t, int, struct proc *)); #define PMC5_DATA_RW 40 #define PMC5_DATA_RW_MISS 41 -#endif /* _MACHINE_PERFMON_H_ */ +#endif /* !_MACHINE_PERFMON_H_ */ diff --git a/sys/i386/include/random.h b/sys/i386/include/random.h index 266cc91..c328d1b 100644 --- a/sys/i386/include/random.h +++ b/sys/i386/include/random.h @@ -1,7 +1,7 @@ /* * random.h -- A strong random number generator * - * $Id: random.h,v 1.6 1996/06/17 16:47:39 bde Exp $ + * $Id: random.h,v 1.7 1996/09/03 10:22:30 asami Exp $ * * Version 0.95, last modified 18-Oct-95 * @@ -47,7 +47,7 @@ * */ -#ifndef _MACHINE_RANDOM_H_ +#ifndef _MACHINE_RANDOM_H_ #define _MACHINE_RANDOM_H_ #include <sys/ioccom.h> diff --git a/sys/i386/include/soundcard.h b/sys/i386/include/soundcard.h index 3dcdaa1..666a4b8 100644 --- a/sys/i386/include/soundcard.h +++ b/sys/i386/include/soundcard.h @@ -1,5 +1,3 @@ -#ifndef SOUNDCARD_H -#define SOUNDCARD_H /* * Copyright by Hannu Savolainen 1993 * @@ -37,10 +35,13 @@ * hannu@voxware.pp.fi */ +#ifndef _MACHINE_SOUNDCARD_H_ +#define _MACHINE_SOUNDCARD_H_ + #define SOUND_VERSION 301 #define VOXWARE -#include <sys/ioctl.h> +#include <sys/ioccom.h> /* * Supported card ID numbers (Should be somewhere else?) @@ -1044,5 +1045,6 @@ void seqbuf_dump(void); /* This function must be provided by programs */ perror("Write patch: /dev/sequencer");} #define SEQ_WRPATCH2(patchx, len) (seqbuf_dump(), write(seqfd, (char*)(patchx), len)) -#endif -#endif +#endif /* !KERNEL_SPAM */ + +#endif /* !_MACHINE_SOUNDCARD_H_ */ diff --git a/sys/i386/include/speaker.h b/sys/i386/include/speaker.h index f097e48..7a233c7 100644 --- a/sys/i386/include/speaker.h +++ b/sys/i386/include/speaker.h @@ -4,13 +4,13 @@ * v1.4 by Eric S. Raymond (esr@snark.thyrsus.com) Aug 1993 * modified for FreeBSD by Andrew A. Chernov <ache@astral.msk.su> * - * $Id$ + * $Id: speaker.h,v 1.2 1994/08/02 07:39:05 davidg Exp $ */ -#ifndef _SPEAKER_H_ -#define _SPEAKER_H_ +#ifndef _MACHINE_SPEAKER_H_ +#define _MACHINE_SPEAKER_H_ -#include <sys/ioctl.h> +#include <sys/ioccom.h> #define SPKRTONE _IOW('S', 1, tone_t) /* emit tone */ #define SPKRTUNE _IO('S', 2) /* emit tone sequence*/ @@ -27,6 +27,4 @@ tone_t; * see the spkr(4) man page for details. */ -#endif /* _SPEAKER_H_ */ - -/* speaker.h ends here */ +#endif /* !_MACHINE_SPEAKER_H_ */ diff --git a/sys/i386/include/spigot.h b/sys/i386/include/spigot.h index b7e3470..32dcd37 100644 --- a/sys/i386/include/spigot.h +++ b/sys/i386/include/spigot.h @@ -25,6 +25,12 @@ * * Version 1.2, Aug 30, 1995. */ + +#ifndef _MACHINE_SPIGOT_H_ +#define _MACHINE_SPIGOT_H_ + +#include <sys/ioccom.h> + struct spigot_info { unsigned long maddr; unsigned short irq; @@ -85,4 +91,6 @@ unsigned char spigot_status(void); * * spigot_status() will return the above status bits. */ -#endif +#endif /* !KERNEL */ + +#endif /* !_MACHINE_SPIGOT_H_ */ diff --git a/sys/i386/isa/b004.h b/sys/i386/isa/b004.h index 6fc8a1e..8ae161f 100644 --- a/sys/i386/isa/b004.h +++ b/sys/i386/isa/b004.h @@ -1,6 +1,3 @@ -#ifndef _B004_H -#define _B004_H - /* * b004.h * @@ -41,7 +38,10 @@ * Works for FreeBSD 1.1.5 */ -#include <sys/ioctl.h> +#ifndef _I386_ISA_B004_H_ +#define _I386_ISA_B004_H_ + +#include <sys/ioccom.h> /* * device status FLAGS @@ -151,4 +151,4 @@ struct b004_struct { #define B004_ASSERT_ANALYSE 0x01 /* switch transputer to analyse-mode */ #define B004_DEASSERT_ANALYSE 0x00 -#endif +#endif /* !_I386_ISA_B004_H_ */ diff --git a/sys/i386/isa/gpib.h b/sys/i386/isa/gpib.h index 557880a..065c086 100644 --- a/sys/i386/isa/gpib.h +++ b/sys/i386/isa/gpib.h @@ -1,3 +1,8 @@ +#ifndef _I386_ISA_GPIB_H_ +#define _I386_ISA_GPIB_H_ + +#include <sys/ioccom.h> + /* gpib data structures */ struct gpibdata { char *data; /* data string for ins and outs */ @@ -5,7 +10,6 @@ struct gpibdata { int *count; } ; - /* IOCTL commands */ #define GPIBWRITE _IOW('g',1,struct gpibdata) #define GPIBREAD _IOW('g',2,struct gpibdata) @@ -17,3 +21,5 @@ struct gpibdata { #define GPIBMREMOTE _IOW('g',8,struct gpibdata) #define GPIBMLOCAL _IOW('g',9,struct gpibdata) #define GPIBSPOLL _IOW('g',10,struct gpibdata) + +#endif /* !_I386_ISA_GPIB_H_ */ diff --git a/sys/pccard/card.h b/sys/pccard/card.h index 424098b..7076c95 100644 --- a/sys/pccard/card.h +++ b/sys/pccard/card.h @@ -27,6 +27,15 @@ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ + +#ifndef _PCCARD_CARD_H_ +#define _PCCARD_CARD_H_ + +#ifndef KERNEL +#include <sys/types.h> +#endif +#include <sys/ioccom.h> + #define PIOCGSTATE _IOR('P', 1, struct slotstate) /* Get slot state */ #define PIOCGMEM _IOWR('P', 2, struct mem_desc) /* Get memory map */ #define PIOCSMEM _IOW('P', 3, struct mem_desc) /* Set memory map */ @@ -42,7 +51,6 @@ #define PIOCGREG _IOWR('P',100, struct pcic_reg) /* get reg */ #define PIOCSREG _IOW('P', 101, struct pcic_reg) /* Set reg */ - /* * Slot states for PIOCGSTATE */ @@ -138,3 +146,5 @@ struct power { #define NUM_MEM_WINDOWS 10 #define NUM_IO_WINDOWS 6 #define CARD_DEVICE "/dev/card%d" /* String for sprintf */ + +#endif /* !_PCCARD_CARD_H_ */ diff --git a/sys/pccard/cardinfo.h b/sys/pccard/cardinfo.h index 424098b..7076c95 100644 --- a/sys/pccard/cardinfo.h +++ b/sys/pccard/cardinfo.h @@ -27,6 +27,15 @@ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ + +#ifndef _PCCARD_CARD_H_ +#define _PCCARD_CARD_H_ + +#ifndef KERNEL +#include <sys/types.h> +#endif +#include <sys/ioccom.h> + #define PIOCGSTATE _IOR('P', 1, struct slotstate) /* Get slot state */ #define PIOCGMEM _IOWR('P', 2, struct mem_desc) /* Get memory map */ #define PIOCSMEM _IOW('P', 3, struct mem_desc) /* Set memory map */ @@ -42,7 +51,6 @@ #define PIOCGREG _IOWR('P',100, struct pcic_reg) /* get reg */ #define PIOCSREG _IOW('P', 101, struct pcic_reg) /* Set reg */ - /* * Slot states for PIOCGSTATE */ @@ -138,3 +146,5 @@ struct power { #define NUM_MEM_WINDOWS 10 #define NUM_IO_WINDOWS 6 #define CARD_DEVICE "/dev/card%d" /* String for sprintf */ + +#endif /* !_PCCARD_CARD_H_ */ diff --git a/sys/sys/cdio.h b/sys/sys/cdio.h index 8019130..564ab66 100644 --- a/sys/sys/cdio.h +++ b/sys/sys/cdio.h @@ -1,8 +1,9 @@ /* * 16 Feb 93 Julian Elischer (julian@dialix.oz.au) * - * $Id: cdio.h,v 1.12 1996/02/02 20:41:11 ache Exp $ + * $Id: cdio.h,v 1.13 1996/02/03 14:19:13 ache Exp $ */ + /* <1> Fixed a conflict with ioctl usage. There were two different functions using code #25. Made file formatting consistent. @@ -20,10 +21,15 @@ 2-Apr-95 Frank Durda IV bsdmail@nemesis.lonestar.org */ - /* Shared between kernel & process */ -#ifndef _SYS_CDIO_H_ -#define _SYS_CDIO_H_ + +#ifndef _SYS_CDIO_H_ +#define _SYS_CDIO_H_ + +#ifndef KERNEL +#include <sys/types.h> +#endif +#include <sys/ioccom.h> union msf_lba { struct { @@ -259,5 +265,4 @@ struct ioc_capability { /*<2>*/ #define CDIOCCAPABILITY _IOR('c',30,struct ioc_capability) /*<2>*/ -#endif /* _SYS_CDIO_H_ */ - +#endif /* !_SYS_CDIO_H_ */ diff --git a/sys/sys/chio.h b/sys/sys/chio.h index a249ca1..a8dceb0 100644 --- a/sys/sys/chio.h +++ b/sys/sys/chio.h @@ -1,7 +1,7 @@ /* * 16 Feb 93 Julian Elischer ADDED for SCSI system * - * $Id: chio.h,v 1.5 1995/05/30 08:14:13 rgrimes Exp $ + * $Id: chio.h,v 1.6 1996/01/30 23:00:27 mpp Exp $ */ /* This is a "converted" mtio.h from 386BSD @@ -11,8 +11,14 @@ /* * Structures and definitions for changer io control commands */ -#ifndef _SYS_CHIO_H_ -#define _SYS_CHIO_H_ + +#ifndef _SYS_CHIO_H_ +#define _SYS_CHIO_H_ + +#ifndef KERNEL +#include <sys/types.h> +#endif +#include <sys/ioccom.h> #define CH_INVERT 0x10000 #define CH_ADDR_MASK 0xffff @@ -89,4 +95,4 @@ struct chop { /* Changer IO control command */ #define CHIOOP _IOWR('c', 1, struct chop) /* do a mag tape op */ -#endif /*_SYS_CHIO_H*/ +#endif /* !_SYS_CHIO_H_ */ diff --git a/sys/sys/dataacq.h b/sys/sys/dataacq.h index 82d98e1..c5fe345 100644 --- a/sys/sys/dataacq.h +++ b/sys/sys/dataacq.h @@ -1,11 +1,11 @@ -#ifndef _SYS_DATAACQ_H_ -#define _SYS_DATAACQ_H_ - -#include <sys/ioccom.h> - /* Header for general data acquisition definitions. */ +#ifndef _SYS_DATAACQ_H_ +#define _SYS_DATAACQ_H_ + +#include <sys/ioccom.h> + /* Period in microseconds between analog I/O samples. */ #define AD_MICRO_PERIOD_SET _IOW('A', 1, long) @@ -31,4 +31,4 @@ #define AD_GAINS_SET _IO('A', 6) #define AD_GAINS_GET _IO('A', 7) -#endif /* _SYS_DATAACQ_H_ */ +#endif /* !_SYS_DATAACQ_H_ */ diff --git a/sys/sys/disklabel.h b/sys/sys/disklabel.h index 3f8e4bc..9b00104 100644 --- a/sys/sys/disklabel.h +++ b/sys/sys/disklabel.h @@ -31,12 +31,15 @@ * SUCH DAMAGE. * * @(#)disklabel.h 8.2 (Berkeley) 7/10/94 - * $Id: disklabel.h,v 1.22 1996/06/14 11:02:27 asami Exp $ + * $Id: disklabel.h,v 1.23 1996/09/20 17:39:32 bde Exp $ */ -#ifndef _SYS_DISKLABEL_H_ +#ifndef _SYS_DISKLABEL_H_ #define _SYS_DISKLABEL_H_ +#ifndef KERNEL +#include <sys/types.h> +#endif #include <sys/ioccom.h> /* @@ -443,14 +446,10 @@ int writedisklabel __P((dev_t dev, void (*strat)(struct buf *bp), #endif /* LOCORE */ -#if !defined(KERNEL) && !defined(LOCORE) - -#include <sys/cdefs.h> - +#ifndef KERNEL __BEGIN_DECLS struct disklabel *getdiskbyname __P((const char *)); __END_DECLS - #endif #endif /* !_SYS_DISKLABEL_H_ */ diff --git a/sys/sys/diskmbr.h b/sys/sys/diskmbr.h index 3f8e4bc..9b00104 100644 --- a/sys/sys/diskmbr.h +++ b/sys/sys/diskmbr.h @@ -31,12 +31,15 @@ * SUCH DAMAGE. * * @(#)disklabel.h 8.2 (Berkeley) 7/10/94 - * $Id: disklabel.h,v 1.22 1996/06/14 11:02:27 asami Exp $ + * $Id: disklabel.h,v 1.23 1996/09/20 17:39:32 bde Exp $ */ -#ifndef _SYS_DISKLABEL_H_ +#ifndef _SYS_DISKLABEL_H_ #define _SYS_DISKLABEL_H_ +#ifndef KERNEL +#include <sys/types.h> +#endif #include <sys/ioccom.h> /* @@ -443,14 +446,10 @@ int writedisklabel __P((dev_t dev, void (*strat)(struct buf *bp), #endif /* LOCORE */ -#if !defined(KERNEL) && !defined(LOCORE) - -#include <sys/cdefs.h> - +#ifndef KERNEL __BEGIN_DECLS struct disklabel *getdiskbyname __P((const char *)); __END_DECLS - #endif #endif /* !_SYS_DISKLABEL_H_ */ diff --git a/sys/sys/diskpc98.h b/sys/sys/diskpc98.h index 3f8e4bc..9b00104 100644 --- a/sys/sys/diskpc98.h +++ b/sys/sys/diskpc98.h @@ -31,12 +31,15 @@ * SUCH DAMAGE. * * @(#)disklabel.h 8.2 (Berkeley) 7/10/94 - * $Id: disklabel.h,v 1.22 1996/06/14 11:02:27 asami Exp $ + * $Id: disklabel.h,v 1.23 1996/09/20 17:39:32 bde Exp $ */ -#ifndef _SYS_DISKLABEL_H_ +#ifndef _SYS_DISKLABEL_H_ #define _SYS_DISKLABEL_H_ +#ifndef KERNEL +#include <sys/types.h> +#endif #include <sys/ioccom.h> /* @@ -443,14 +446,10 @@ int writedisklabel __P((dev_t dev, void (*strat)(struct buf *bp), #endif /* LOCORE */ -#if !defined(KERNEL) && !defined(LOCORE) - -#include <sys/cdefs.h> - +#ifndef KERNEL __BEGIN_DECLS struct disklabel *getdiskbyname __P((const char *)); __END_DECLS - #endif #endif /* !_SYS_DISKLABEL_H_ */ diff --git a/sys/sys/diskslice.h b/sys/sys/diskslice.h index 92b7c67..8786f5a 100644 --- a/sys/sys/diskslice.h +++ b/sys/sys/diskslice.h @@ -23,12 +23,15 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: diskslice.h,v 1.14 1996/07/23 07:46:59 asami Exp $ + * $Id: diskslice.h,v 1.15 1996/09/20 17:39:34 bde Exp $ */ -#ifndef _SYS_DISKSLICE_H_ +#ifndef _SYS_DISKSLICE_H_ #define _SYS_DISKSLICE_H_ +#ifndef KERNEL +#include <sys/types.h> +#endif #include <sys/ioccom.h> #define BASE_SLICE 2 diff --git a/sys/sys/fdcio.h b/sys/sys/fdcio.h index 2a9212b..1f6b6d5 100644 --- a/sys/sys/fdcio.h +++ b/sys/sys/fdcio.h @@ -24,14 +24,16 @@ * USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH * DAMAGE. * - * $Id: ioctl_fd.h,v 1.7 1994/10/30 19:17:39 joerg Exp $ + * $Id: ioctl_fd.h,v 1.8 1996/01/30 22:54:34 mpp Exp $ */ -#ifndef _IOCTL_FD_H -#define _IOCTL_FD_H +#ifndef _MACHINE_IOCTL_FD_H_ +#define _MACHINE_IOCTL_FD_H_ +#ifndef KERNEL #include <sys/types.h> -#include <sys/ioctl.h> +#endif +#include <sys/ioccom.h> #define FD_FORMAT_VERSION 110 /* used to validate before formatting */ #define FD_MAX_NSEC 36 /* highest known number of spt - allow for */ @@ -120,4 +122,4 @@ struct fd_type { /* for some controllers 1MPBS instead */ #endif /* FDC_500KBPS */ -#endif /* !def _IOCTL_FD_H */ +#endif /* !_MACHINE_IOCTL_FD_H_ */ diff --git a/sys/sys/ftape.h b/sys/sys/ftape.h index eaad609..71bb73c 100644 --- a/sys/sys/ftape.h +++ b/sys/sys/ftape.h @@ -25,12 +25,10 @@ * ioctl functions added. */ -#ifndef _FTAPE_H_ -#define _FTAPE_H_ +#ifndef _SYS_FTAPE_H_ +#define _SYS_FTAPE_H_ -#ifndef _IOCTL_H_ -#include <sys/ioctl.h> -#endif +#include <sys/ioccom.h> /* Miscellaneous constant values */ #define QCV_BLKSIZE 1024 /* Size of a block */ @@ -219,4 +217,4 @@ typedef struct qic_fileset { UCHAR fs_dsize[4]; /* Data size */ } QIC_FileSet; -#endif /* _FTAPE_H_ */ +#endif /* !_SYS_FTAPE_H_ */ diff --git a/sys/sys/ioctl_meteor.h b/sys/sys/ioctl_meteor.h index f432550..919100f 100644 --- a/sys/sys/ioctl_meteor.h +++ b/sys/sys/ioctl_meteor.h @@ -32,10 +32,13 @@ * ioctl constants for Matrox Meteor Capture card. */ -#ifndef _MACHINE_IOCTL_METEOR_H -#define _MACHINE_IOCTL_METEOR_H +#ifndef _MACHINE_IOCTL_METEOR_H_ +#define _MACHINE_IOCTL_METEOR_H_ -#include <sys/ioctl.h> +#ifndef KERNEL +#include <sys/types.h> +#endif +#include <sys/ioccom.h> struct meteor_capframe { short command; /* see below for valid METEORCAPFRM commands */ @@ -179,4 +182,4 @@ struct meteor_mem { caddr_t buf; /* The real space (virtual addr) */ } ; -#endif /* ifndef _MACHINE_IOCTL_METEOR_H */ +#endif /* !_MACHINE_IOCTL_METEOR_H_ */ diff --git a/sys/sys/joystick.h b/sys/sys/joystick.h index d070ac0..051d991e 100644 --- a/sys/sys/joystick.h +++ b/sys/sys/joystick.h @@ -1,8 +1,7 @@ -#ifndef _JOY_IOCTL_H_ -#define _JOY_IOCTL_H_ +#ifndef _MACHINE_JOYSTICK_H_ +#define _MACHINE_JOYSTICK_H_ -#include <sys/types.h> -#include <sys/ioctl.h> +#include <sys/ioccom.h> struct joystick { int x; @@ -18,4 +17,4 @@ struct joystick { #define JOY_GET_X_OFFSET _IOR('J', 5, int) /* get offset on X-axis */ #define JOY_GET_Y_OFFSET _IOR('J', 6, int) /* get offset on Y-axis */ -#endif /* _JOY_IOCTL_H_ */ +#endif /* !_MACHINE_JOYSTICK_H_ */ diff --git a/sys/sys/mtio.h b/sys/sys/mtio.h index 78ea814..d01f28b 100644 --- a/sys/sys/mtio.h +++ b/sys/sys/mtio.h @@ -31,11 +31,16 @@ * SUCH DAMAGE. * * @(#)mtio.h 8.1 (Berkeley) 6/2/93 - * $Id: mtio.h,v 1.6 1996/01/08 12:26:15 joerg Exp $ + * $Id: mtio.h,v 1.7 1996/01/30 23:00:58 mpp Exp $ */ -#ifndef _SYS_MTIO_H_ -#define _SYS_MTIO_H_ 1 +#ifndef _SYS_MTIO_H_ +#define _SYS_MTIO_H_ + +#ifndef KERNEL +#include <sys/types.h> +#endif +#include <sys/ioccom.h> /* * Structures and definitions for mag tape io control commands @@ -160,4 +165,5 @@ struct mtget { #define T_6250BPI 020 /* select 6250 bpi */ #define T_BADBPI 030 /* undefined selection */ #endif -#endif /* _SYS_MTIO_H_ */ + +#endif /* !_SYS_MTIO_H_ */ diff --git a/sys/sys/random.h b/sys/sys/random.h index 266cc91..c328d1b 100644 --- a/sys/sys/random.h +++ b/sys/sys/random.h @@ -1,7 +1,7 @@ /* * random.h -- A strong random number generator * - * $Id: random.h,v 1.6 1996/06/17 16:47:39 bde Exp $ + * $Id: random.h,v 1.7 1996/09/03 10:22:30 asami Exp $ * * Version 0.95, last modified 18-Oct-95 * @@ -47,7 +47,7 @@ * */ -#ifndef _MACHINE_RANDOM_H_ +#ifndef _MACHINE_RANDOM_H_ #define _MACHINE_RANDOM_H_ #include <sys/ioccom.h> diff --git a/sys/sys/scsiio.h b/sys/sys/scsiio.h index cc6291e..87c5d63 100644 --- a/sys/sys/scsiio.h +++ b/sys/sys/scsiio.h @@ -1,12 +1,13 @@ /* - * $Id: scsiio.h,v 1.4 1995/04/28 19:26:02 dufault Exp $ + * $Id: scsiio.h,v 1.5 1996/01/30 23:01:14 mpp Exp $ */ -#ifndef _SYS_SCSIIO_H_ -#define _SYS_SCSIIO_H_ - +#ifndef _SYS_SCSIIO_H_ +#define _SYS_SCSIIO_H_ +#ifndef KERNEL #include <sys/types.h> -#include <sys/ioctl.h> +#endif +#include <sys/ioccom.h> #define SENSEBUFLEN 48 @@ -66,4 +67,4 @@ struct scsi_addr { #define SCIOCFREEZETHAW _IOW('Q', 11, int) /* Freeze SCSI for some seconds */ #define SCIOCWAITTHAW _IO('Q', 12) /* Wait for SCSI to thaw */ -#endif /* _SYS_SCSIIO_H_ */ +#endif /* !_SYS_SCSIIO_H_ */ diff --git a/sys/sys/soundcard.h b/sys/sys/soundcard.h index 3dcdaa1..666a4b8 100644 --- a/sys/sys/soundcard.h +++ b/sys/sys/soundcard.h @@ -1,5 +1,3 @@ -#ifndef SOUNDCARD_H -#define SOUNDCARD_H /* * Copyright by Hannu Savolainen 1993 * @@ -37,10 +35,13 @@ * hannu@voxware.pp.fi */ +#ifndef _MACHINE_SOUNDCARD_H_ +#define _MACHINE_SOUNDCARD_H_ + #define SOUND_VERSION 301 #define VOXWARE -#include <sys/ioctl.h> +#include <sys/ioccom.h> /* * Supported card ID numbers (Should be somewhere else?) @@ -1044,5 +1045,6 @@ void seqbuf_dump(void); /* This function must be provided by programs */ perror("Write patch: /dev/sequencer");} #define SEQ_WRPATCH2(patchx, len) (seqbuf_dump(), write(seqfd, (char*)(patchx), len)) -#endif -#endif +#endif /* !KERNEL_SPAM */ + +#endif /* !_MACHINE_SOUNDCARD_H_ */ diff --git a/sys/sys/tablet.h b/sys/sys/tablet.h index d6d9758..437287e 100644 --- a/sys/sys/tablet.h +++ b/sys/sys/tablet.h @@ -31,16 +31,20 @@ * SUCH DAMAGE. * * @(#)tablet.h 8.4 (Berkeley) 7/10/94 - * $Id: tablet.h,v 1.3 1996/03/11 02:15:32 hsu Exp $ + * $Id: tablet.h,v 1.4 1996/05/01 01:46:00 bde Exp $ */ -#ifndef _SYS_TABLET_H_ +#ifndef _SYS_TABLET_H_ #define _SYS_TABLET_H_ /* * Tablet line discipline. */ -#include <sys/ioctl.h> + +#ifndef KERNEL +#include <sys/types.h> +#endif +#include <sys/ioccom.h> /* * Reads on the tablet return one of the following structures, depending on diff --git a/sys/sys/vcmd.h b/sys/sys/vcmd.h index 4d59e36..ff61b74 100644 --- a/sys/sys/vcmd.h +++ b/sys/sys/vcmd.h @@ -31,13 +31,13 @@ * SUCH DAMAGE. * * @(#)vcmd.h 8.1 (Berkeley) 6/2/93 - * $Id: vcmd.h,v 1.2 1994/08/02 07:54:09 davidg Exp $ + * $Id: vcmd.h,v 1.3 1994/08/21 04:42:12 paul Exp $ */ -#ifndef _SYS_VCMD_H_ -#define _SYS_VCMD_H_ +#ifndef _SYS_VCMD_H_ +#define _SYS_VCMD_H_ -#include <sys/ioctl.h> +#include <sys/ioccom.h> #define VPRINT 0100 #define VPLOT 0200 @@ -46,4 +46,4 @@ #define VGETSTATE _IOR('v', 0, int) #define VSETSTATE _IOW('v', 1, int) -#endif +#endif /* !_SYS_VCMD_H_ */ diff --git a/sys/sys/wormio.h b/sys/sys/wormio.h index 38af90a..26477b2 100644 --- a/sys/sys/wormio.h +++ b/sys/sys/wormio.h @@ -1,6 +1,9 @@ /* Shared between kernel & process */ -#ifndef _SYS_WORMIO_H_ -#define _SYS_WORMIO_H_ + +#ifndef _SYS_WORMIO_H_ +#define _SYS_WORMIO_H_ + +#include <sys/ioccom.h> /***************************************************************\ * Ioctls for the WORM drive * @@ -57,6 +60,4 @@ struct wormio_fixation #define WORMIOCFIXATION _IOW('W', 22, struct wormio_fixation) - -#endif /* _SYS_WORMIO_H_ */ - +#endif /* !_SYS_WORMIO_H_ */ |