_types.h (237517) | _types.h (250883) |
---|---|
1/*- 2 * Copyright (c) 2002 Mike Barcroft <mike@FreeBSD.org> 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 9 unchanged lines hidden (view full) --- 18 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 19 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 24 * SUCH DAMAGE. 25 * | 1/*- 2 * Copyright (c) 2002 Mike Barcroft <mike@FreeBSD.org> 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 9 unchanged lines hidden (view full) --- 18 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 19 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 24 * SUCH DAMAGE. 25 * |
26 * $FreeBSD: head/sys/sys/_types.h 237517 2012-06-24 04:15:58Z andrew $ | 26 * $FreeBSD: head/sys/sys/_types.h 250883 2013-05-21 19:59:37Z ed $ |
27 */ 28 29#ifndef _SYS__TYPES_H_ 30#define _SYS__TYPES_H_ 31 32#include <sys/cdefs.h> 33#include <machine/_types.h> 34 --- 49 unchanged lines hidden (view full) --- 84 * rune_t must be the same type. Also, wint_t should be able to hold all 85 * members of the largest character set plus one extra value (WEOF), and 86 * must be at least 16 bits. 87 */ 88typedef int __ct_rune_t; /* arg type for ctype funcs */ 89typedef __ct_rune_t __rune_t; /* rune_t (see above) */ 90typedef __ct_rune_t __wint_t; /* wint_t (see above) */ 91 | 27 */ 28 29#ifndef _SYS__TYPES_H_ 30#define _SYS__TYPES_H_ 31 32#include <sys/cdefs.h> 33#include <machine/_types.h> 34 --- 49 unchanged lines hidden (view full) --- 84 * rune_t must be the same type. Also, wint_t should be able to hold all 85 * members of the largest character set plus one extra value (WEOF), and 86 * must be at least 16 bits. 87 */ 88typedef int __ct_rune_t; /* arg type for ctype funcs */ 89typedef __ct_rune_t __rune_t; /* rune_t (see above) */ 90typedef __ct_rune_t __wint_t; /* wint_t (see above) */ 91 |
92/* Clang already provides these types as built-ins, but only in C++ mode. */ 93#if !defined(__clang__) || !defined(__cplusplus) 94typedef __uint_least16_t __char16_t; 95typedef __uint_least32_t __char32_t; 96#endif 97 |
|
92typedef __uint32_t __dev_t; /* device number */ 93 94typedef __uint32_t __fixpt_t; /* fixed point number */ 95 96/* 97 * mbstate_t is an opaque object to keep conversion state during multibyte 98 * stream conversions. 99 */ 100typedef union { 101 char __mbstate8[128]; 102 __int64_t _mbstateL; /* for alignment */ 103} __mbstate_t; 104 105#endif /* !_SYS__TYPES_H_ */ | 98typedef __uint32_t __dev_t; /* device number */ 99 100typedef __uint32_t __fixpt_t; /* fixed point number */ 101 102/* 103 * mbstate_t is an opaque object to keep conversion state during multibyte 104 * stream conversions. 105 */ 106typedef union { 107 char __mbstate8[128]; 108 __int64_t _mbstateL; /* for alignment */ 109} __mbstate_t; 110 111#endif /* !_SYS__TYPES_H_ */ |