82 lines
2.1 KiB
C
82 lines
2.1 KiB
C
|
/* Copyright (C) 1997-2017 Free Software Foundation, Inc.
|
||
|
This file is part of the GNU C Library.
|
||
|
|
||
|
The GNU C Library is free software; you can redistribute it and/or
|
||
|
modify it under the terms of the GNU Lesser General Public
|
||
|
License as published by the Free Software Foundation; either
|
||
|
version 2.1 of the License, or (at your option) any later version.
|
||
|
|
||
|
The GNU C Library is distributed in the hope that it will be useful,
|
||
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||
|
Lesser General Public License for more details.
|
||
|
|
||
|
You should have received a copy of the GNU Lesser General Public
|
||
|
License along with the GNU C Library; if not, see
|
||
|
<http://www.gnu.org/licenses/>. */
|
||
|
|
||
|
/*
|
||
|
* ISO C99: 7.18 Integer types <stdint.h>
|
||
|
*/
|
||
|
|
||
|
/* Exact integral types. */
|
||
|
|
||
|
/* Signed. */
|
||
|
|
||
|
/* There is some amount of overlap with <sys/types.h> as known by inet code */
|
||
|
#ifndef __int8_t_defined
|
||
|
# define __int8_t_defined
|
||
|
typedef signed char int8_t;
|
||
|
typedef short int int16_t;
|
||
|
typedef int int32_t;
|
||
|
# if __WORDSIZE == 64
|
||
|
typedef long int int64_t;
|
||
|
# else
|
||
|
__extension__
|
||
|
typedef long long int int64_t;
|
||
|
# endif
|
||
|
#endif
|
||
|
|
||
|
/* Unsigned. */
|
||
|
typedef unsigned char uint8_t;
|
||
|
typedef unsigned short int uint16_t;
|
||
|
#ifndef __uint32_t_defined
|
||
|
typedef unsigned int uint32_t;
|
||
|
# define __uint32_t_defined
|
||
|
#endif
|
||
|
#if __WORDSIZE == 64
|
||
|
typedef unsigned long int uint64_t;
|
||
|
#else
|
||
|
__extension__
|
||
|
typedef unsigned long long int uint64_t;
|
||
|
#endif
|
||
|
|
||
|
|
||
|
/* Small types. */
|
||
|
|
||
|
/* Signed. */
|
||
|
typedef signed char int_least8_t;
|
||
|
typedef short int int_least16_t;
|
||
|
typedef int int_least32_t;
|
||
|
#if __WORDSIZE == 64
|
||
|
typedef long int int_least64_t;
|
||
|
#else
|
||
|
__extension__
|
||
|
typedef long long int int_least64_t;
|
||
|
#endif
|
||
|
|
||
|
/* Unsigned. */
|
||
|
typedef unsigned char uint_least8_t;
|
||
|
typedef unsigned short int uint_least16_t;
|
||
|
typedef unsigned int uint_least32_t;
|
||
|
#if __WORDSIZE == 64
|
||
|
typedef unsigned long int uint_least64_t;
|
||
|
#else
|
||
|
__extension__
|
||
|
typedef unsigned long long int uint_least64_t;
|
||
|
#endif
|
||
|
|
||
|
/* Pointers */
|
||
|
/* Suggested use address_t* only */
|
||
|
typedef char address_t;
|