_types.h (127239) | _types.h (143063) |
---|---|
1/*- 2 * Copyright (c) 2002 Mike Barcroft <mike@FreeBSD.org> 3 * Copyright (c) 1990, 1993 4 * The Regents of the University of California. All rights reserved. 5 * 6 * Redistribution and use in source and binary forms, with or without 7 * modification, are permitted provided that the following conditions 8 * are met: --- 19 unchanged lines hidden (view full) --- 28 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 29 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 30 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 31 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 32 * SUCH DAMAGE. 33 * 34 * From: @(#)ansi.h 8.2 (Berkeley) 1/4/94 35 * From: @(#)types.h 8.3 (Berkeley) 1/5/94 | 1/*- 2 * Copyright (c) 2002 Mike Barcroft <mike@FreeBSD.org> 3 * Copyright (c) 1990, 1993 4 * The Regents of the University of California. All rights reserved. 5 * 6 * Redistribution and use in source and binary forms, with or without 7 * modification, are permitted provided that the following conditions 8 * are met: --- 19 unchanged lines hidden (view full) --- 28 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 29 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 30 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 31 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 32 * SUCH DAMAGE. 33 * 34 * From: @(#)ansi.h 8.2 (Berkeley) 1/4/94 35 * From: @(#)types.h 8.3 (Berkeley) 1/5/94 |
36 * $FreeBSD: head/sys/powerpc/include/_types.h 127239 2004-03-20 20:41:40Z marcel $ | 36 * $FreeBSD: head/sys/powerpc/include/_types.h 143063 2005-03-02 21:33:29Z joerg $ |
37 */ 38 39#ifndef _MACHINE__TYPES_H_ 40#define _MACHINE__TYPES_H_ 41 | 37 */ 38 39#ifndef _MACHINE__TYPES_H_ 40#define _MACHINE__TYPES_H_ 41 |
42#ifndef _SYS_CDEFS_H_ 43#error this file needs sys/cdefs.h as a prerequisite 44#endif 45 |
|
42/* 43 * Basic types upon which most other types are built. 44 */ 45typedef __signed char __int8_t; 46typedef unsigned char __uint8_t; 47typedef short __int16_t; 48typedef unsigned short __uint16_t; 49typedef int __int32_t; 50typedef unsigned int __uint32_t; 51 52#if defined(lint) 53/* LONGLONG */ 54typedef long long __int64_t; 55/* LONGLONG */ 56typedef unsigned long long __uint64_t; | 46/* 47 * Basic types upon which most other types are built. 48 */ 49typedef __signed char __int8_t; 50typedef unsigned char __uint8_t; 51typedef short __int16_t; 52typedef unsigned short __uint16_t; 53typedef int __int32_t; 54typedef unsigned int __uint32_t; 55 56#if defined(lint) 57/* LONGLONG */ 58typedef long long __int64_t; 59/* LONGLONG */ 60typedef unsigned long long __uint64_t; |
57#elif defined(__GNUC__) | 61#elif defined(__GNUCLIKE_ATTRIBUTE_MODE_DI) |
58typedef int __attribute__((__mode__(__DI__))) __int64_t; 59typedef unsigned int __attribute__((__mode__(__DI__))) __uint64_t; 60#else 61/* LONGLONG */ 62typedef long long __int64_t; 63/* LONGLONG */ 64typedef unsigned long long __uint64_t; 65#endif --- 39 unchanged lines hidden (view full) --- 105typedef __int64_t __vm_ooffset_t; 106typedef __uint32_t __vm_paddr_t; 107typedef __uint64_t __vm_pindex_t; 108typedef __uint32_t __vm_size_t; 109 110/* 111 * Unusual type definitions. 112 */ | 62typedef int __attribute__((__mode__(__DI__))) __int64_t; 63typedef unsigned int __attribute__((__mode__(__DI__))) __uint64_t; 64#else 65/* LONGLONG */ 66typedef long long __int64_t; 67/* LONGLONG */ 68typedef unsigned long long __uint64_t; 69#endif --- 39 unchanged lines hidden (view full) --- 109typedef __int64_t __vm_ooffset_t; 110typedef __uint32_t __vm_paddr_t; 111typedef __uint64_t __vm_pindex_t; 112typedef __uint32_t __vm_size_t; 113 114/* 115 * Unusual type definitions. 116 */ |
113#if defined(__GNUC__) && (__GNUC__ == 2 && __GNUC_MINOR__ > 95 || __GNUC__ >= 3) | 117#if defined(__GNUCLIKE_BUILTIN_VARARGS) |
114typedef __builtin_va_list __va_list; /* internally known to gcc */ 115#else 116typedef struct { 117 char __gpr; 118 char __fpr; 119 char __pad[2]; 120 char *__stack; 121 char *__base; 122} __va_list; 123#endif /* post GCC 2.95 */ | 118typedef __builtin_va_list __va_list; /* internally known to gcc */ 119#else 120typedef struct { 121 char __gpr; 122 char __fpr; 123 char __pad[2]; 124 char *__stack; 125 char *__base; 126} __va_list; 127#endif /* post GCC 2.95 */ |
124#if defined __GNUC__ && !defined(__GNUC_VA_LIST) && !defined(__NO_GNUC_VA_LIST) | 128#if defined(__GNUC_VA_LIST_COMPATIBILITY) && !defined(__GNUC_VA_LIST) \ 129 && !defined(__NO_GNUC_VA_LIST) |
125#define __GNUC_VA_LIST 126typedef __va_list __gnuc_va_list; /* compatibility w/GNU headers*/ 127#endif 128 129#endif /* !_MACHINE__TYPES_H_ */ | 130#define __GNUC_VA_LIST 131typedef __va_list __gnuc_va_list; /* compatibility w/GNU headers*/ 132#endif 133 134#endif /* !_MACHINE__TYPES_H_ */ |