1 /* 2 * This file is in the public domain. 3 * $FreeBSD: src/sys/sys/inttypes.h,v 1.2 1999/08/28 00:51:47 peter Exp $ 4 * $DragonFly: src/sys/sys/stdint.h,v 1.2 2003/11/19 00:42:30 dillon Exp $ 5 * 6 * Note: since portions of these header files can be included with various 7 * other combinations of defines, we cannot surround the whole header file 8 * with an #ifndef sequence. Elements are individually protected. 9 */ 10 11 #include <sys/cdefs.h> 12 #include <machine/stdint.h> 13 14 #ifndef _SYS_STDINT_H_ 15 #define _SYS_STDINT_H_ 16 17 typedef int __ct_rune_t; 18 typedef __ct_rune_t __rune_t; 19 #ifndef __cplusplus 20 typedef __ct_rune_t __wchar_t; 21 #endif 22 typedef __ct_rune_t __wint_t; 23 typedef __int64_t __off_t; 24 typedef __int32_t __pid_t; 25 26 #endif /* SYS_STDINT_H */ 27 28 #if !defined(__cplusplus) || defined(__STDC_LIMIT_MACROS) 29 #ifndef _SYS_STDINT_H_STDC_LIMIT_MACROS_ 30 #define _SYS_STDINT_H_STDC_LIMIT_MACROS_ 31 32 #ifndef WCHAR_MIN /* Also possibly defined in <wchar.h> */ 33 /* Limits of wchar_t. */ 34 #define WCHAR_MIN INT32_MIN 35 #define WCHAR_MAX INT32_MAX 36 37 /* Limits of wint_t. */ 38 #define WINT_MIN INT32_MIN 39 #define WINT_MAX INT32_MAX 40 #endif 41 42 #endif /* STDINT_H_STDC_LIMIT_MACROS */ 43 #endif /* STDC_LIMIT_MACROS */ 44