diff options
author | mike <mike@FreeBSD.org> | 2003-01-29 19:36:08 +0000 |
---|---|---|
committer | mike <mike@FreeBSD.org> | 2003-01-29 19:36:08 +0000 |
commit | 59366093887c704ab78839b6cb1b411ee39f4a06 (patch) | |
tree | 5d9f976f0558dc8b92f2f4e0c1fba30fad8682c8 /sys | |
parent | 15d50f061e050b6315ee59f48683bd4de5ddcdd3 (diff) | |
download | FreeBSD-src-59366093887c704ab78839b6cb1b411ee39f4a06.zip FreeBSD-src-59366093887c704ab78839b6cb1b411ee39f4a06.tar.gz |
Style: keep most typedefs in the same place.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/sys/types.h | 84 |
1 files changed, 43 insertions, 41 deletions
diff --git a/sys/sys/types.h b/sys/sys/types.h index 14daf6a..1f2369a 100644 --- a/sys/sys/types.h +++ b/sys/sys/types.h @@ -118,10 +118,33 @@ typedef quad_t * qaddr_t; typedef char * caddr_t; /* core address */ typedef __const char * c_caddr_t; /* core address, pointer to const */ typedef __volatile char *v_caddr_t; /* core address, pointer to volatile */ + +#ifndef _CLOCK_T_DECLARED +typedef __clock_t clock_t; +#define _CLOCK_T_DECLARED +#endif + +#ifndef _CLOCKID_T_DECLARED +typedef __clockid_t clockid_t; +#define _CLOCKID_T_DECLARED +#endif + typedef __critical_t critical_t; /* Critical section value */ typedef __int64_t daddr_t; /* disk address */ + +#ifndef _FFLAGS_T_DECLARED +typedef __fflags_t fflags_t; /* file flags */ +#define _FFLAGS_T_DECLARED +#endif + typedef __uint32_t fixpt_t; /* fixed point number */ +#ifndef _FSBLKCNT_T_DECLARED /* for statvfs() */ +typedef __fsblkcnt_t fsblkcnt_t; +typedef __fsfilcnt_t fsfilcnt_t; +#define _FSBLKCNT_T_DECLARED +#endif + #ifndef _GID_T_DECLARED typedef __gid_t gid_t; /* group id */ #define _GID_T_DECLARED @@ -175,11 +198,31 @@ typedef __rlim_t rlim_t; /* resource limit */ typedef __segsz_t segsz_t; /* segment size (in pages) */ +#ifndef _SIZE_T_DECLARED +typedef __size_t size_t; +#define _SIZE_T_DECLARED +#endif + +#ifndef _SSIZE_T_DECLARED +typedef __ssize_t ssize_t; +#define _SSIZE_T_DECLARED +#endif + #ifndef _SUSECONDS_T_DECLARED typedef __suseconds_t suseconds_t; /* microseconds (signed) */ #define _SUSECONDS_T_DECLARED #endif +#ifndef _TIME_T_DECLARED +typedef __time_t time_t; +#define _TIME_T_DECLARED +#endif + +#ifndef _TIMER_T_DECLARED +typedef __timer_t timer_t; +#define _TIMER_T_DECLARED +#endif + typedef __u_register_t u_register_t; #ifndef _UID_T_DECLARED @@ -229,47 +272,6 @@ typedef __uint32_t dev_t; /* device number */ #endif /* !_KERNEL */ -#ifndef _CLOCK_T_DECLARED -typedef __clock_t clock_t; -#define _CLOCK_T_DECLARED -#endif - -#ifndef _CLOCKID_T_DECLARED -typedef __clockid_t clockid_t; -#define _CLOCKID_T_DECLARED -#endif - -#ifndef _FFLAGS_T_DECLARED -typedef __fflags_t fflags_t; /* file flags */ -#define _FFLAGS_T_DECLARED -#endif - -#ifndef _FSBLKCNT_T_DECLARED /* for statvfs() */ -typedef __fsblkcnt_t fsblkcnt_t; -typedef __fsfilcnt_t fsfilcnt_t; -#define _FSBLKCNT_T_DECLARED -#endif - -#ifndef _SIZE_T_DECLARED -typedef __size_t size_t; -#define _SIZE_T_DECLARED -#endif - -#ifndef _SSIZE_T_DECLARED -typedef __ssize_t ssize_t; -#define _SSIZE_T_DECLARED -#endif - -#ifndef _TIME_T_DECLARED -typedef __time_t time_t; -#define _TIME_T_DECLARED -#endif - -#ifndef _TIMER_T_DECLARED -typedef __timer_t timer_t; -#define _TIMER_T_DECLARED -#endif - /* * The following are all things that really shouldn't exist in this header, * since its purpose is to provide typedefs, not miscellaneous doodads. |