_types.h revision 110566
1169689Skan/*-
2169689Skan * Copyright (c) 2002 Mike Barcroft <mike@FreeBSD.org>
3169689Skan * Copyright (c) 1990, 1993
4169689Skan *	The Regents of the University of California.  All rights reserved.
5169689Skan *
6169689Skan * Redistribution and use in source and binary forms, with or without
7169689Skan * modification, are permitted provided that the following conditions
8169689Skan * are met:
9169689Skan * 1. Redistributions of source code must retain the above copyright
10169689Skan *    notice, this list of conditions and the following disclaimer.
11169689Skan * 2. Redistributions in binary form must reproduce the above copyright
12169689Skan *    notice, this list of conditions and the following disclaimer in the
13169689Skan *    documentation and/or other materials provided with the distribution.
14169689Skan * 3. All advertising materials mentioning features or use of this software
15169689Skan *    must display the following acknowledgement:
16169689Skan *	This product includes software developed by the University of
17169689Skan *	California, Berkeley and its contributors.
18169689Skan * 4. Neither the name of the University nor the names of its contributors
19169689Skan *    may be used to endorse or promote products derived from this software
20169689Skan *    without specific prior written permission.
21169689Skan *
22169689Skan * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
23169689Skan * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
24169689Skan * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
25169689Skan * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
26169689Skan * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
27169689Skan * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
28169689Skan * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
29169689Skan * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
30169689Skan * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
31169689Skan * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
32169689Skan * SUCH DAMAGE.
33169689Skan *
34169689Skan *	From: @(#)ansi.h	8.2 (Berkeley) 1/4/94
35169689Skan *	From: @(#)types.h	8.3 (Berkeley) 1/5/94
36169689Skan * $FreeBSD: head/sys/sparc64/include/_types.h 110566 2003-02-08 20:37:55Z mike $
37169689Skan */
38169689Skan
39169689Skan#ifndef _MACHINE__TYPES_H_
40169689Skan#define	_MACHINE__TYPES_H_
41169689Skan
42169689Skan/*
43169689Skan * Basic types upon which most other types are built.
44169689Skan */
45169689Skantypedef	__signed char		__int8_t;
46169689Skantypedef	unsigned char		__uint8_t;
47169689Skantypedef	short			__int16_t;
48169689Skantypedef	unsigned short		__uint16_t;
49169689Skantypedef	int			__int32_t;
50169689Skantypedef	unsigned int		__uint32_t;
51169689Skantypedef	long			__int64_t;
52169689Skantypedef	unsigned long		__uint64_t;
53169689Skan
54169689Skan/*
55169689Skan * Standard type definitions.
56169689Skan */
57169689Skantypedef	__int32_t	__clock_t;		/* clock()... */
58169689Skantypedef	__int64_t	__critical_t;
59169689Skantypedef	double		__double_t;
60169689Skantypedef	float		__float_t;
61169689Skantypedef	__int64_t	__intfptr_t;
62169689Skantypedef	__int64_t	__intmax_t;
63169689Skantypedef	__int64_t	__intptr_t;
64169689Skantypedef	__int32_t	__int_fast8_t;
65169689Skantypedef	__int32_t	__int_fast16_t;
66169689Skantypedef	__int32_t	__int_fast32_t;
67169689Skantypedef	__int64_t	__int_fast64_t;
68169689Skantypedef	__int8_t	__int_least8_t;
69169689Skantypedef	__int16_t	__int_least16_t;
70169689Skantypedef	__int32_t	__int_least32_t;
71169689Skantypedef	__int64_t	__int_least64_t;
72169689Skantypedef	__int64_t	__ptrdiff_t;		/* ptr1 - ptr2 */
73169689Skantypedef	__int64_t	__register_t;
74169689Skantypedef	__int64_t	__segsz_t;		/* segment size (in pages) */
75169689Skantypedef	__uint64_t	__size_t;		/* sizeof() */
76169689Skantypedef	__int64_t	__ssize_t;		/* byte count or error */
77169689Skantypedef	__int32_t	__time_t;		/* time()... */
78169689Skantypedef	__uint64_t	__uintfptr_t;
79169689Skantypedef	__uint64_t	__uintmax_t;
80169689Skantypedef	__uint64_t	__uintptr_t;
81169689Skantypedef	__uint32_t	__uint_fast8_t;
82169689Skantypedef	__uint32_t	__uint_fast16_t;
83169689Skantypedef	__uint32_t	__uint_fast32_t;
84169689Skantypedef	__uint64_t	__uint_fast64_t;
85169689Skantypedef	__uint8_t	__uint_least8_t;
86169689Skantypedef	__uint16_t	__uint_least16_t;
87169689Skantypedef	__uint32_t	__uint_least32_t;
88169689Skantypedef	__uint64_t	__uint_least64_t;
89169689Skantypedef	__uint64_t	__u_register_t;
90169689Skantypedef	__uint64_t	__vm_offset_t;
91169689Skantypedef	__int64_t	__vm_ooffset_t;
92169689Skantypedef	__uint64_t	__vm_pindex_t;
93169689Skantypedef	__uint64_t	__vm_size_t;
94169689Skan
95169689Skan/*
96169689Skan * Unusual type definitions.
97169689Skan */
98169689Skan#if defined(__GNUC__) && (__GNUC__ == 2 && __GNUC_MINOR__ > 95 || __GNUC__ >= 3)
99169689Skantypedef __builtin_va_list	__va_list;	/* internally known to gcc */
100169689Skan#else
101169689Skantypedef	char *			__va_list;
102169689Skan#endif /* post GCC 2.95 */
103169689Skan#if defined __GNUC__ && !defined(__GNUC_VA_LIST) && !defined(__NO_GNUC_VA_LIST)
104169689Skan#define __GNUC_VA_LIST
105169689Skantypedef __va_list		__gnuc_va_list;	/* compatibility w/GNU headers*/
106169689Skan#endif
107169689Skan
108169689Skan#endif /* !_MACHINE__TYPES_H_ */
109169689Skan