Deleted Added
full compact
_types.h (128936) _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/arm/include/_types.h 128936 2004-05-04 22:16:29Z cognet $
36 * $FreeBSD: head/sys/arm/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
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
52#if defined(__GNUC__)
56#ifdef __GNUCLIKE_ATTRIBUTE_MODE_DI
53typedef int __attribute__((__mode__(__DI__))) __int64_t;
54typedef unsigned int __attribute__((__mode__(__DI__))) __uint64_t;
55#else
56/* LONGLONG */
57typedef long long __int64_t;
58/* LONGLONG */
59typedef unsigned long long __uint64_t;
60#endif

--- 39 unchanged lines hidden (view full) ---

100typedef __int64_t __vm_ooffset_t;
101typedef __uint32_t __vm_paddr_t;
102typedef __uint64_t __vm_pindex_t;
103typedef __uint32_t __vm_size_t;
104
105/*
106 * Unusual type definitions.
107 */
57typedef int __attribute__((__mode__(__DI__))) __int64_t;
58typedef unsigned int __attribute__((__mode__(__DI__))) __uint64_t;
59#else
60/* LONGLONG */
61typedef long long __int64_t;
62/* LONGLONG */
63typedef unsigned long long __uint64_t;
64#endif

--- 39 unchanged lines hidden (view full) ---

104typedef __int64_t __vm_ooffset_t;
105typedef __uint32_t __vm_paddr_t;
106typedef __uint64_t __vm_pindex_t;
107typedef __uint32_t __vm_size_t;
108
109/*
110 * Unusual type definitions.
111 */
108#if defined(__GNUC__) && (__GNUC__ == 2 && __GNUC_MINOR__ > 95 || __GNUC__ >= 3)
112#ifdef __GNUCLIKE_BUILTIN_VARARGS
109typedef __builtin_va_list __va_list; /* internally known to gcc */
110#else
111typedef char * __va_list;
113typedef __builtin_va_list __va_list; /* internally known to gcc */
114#else
115typedef char * __va_list;
112#endif /* post GCC 2.95 */
113#if defined __GNUC__ && !defined(__GNUC_VA_LIST) && !defined(__NO_GNUC_VA_LIST)
116#endif /* __GNUCLIKE_BUILTIN_VARARGS */
117#if defined(__GNUCLIKE_BUILTIN_VAALIST) && !defined(__GNUC_VA_LIST) \
118 && !defined(__NO_GNUC_VA_LIST)
114#define __GNUC_VA_LIST
115typedef __va_list __gnuc_va_list; /* compatibility w/GNU headers*/
116#endif
117
118#endif /* !_MACHINE__TYPES_H_ */
119#define __GNUC_VA_LIST
120typedef __va_list __gnuc_va_list; /* compatibility w/GNU headers*/
121#endif
122
123#endif /* !_MACHINE__TYPES_H_ */