os/ossrv/genericopenlibs/openenvcore/include/stdint.h
changeset 0 bde4ae8d615e
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/os/ossrv/genericopenlibs/openenvcore/include/stdint.h	Fri Jun 15 03:10:57 2012 +0200
     1.3 @@ -0,0 +1,106 @@
     1.4 +/*-
     1.5 + * Copyright (c) 2001 Mike Barcroft <mike@FreeBSD.org>
     1.6 + * All rights reserved.
     1.7 + *
     1.8 + * Redistribution and use in source and binary forms, with or without
     1.9 + * modification, are permitted provided that the following conditions
    1.10 + * are met:
    1.11 + * 1. Redistributions of source code must retain the above copyright
    1.12 + *    notice, this list of conditions and the following disclaimer.
    1.13 + * 2. Redistributions in binary form must reproduce the above copyright
    1.14 + *    notice, this list of conditions and the following disclaimer in the
    1.15 + *    documentation and/or other materials provided with the distribution.
    1.16 + *
    1.17 + * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
    1.18 + * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
    1.19 + * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
    1.20 + * ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
    1.21 + * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
    1.22 + * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
    1.23 + * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
    1.24 + * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
    1.25 + * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
    1.26 + * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
    1.27 + * SUCH DAMAGE.
    1.28 + *
    1.29 + * $FreeBSD: src/sys/sys/stdint.h,v 1.4 2002/08/21 16:20:01 mike Exp $
    1.30 + */
    1.31 +
    1.32 +#ifndef _SYS_STDINT_H_
    1.33 +#define _SYS_STDINT_H_
    1.34 +
    1.35 +#include <sys/cdefs.h>
    1.36 +#include <sys/_types.h>
    1.37 +
    1.38 +#include <stdapis/machine/_stdint.h>
    1.39 +
    1.40 +#ifndef _INT8_T_DECLARED
    1.41 +typedef	__int8_t		int8_t;
    1.42 +#define	_INT8_T_DECLARED
    1.43 +#endif
    1.44 +
    1.45 +#ifndef _INT16_T_DECLARED
    1.46 +typedef	__int16_t		int16_t;
    1.47 +#define	_INT16_T_DECLARED
    1.48 +#endif
    1.49 +
    1.50 +#ifndef _INT32_T_DECLARED
    1.51 +typedef	__int32_t		int32_t;
    1.52 +#define	_INT32_T_DECLARED
    1.53 +#endif
    1.54 +
    1.55 +#ifndef _INT64_T_DECLARED
    1.56 +typedef	__int64_t		int64_t;
    1.57 +#define	_INT64_T_DECLARED
    1.58 +#endif
    1.59 +
    1.60 +#ifndef _UINT8_T_DECLARED
    1.61 +typedef	__uint8_t		uint8_t;
    1.62 +#define	_UINT8_T_DECLARED
    1.63 +#endif
    1.64 +
    1.65 +#ifndef _UINT16_T_DECLARED
    1.66 +typedef	__uint16_t		uint16_t;
    1.67 +#define	_UINT16_T_DECLARED
    1.68 +#endif
    1.69 +
    1.70 +#ifndef _UINT32_T_DECLARED
    1.71 +typedef	__uint32_t		uint32_t;
    1.72 +#define	_UINT32_T_DECLARED
    1.73 +#endif
    1.74 +
    1.75 +#ifndef _UINT64_T_DECLARED
    1.76 +typedef	__uint64_t		uint64_t;
    1.77 +#define	_UINT64_T_DECLARED
    1.78 +#endif
    1.79 +
    1.80 +typedef	__int_least8_t		int_least8_t;
    1.81 +typedef	__int_least16_t		int_least16_t;
    1.82 +typedef	__int_least32_t		int_least32_t;
    1.83 +typedef	__int_least64_t		int_least64_t;
    1.84 +
    1.85 +typedef	__uint_least8_t		uint_least8_t;
    1.86 +typedef	__uint_least16_t	uint_least16_t;
    1.87 +typedef	__uint_least32_t	uint_least32_t;
    1.88 +typedef	__uint_least64_t	uint_least64_t;
    1.89 +
    1.90 +typedef	__int_fast8_t		int_fast8_t;
    1.91 +typedef	__int_fast16_t		int_fast16_t;
    1.92 +typedef	__int_fast32_t		int_fast32_t;
    1.93 +typedef	__int_fast64_t		int_fast64_t;
    1.94 +
    1.95 +typedef	__uint_fast8_t		uint_fast8_t;
    1.96 +typedef	__uint_fast16_t		uint_fast16_t;
    1.97 +typedef	__uint_fast32_t		uint_fast32_t;
    1.98 +typedef	__uint_fast64_t		uint_fast64_t;
    1.99 +
   1.100 +typedef	__intmax_t		intmax_t;
   1.101 +typedef	__uintmax_t		uintmax_t;
   1.102 +
   1.103 +#ifndef _INTPTR_T_DECLARED
   1.104 +typedef	__intptr_t		intptr_t;
   1.105 +typedef	__uintptr_t		uintptr_t;
   1.106 +#define	_INTPTR_T_DECLARED
   1.107 +#endif
   1.108 +
   1.109 +#endif /* !_SYS_STDINT_H_ */