1 /* 2 * Copyright (c) 1997-2000 by Sun Microsystems, Inc. 3 * All rights reserved. 4 */ 5 6 /* 7 * Copyright (c) 1996-1999 by Internet Software Consortium. 8 * 9 * Permission to use, copy, modify, and distribute this software for any 10 * purpose with or without fee is hereby granted, provided that the above 11 * copyright notice and this permission notice appear in all copies. 12 * 13 * THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM DISCLAIMS 14 * ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES 15 * OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL INTERNET SOFTWARE 16 * CONSORTIUM BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL 17 * DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR 18 * PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS 19 * ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS 20 * SOFTWARE. 21 */ 22 23 #pragma ident "%Z%%M% %I% %E% SMI" 24 25 #ifndef __BIT_TYPES_DEFINED__ 26 #define __BIT_TYPES_DEFINED__ 27 28 /* 29 * Basic integral types. Omit the typedef if 30 * not possible for a machine/compiler combination. 31 */ 32 #ifndef _SYS_INT_TYPES_H 33 typedef /*signed*/ char int8_t; 34 typedef short int16_t; 35 typedef int int32_t; 36 #endif /* _SYS_INT_TYPES_H */ 37 typedef unsigned char u_int8_t; 38 typedef unsigned short u_int16_t; 39 typedef unsigned int u_int32_t; 40 41 # if 0 /* don't fight with these unless you need them */ 42 typedef long long int64_t; 43 typedef unsigned long long u_int64_t; 44 # endif 45 46 #endif /* __BIT_TYPES_DEFINED__ */ 47