sys/stdint.h

Go to the documentation of this file.
00001 /*-
00002  * Copyright (c) 2001 Mike Barcroft <[email protected]>
00003  * All rights reserved.
00004  *
00005  * Redistribution and use in source and binary forms, with or without
00006  * modification, are permitted provided that the following conditions
00007  * are met:
00008  * 1. Redistributions of source code must retain the above copyright
00009  *    notice, this list of conditions and the following disclaimer.
00010  * 2. Redistributions in binary form must reproduce the above copyright
00011  *    notice, this list of conditions and the following disclaimer in the
00012  *    documentation and/or other materials provided with the distribution.
00013  *
00014  * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
00015  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
00016  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
00017  * ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
00018  * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
00019  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
00020  * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
00021  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
00022  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
00023  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
00024  * SUCH DAMAGE.
00025  *
00026  * $FreeBSD: src/sys/sys/stdint.h,v 1.4 2002/08/21 16:20:01 mike Exp $
00027  */
00028 
00029 #ifndef _SYS_STDINT_H_
00030 #define _SYS_STDINT_H_
00031 
00032 #include <sys/cdefs.h>
00033 #include <sys/_types.h>
00034 
00035 #include <machine/_stdint.h>
00036 
00037 #ifndef _INT8_T_DECLARED
00038 typedef __int8_t                int8_t;
00039 #define _INT8_T_DECLARED
00040 #endif
00041 
00042 #ifndef _INT16_T_DECLARED
00043 typedef __int16_t               int16_t;
00044 #define _INT16_T_DECLARED
00045 #endif
00046 
00047 #ifndef _INT32_T_DECLARED
00048 typedef __int32_t               int32_t;
00049 #define _INT32_T_DECLARED
00050 #endif
00051 
00052 #ifndef _INT64_T_DECLARED
00053 typedef __int64_t               int64_t;
00054 #define _INT64_T_DECLARED
00055 #endif
00056 
00057 #ifndef _UINT8_T_DECLARED
00058 typedef __uint8_t               uint8_t;
00059 #define _UINT8_T_DECLARED
00060 #endif
00061 
00062 #ifndef _UINT16_T_DECLARED
00063 typedef __uint16_t              uint16_t;
00064 #define _UINT16_T_DECLARED
00065 #endif
00066 
00067 #ifndef _UINT32_T_DECLARED
00068 typedef __uint32_t              uint32_t;
00069 #define _UINT32_T_DECLARED
00070 #endif
00071 
00072 #ifndef _UINT64_T_DECLARED
00073 typedef __uint64_t              uint64_t;
00074 #define _UINT64_T_DECLARED
00075 #endif
00076 
00077 typedef __int_least8_t          int_least8_t;
00078 typedef __int_least16_t         int_least16_t;
00079 typedef __int_least32_t         int_least32_t;
00080 typedef __int_least64_t         int_least64_t;
00081 
00082 typedef __uint_least8_t         uint_least8_t;
00083 typedef __uint_least16_t        uint_least16_t;
00084 typedef __uint_least32_t        uint_least32_t;
00085 typedef __uint_least64_t        uint_least64_t;
00086 
00087 typedef __int_fast8_t           int_fast8_t;
00088 typedef __int_fast16_t          int_fast16_t;
00089 typedef __int_fast32_t          int_fast32_t;
00090 typedef __int_fast64_t          int_fast64_t;
00091 
00092 typedef __uint_fast8_t          uint_fast8_t;
00093 typedef __uint_fast16_t         uint_fast16_t;
00094 typedef __uint_fast32_t         uint_fast32_t;
00095 typedef __uint_fast64_t         uint_fast64_t;
00096 
00097 typedef __intmax_t              intmax_t;
00098 typedef __uintmax_t             uintmax_t;
00099 
00100 #ifndef _INTPTR_T_DECLARED
00101 typedef __intptr_t              intptr_t;
00102 typedef __uintptr_t             uintptr_t;
00103 #define _INTPTR_T_DECLARED
00104 #endif
00105 
00106 #endif /* !_SYS_STDINT_H_ */

Copyright © Nokia Corporation 2001-2008
Back to top