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 /sys/i386/include/ioctl_fd.h | |
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.
Diffstat (limited to 'sys/i386/include/ioctl_fd.h')
-rw-r--r-- | sys/i386/include/ioctl_fd.h | 12 |
1 files changed, 7 insertions, 5 deletions
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_ */ |