diff options
author | dt <dt@FreeBSD.org> | 1998-12-19 00:02:34 +0000 |
---|---|---|
committer | dt <dt@FreeBSD.org> | 1998-12-19 00:02:34 +0000 |
commit | 5d9cc4426efefebd7e1d69e6bceb2e4f9375dc33 (patch) | |
tree | 4b0508f8f82e978bf36d246d2a18a3e70cbb7ee8 /sys/i386/include/ansi.h | |
parent | e5dfa4c78df5a8e86d2f8309e33fcb8bf68278b4 (diff) | |
download | FreeBSD-src-5d9cc4426efefebd7e1d69e6bceb2e4f9375dc33.zip FreeBSD-src-5d9cc4426efefebd7e1d69e6bceb2e4f9375dc33.tar.gz |
Little reorganization:
- created internal names for fixed-size integral types, like __int32_t. They
will be used to make several headers self-sufficient.
- <stdlib.h> don't include <machine/types.h> anymore.
- created <sys/inttypes.h>, which can be used as <inttypes.h>.
- declaration of uoff_t and ufs_daddr_t moved to <sys/types.h>.
Reviewed by: bde
Diffstat (limited to 'sys/i386/include/ansi.h')
-rw-r--r-- | sys/i386/include/ansi.h | 18 |
1 files changed, 14 insertions, 4 deletions
diff --git a/sys/i386/include/ansi.h b/sys/i386/include/ansi.h index 52dad0b..9d7494e 100644 --- a/sys/i386/include/ansi.h +++ b/sys/i386/include/ansi.h @@ -31,7 +31,7 @@ * SUCH DAMAGE. * * @(#)ansi.h 8.2 (Berkeley) 1/4/94 - * $Id: ansi.h,v 1.14 1998/01/08 00:27:30 alex Exp $ + * $Id: ansi.h,v 1.15 1998/06/14 14:00:47 bde Exp $ */ #ifndef _MACHINE_ANSI_H_ @@ -54,9 +54,6 @@ #define _BSD_SSIZE_T_ int /* byte count or error */ #define _BSD_TIME_T_ long /* time()... */ #define _BSD_TIMER_T_ int /* timer_gettime()... */ -#define _BSD_UINT8_T_ unsigned char /* unsigned exactly 8 bits */ -#define _BSD_UINT16_T_ unsigned short /* unsigned exactly 16 bits */ -#define _BSD_UINT32_T_ unsigned int /* unsigned exactly 32 bits */ #define _BSD_WCHAR_T_ _BSD_CT_RUNE_T_ /* wchar_t (see below) */ /* @@ -109,5 +106,18 @@ typedef unsigned int __attribute__((__mode__(__DI__))) __uint64_t; typedef long long __int64_t; typedef unsigned long long __uint64_t; #endif +/* + * Internal names for basic integral types. Omit the typedef if + * not possible for a machine/compiler combination. + */ +typedef __signed char __int8_t; +typedef unsigned char __uint8_t; +typedef short __int16_t; +typedef unsigned short __uint16_t; +typedef int __int32_t; +typedef unsigned int __uint32_t; + +typedef int __intptr_t; +typedef unsigned int __uintptr_t; #endif /* !_MACHINE_ANSI_H_ */ |