diff options
| author | cgd <cgd@NetBSD.org> | 1994-03-14 02:12:06 +0000 |
|---|---|---|
| committer | cgd <cgd@NetBSD.org> | 1994-03-14 02:12:06 +0000 |
| commit | d64461d7d3e116a0b4407dcbb02614b2e3543e57 (patch) | |
| tree | f3829d9a46c22314631983d0fb6fff5a16d7ec0e /sys/arch/mips/include | |
| parent | f5a57afb87007f6d7794986bb7d6ec223921ebc1 (diff) | |
add basic integral types (a la sparc port) that new nvi wants.
mark old 'basic integral types' as XXX -- they should be squished
when whoever gets this port working.
Diffstat (limited to 'sys/arch/mips/include')
| -rw-r--r-- | sys/arch/mips/include/types.h | 17 |
1 files changed, 15 insertions, 2 deletions
diff --git a/sys/arch/mips/include/types.h b/sys/arch/mips/include/types.h index 62aed087b62..614acdfb911 100644 --- a/sys/arch/mips/include/types.h +++ b/sys/arch/mips/include/types.h @@ -34,7 +34,7 @@ * SUCH DAMAGE. * * from:@(#)types.h 7.2 (Berkeley) 7/14/92 - * $Id: types.h,v 1.1.1.1 1993/10/12 03:22:42 deraadt Exp $ + * $Id: types.h,v 1.2 1994/03/14 02:12:06 cgd Exp $ */ #ifndef _MACHTYPES_H_ @@ -51,7 +51,7 @@ typedef struct label_t { typedef u_long vm_offset_t; typedef u_long vm_size_t; -#ifdef __GNUC__ +#ifdef __GNUC__ /* XXX SHOULD GO AWAY */ typedef char s1byte_t; /* Basic data types. */ typedef unsigned char u1byte_t; typedef short s2byte_t; @@ -64,4 +64,17 @@ typedef float f4byte_t; typedef double f8byte_t; #endif +/* + * 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_ */ |
