From 7be755bea2f33b0515bc39b675b2cf94dc8b4670 Mon Sep 17 00:00:00 2001 From: Bruce Evans Date: Tue, 24 Feb 1998 02:11:39 +0000 Subject: [PATCH] MF22: removed duplicate #include of and fixed comments about the main #include of it. Fixed disordering of _BSD_CLOCKID_T. Removed forward declarations of "common" structs. The declarations are now made closer to where they are used. --- sys/sys/types.h | 33 +++++++++------------------------ 1 file changed, 9 insertions(+), 24 deletions(-) diff --git a/sys/sys/types.h b/sys/sys/types.h index 68dfcaf75cb4..12f128a33ab3 100644 --- a/sys/sys/types.h +++ b/sys/sys/types.h @@ -36,14 +36,15 @@ * SUCH DAMAGE. * * @(#)types.h 8.6 (Berkeley) 2/19/95 - * $Id: types.h,v 1.22 1997/12/31 01:22:01 alex Exp $ + * $Id: types.h,v 1.23 1998/01/08 00:27:34 alex Exp $ */ #ifndef _SYS_TYPES_H_ #define _SYS_TYPES_H_ +#include + /* Machine type dependent parameters. */ -#include /* XXX for __signed in machine/ansi.h */ #include #include @@ -99,6 +100,11 @@ typedef _BSD_CLOCK_T_ clock_t; #undef _BSD_CLOCK_T_ #endif +#ifdef _BSD_CLOCKID_T_ +typedef _BSD_CLOCKID_T_ clockid_t; +#undef _BSD_CLOCKID_T_ +#endif + #ifdef _BSD_SIZE_T_ typedef _BSD_SIZE_T_ size_t; #undef _BSD_SIZE_T_ @@ -114,11 +120,6 @@ typedef _BSD_TIME_T_ time_t; #undef _BSD_TIME_T_ #endif -#ifdef _BSD_CLOCKID_T_ -typedef _BSD_CLOCKID_T_ clockid_t; -#undef _BSD_CLOCKID_T_ -#endif - #ifdef _BSD_TIMER_T_ typedef _BSD_TIMER_T_ timer_t; #undef _BSD_TIMER_T_ @@ -175,7 +176,6 @@ typedef struct fd_set { * 64-bit off_t's. */ #ifndef KERNEL -#include __BEGIN_DECLS #ifndef _FTRUNCATE_DECLARED #define _FTRUNCATE_DECLARED @@ -196,21 +196,6 @@ int truncate __P((const char *, off_t)); __END_DECLS #endif /* !KERNEL */ -#if defined(__STDC__) && defined(KERNEL) -/* - * Forward structure declarations for function prototypes. We include the - * common structures that cross subsystem boundaries here; others are mostly - * used in the same place that the structure is defined. - */ -struct proc; -struct pgrp; -struct ucred; -struct rusage; -struct file; -struct buf; -struct tty; -struct uio; -#endif - #endif /* !_POSIX_SOURCE */ + #endif /* !_SYS_TYPES_H_ */