diff options
author | rgrimes <rgrimes@FreeBSD.org> | 1994-05-25 09:21:21 +0000 |
---|---|---|
committer | rgrimes <rgrimes@FreeBSD.org> | 1994-05-25 09:21:21 +0000 |
commit | 2469c867a164210ce96143517059f21db7f1fd17 (patch) | |
tree | 9179427ac860211c445df663fd2b86267366bfba /sys/i386/include/types.h | |
parent | cb0aba89af15a48e2655e898a503946ac4cb42ae (diff) | |
download | FreeBSD-src-2469c867a164210ce96143517059f21db7f1fd17.zip FreeBSD-src-2469c867a164210ce96143517059f21db7f1fd17.tar.gz |
The big 4.4BSD Lite to FreeBSD 2.0.0 (Development) patch.
Reviewed by: Rodney W. Grimes
Submitted by: John Dyson and David Greenman
Diffstat (limited to 'sys/i386/include/types.h')
-rw-r--r-- | sys/i386/include/types.h | 26 |
1 files changed, 20 insertions, 6 deletions
diff --git a/sys/i386/include/types.h b/sys/i386/include/types.h index 118290c..dcbb29c 100644 --- a/sys/i386/include/types.h +++ b/sys/i386/include/types.h @@ -1,6 +1,6 @@ /*- - * Copyright (c) 1990 The Regents of the University of California. - * All rights reserved. + * Copyright (c) 1990, 1993 + * The Regents of the University of California. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions @@ -30,13 +30,13 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * from: @(#)types.h 7.5 (Berkeley) 3/9/91 - * $Id$ + * @(#)types.h 8.3 (Berkeley) 1/5/94 */ #ifndef _MACHTYPES_H_ #define _MACHTYPES_H_ +#if !defined(_ANSI_SOURCE) && !defined(_POSIX_SOURCE) typedef struct _physadr { int r[1]; } *physadr; @@ -44,8 +44,22 @@ typedef struct _physadr { typedef struct label_t { int val[6]; } label_t; +#endif -typedef u_long vm_offset_t; -typedef u_long vm_size_t; +typedef unsigned long vm_offset_t; +typedef unsigned long vm_size_t; + +/* + * Basic integral types. Omit the typedef if + * not possible for a machine/compiler combination. + */ +typedef __signed char int8_t; +typedef unsigned char u_int8_t; +typedef short int16_t; +typedef unsigned short u_int16_t; +typedef int int32_t; +typedef unsigned int u_int32_t; +typedef long long int64_t; +typedef unsigned long long u_int64_t; #endif /* _MACHTYPES_H_ */ |