xref: /illumos-gate/usr/src/boot/sys/sys/_stdint.h (revision 199767f8)
1*199767f8SToomas Soome /*-
2*199767f8SToomas Soome  * Copyright (c) 2011 David E. O'Brien <obrien@FreeBSD.org>
3*199767f8SToomas Soome  * Copyright (c) 2001 Mike Barcroft <mike@FreeBSD.org>
4*199767f8SToomas Soome  * All rights reserved.
5*199767f8SToomas Soome  *
6*199767f8SToomas Soome  * Redistribution and use in source and binary forms, with or without
7*199767f8SToomas Soome  * modification, are permitted provided that the following conditions
8*199767f8SToomas Soome  * are met:
9*199767f8SToomas Soome  * 1. Redistributions of source code must retain the above copyright
10*199767f8SToomas Soome  *    notice, this list of conditions and the following disclaimer.
11*199767f8SToomas Soome  * 2. Redistributions in binary form must reproduce the above copyright
12*199767f8SToomas Soome  *    notice, this list of conditions and the following disclaimer in the
13*199767f8SToomas Soome  *    documentation and/or other materials provided with the distribution.
14*199767f8SToomas Soome  *
15*199767f8SToomas Soome  * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
16*199767f8SToomas Soome  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
17*199767f8SToomas Soome  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
18*199767f8SToomas Soome  * ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
19*199767f8SToomas Soome  * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
20*199767f8SToomas Soome  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
21*199767f8SToomas Soome  * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
22*199767f8SToomas Soome  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
23*199767f8SToomas Soome  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
24*199767f8SToomas Soome  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
25*199767f8SToomas Soome  * SUCH DAMAGE.
26*199767f8SToomas Soome  *
27*199767f8SToomas Soome  * $FreeBSD$
28*199767f8SToomas Soome  */
29*199767f8SToomas Soome 
30*199767f8SToomas Soome #ifndef _SYS__STDINT_H_
31*199767f8SToomas Soome #define _SYS__STDINT_H_
32*199767f8SToomas Soome 
33*199767f8SToomas Soome #ifndef _INT8_T_DECLARED
34*199767f8SToomas Soome typedef	__int8_t		int8_t;
35*199767f8SToomas Soome #define	_INT8_T_DECLARED
36*199767f8SToomas Soome #endif
37*199767f8SToomas Soome 
38*199767f8SToomas Soome #ifndef _INT16_T_DECLARED
39*199767f8SToomas Soome typedef	__int16_t		int16_t;
40*199767f8SToomas Soome #define	_INT16_T_DECLARED
41*199767f8SToomas Soome #endif
42*199767f8SToomas Soome 
43*199767f8SToomas Soome #ifndef _INT32_T_DECLARED
44*199767f8SToomas Soome typedef	__int32_t		int32_t;
45*199767f8SToomas Soome #define	_INT32_T_DECLARED
46*199767f8SToomas Soome #endif
47*199767f8SToomas Soome 
48*199767f8SToomas Soome #ifndef _INT64_T_DECLARED
49*199767f8SToomas Soome typedef	__int64_t		int64_t;
50*199767f8SToomas Soome #define	_INT64_T_DECLARED
51*199767f8SToomas Soome #endif
52*199767f8SToomas Soome 
53*199767f8SToomas Soome #ifndef _UINT8_T_DECLARED
54*199767f8SToomas Soome typedef	__uint8_t		uint8_t;
55*199767f8SToomas Soome #define	_UINT8_T_DECLARED
56*199767f8SToomas Soome #endif
57*199767f8SToomas Soome 
58*199767f8SToomas Soome #ifndef _UINT16_T_DECLARED
59*199767f8SToomas Soome typedef	__uint16_t		uint16_t;
60*199767f8SToomas Soome #define	_UINT16_T_DECLARED
61*199767f8SToomas Soome #endif
62*199767f8SToomas Soome 
63*199767f8SToomas Soome #ifndef _UINT32_T_DECLARED
64*199767f8SToomas Soome typedef	__uint32_t		uint32_t;
65*199767f8SToomas Soome #define	_UINT32_T_DECLARED
66*199767f8SToomas Soome #endif
67*199767f8SToomas Soome 
68*199767f8SToomas Soome #ifndef _UINT64_T_DECLARED
69*199767f8SToomas Soome typedef	__uint64_t		uint64_t;
70*199767f8SToomas Soome #define	_UINT64_T_DECLARED
71*199767f8SToomas Soome #endif
72*199767f8SToomas Soome 
73*199767f8SToomas Soome #ifndef _INTPTR_T_DECLARED
74*199767f8SToomas Soome typedef	__intptr_t		intptr_t;
75*199767f8SToomas Soome #define	_INTPTR_T_DECLARED
76*199767f8SToomas Soome #endif
77*199767f8SToomas Soome #ifndef _UINTPTR_T_DECLARED
78*199767f8SToomas Soome typedef	__uintptr_t		uintptr_t;
79*199767f8SToomas Soome #define	_UINTPTR_T_DECLARED
80*199767f8SToomas Soome #endif
81*199767f8SToomas Soome #ifndef _INTMAX_T_DECLARED
82*199767f8SToomas Soome typedef	__intmax_t		intmax_t;
83*199767f8SToomas Soome #define	_INTMAX_T_DECLARED
84*199767f8SToomas Soome #endif
85*199767f8SToomas Soome #ifndef _UINTMAX_T_DECLARED
86*199767f8SToomas Soome typedef	__uintmax_t		uintmax_t;
87*199767f8SToomas Soome #define	_UINTMAX_T_DECLARED
88*199767f8SToomas Soome #endif
89*199767f8SToomas Soome 
90*199767f8SToomas Soome #endif /* !_SYS__STDINT_H_ */
91