int.h

Go to the documentation of this file.
00001 /*
00002  * Copyright (C) 2004, 2005, 2007  Internet Systems Consortium, Inc. ("ISC")
00003  * Copyright (C) 1999-2001  Internet Software Consortium.
00004  *
00005  * Permission to use, copy, modify, and/or distribute this software for any
00006  * purpose with or without fee is hereby granted, provided that the above
00007  * copyright notice and this permission notice appear in all copies.
00008  *
00009  * THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
00010  * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
00011  * AND FITNESS.  IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
00012  * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
00013  * LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
00014  * OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
00015  * PERFORMANCE OF THIS SOFTWARE.
00016  */
00017 
00018 /* $Id: int.h,v 1.16 2007/06/19 23:47:19 tbox Exp $ */
00019 
00020 #ifndef ISC_INT_H
00021 #define ISC_INT_H 1
00022 
00023 /*! \file */
00024 
00025 typedef char                            isc_int8_t;
00026 typedef unsigned char                   isc_uint8_t;
00027 typedef short                           isc_int16_t;
00028 typedef unsigned short                  isc_uint16_t;
00029 typedef int                             isc_int32_t;
00030 typedef unsigned int                    isc_uint32_t;
00031 typedef long long                       isc_int64_t;
00032 typedef unsigned long long              isc_uint64_t;
00033 
00034 #define ISC_INT8_MIN    -128
00035 #define ISC_INT8_MAX    127
00036 #define ISC_UINT8_MAX   255
00037 
00038 #define ISC_INT16_MIN   -32768
00039 #define ISC_INT16_MAX   32767
00040 #define ISC_UINT16_MAX  65535
00041 
00042 /*%
00043  * Note that "int" is 32 bits on all currently supported Unix-like operating
00044  * systems, but "long" can be either 32 bits or 64 bits, thus the 32 bit
00045  * constants are not qualified with "L".
00046  */
00047 #define ISC_INT32_MIN   -2147483648
00048 #define ISC_INT32_MAX   2147483647
00049 #define ISC_UINT32_MAX  4294967295U
00050 
00051 #define ISC_INT64_MIN   -9223372036854775808LL
00052 #define ISC_INT64_MAX   9223372036854775807LL
00053 #define ISC_UINT64_MAX  18446744073709551615ULL
00054 
00055 #endif /* ISC_INT_H */

Generated on Tue Apr 28 17:41:05 2015 by Doxygen 1.5.4 for BIND9 Internals 9.11.0pre-alpha