3
A brief file description
5
@section license License
7
Licensed to the Apache Software Foundation (ASF) under one
8
or more contributor license agreements. See the NOTICE file
9
distributed with this work for additional information
10
regarding copyright ownership. The ASF licenses this file
11
to you under the Apache License, Version 2.0 (the
12
"License"); you may not use this file except in compliance
13
with the License. You may obtain a copy of the License at
15
http://www.apache.org/licenses/LICENSE-2.0
17
Unless required by applicable law or agreed to in writing, software
18
distributed under the License is distributed on an "AS IS" BASIS,
19
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
20
See the License for the specific language governing permissions and
21
limitations under the License.
24
/****************************************************************************
28
Definitions & declarations to faciliate inter-architecture portability.
30
****************************************************************************/
32
#if !defined (_ink_port_h_)
35
#include "ink_config.h"
39
#define __STDC_LIMIT_MACROS
42
// TODO: Add "standard" int types?
45
#ifdef HAVE_INTTYPES_H
46
# define __STDC_FORMAT_MACROS 1
47
# include <inttypes.h>
49
// TODO: add PRI*64 stuff?
53
#define INT64_MAX (9223372036854775807LL)
54
#define INT64_MIN (-INT64_MAX -1LL)
55
#define INTU32_MAX (4294967295U)
56
#define INT32_MAX (2147483647)
57
#define INT32_MIN (-2147483647-1)
59
// Hack for MacOSX, have to take this out of the group above.
61
#define INTU64_MAX (18446744073709551615ULL)
65
#define POSIX_THREAD_10031c
69
#define ETIME ETIMEDOUT
75
#define ENOTSUP EOPNOTSUPP
85
#define RENTRENT_GETHOSTBYNAME
86
#define RENTRENT_GETHOSTBYADDR
91
// Need to use this to avoid problems when calling variadic functions
92
// with many arguments. In such cases, a raw '0' or NULL can be
93
// interpreted as 32 bits
94
#define NULL_PTR static_cast<void*>(0)