forked from sysml/clickos
-
Notifications
You must be signed in to change notification settings - Fork 2
/
config-minios.h.in
214 lines (161 loc) · 5.25 KB
/
config-minios.h.in
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
/* Process this file with configure to produce config-minios.h. -*- mode: c -*- */
#ifndef CLICK_CONFIG_MINIOS_H
#define CLICK_CONFIG_MINIOS_H
/* Define if you have the <byteswap.h> header file. */
#undef HAVE_BYTESWAP_H
/* Define if you have the clock_gettime function. */
#undef HAVE_CLOCK_GETTIME
/* Define to 1 if you have the declaration
of 'clock_gettime', and to 0 if you don't. */
#undef HAVE_DECL_CLOCK_GETTIME
/* Define if you have the ffs function. */
#undef HAVE_FFS
/* Define if you have the ffsl function. */
#undef HAVE_FFSL
/* Define if you have the ffsll function. */
#undef HAVE_FFSLL
/* Floating point arithmetic is allowed. */
#define HAVE_FLOAT_TYPES 1
/* Define if you have the <ifaddrs.h> header file. */
#define HAVE_IFADDRS_H
/* Define if 'int64_t' is typedefed to 'long' at mini-os. */
#define HAVE_INT64_IS_LONG_MINIOS 1
/* Define if 'int64_t' is typedefed to 'long long' at mini-os. */
#define HAVE_INT64_IS_LONG_LONG_MINIOS 0
/* Define if you have the <inttypes.h> header file. */
#undef HAVE_INTTYPES_H
/* Define if you have the mmap function. */
#undef HAVE_MMAP
/* Define if you have the <net/bpf.h> header file. */
#undef HAVE_NET_BPF_H
/* Define if you have the <net/if_dl.h> header file. */
#undef HAVE_NET_IF_DL_H
/* Define if you have the <net/if_tap.h> header file. */
#undef HAVE_NET_IF_TAP_H
/* Define if you have the <net/if_tun.h> header file. */
#undef HAVE_NET_IF_TUN_H
/* Define if you have the <net/if_types.h> header file. */
#undef HAVE_NET_IF_TYPES_H
/* Define if you have the <netdb.h> header file. */
#define HAVE_NETDB_H 0
/* Define if you have the <netpacket/packet.h> header file. */
#define HAVE_NETPACKET_PACKET_H 0
/* Define if <new.h> exists and works. */
#undef HAVE_NEW_H
/* Define if <new> exists and works. */
#undef HAVE_NEW_HDR
/* Placement new is always provided below. */
#define HAVE_PLACEMENT_NEW 1
/* Define if you have the random function. */
#undef HAVE_RANDOM
/* Define if you have the snprintf function. */
#undef HAVE_SNPRINTF
/* Define if you have the strerror function. */
#undef HAVE_STRERROR
/* Define if you have the <strings.h> header file. */
#undef HAVE_STRINGS_H
/* Define if you have the strnlen function. */
#undef HAVE_STRNLEN
/* Define if you have the strtof function. */
#undef HAVE_STRTOF
/* Define if you have the strtold function. */
#undef HAVE_STRTOLD
/* Define if you have the strtoul function. */
#undef HAVE_STRTOUL
/* Define if you have u_intXX_t types but not uintXX_t types. */
#undef HAVE_U_INT_TYPES
/* Define if you have the <unistd.h> header file. */
#undef HAVE_UNISTD_H
/* Define if you have the vsnprintf function. */
#undef HAVE_VSNPRINTF
/* The size of a `click_jiffies_t', as computed by sizeof. */
#define SIZEOF_CLICK_JIFFIES_T SIZEOF_INT
/* The size of a `off_t', as computed by sizeof. */
#undef SIZEOF_OFF_T
/* Use portable LLRPC */
#define HAVE_PORTABLE_LLRPC 1
/* Set feature test macros before anything is included. */
#if HAVE_LARGE_FILE_SUPPORT && HAVE_INT64_TYPES
# if defined(_FILE_OFFSET_BITS) && _FILE_OFFSET_BITS != 64
# error "bad _FILE_OFFSET_BITS, did you #include <click/config.h> first?"
# endif
# define _LARGEFILE_SOURCE 1
# define _FILE_OFFSET_BITS 64
#endif
#ifdef __APPLE__
# define _DARWIN_UNLIMITED_SELECT 1
#endif
/* Include integer type definitions. */
#ifdef HAVE_INTTYPES_H
# include <inttypes.h>
#endif
#include <sys/types.h>
/* Define uint types in terms of u_int types, if necessary. */
#ifdef HAVE_U_INT_TYPES
typedef u_int8_t uint8_t;
typedef u_int16_t uint16_t;
typedef u_int32_t uint32_t;
# ifdef HAVE_INT64_TYPES
typedef u_int64_t uint64_t;
# endif
typedef long intptr_t; /* XXX? */
typedef unsigned long uintptr_t;
#endif
/* Define HAVE_INT64_IS_LONG based on HAVE_INT64_IS_LONG_MINIOS. */
#ifdef HAVE_INT64_IS_LONG_MINIOS
# define HAVE_INT64_IS_LONG HAVE_INT64_IS_LONG_MINIOS
#endif
/* Define HAVE_INT64_IS_LONG_LONG based on HAVE_INT64_IS_LONG_LONG_MINIOS. */
#ifdef HAVE_INT64_IS_LONG_LONG_MINIOS
# define HAVE_INT64_IS_LONG_LONG HAVE_INT64_IS_LONG_LONG_MINIOS
#endif
/* If 64-bit integers exist, then 64-bit divide exists. */
#ifdef HAVE_INT64_TYPES
# define HAVE_INT64_DIVIDE 1
#endif
/* Define HAVE_USE_CLOCK_GETTIME if the clock_gettime function is usable. */
#ifndef HAVE_USE_CLOCK_GETTIME
# if HAVE_DECL_CLOCK_GETTIME && HAVE_CLOCK_GETTIME
# define HAVE_USE_CLOCK_GETTIME 1
# endif
#endif
/* Include assert macro. */
#include <assert.h>
/* Include mini-so base header */
#ifdef __cplusplus
extern "C"{
#endif
#include <mini-os/os.h>
#ifdef __cplusplus
}
#endif
/* Define if mmap is allowed. */
#if defined(HAVE_SYS_MMAN_H) && defined(HAVE_MMAP)
# define ALLOW_MMAP 1
#endif
/* Prototype strerror if we don't have it. */
#ifndef HAVE_STRERROR
char *strerror(int errno);
#endif
/* Use nanosecond-granularity timestamps if they are enabled. */
#if HAVE_NANOTIMESTAMP_ENABLED
# define TIMESTAMP_NANOSEC 1
#endif
#ifdef __cplusplus
/* Provide placement new. */
#if HAVE_NEW_HDR
# include <new>
#elif HAVE_NEW_H
# include <new.h>
#else
inline void *operator new(size_t, void *v) { return v; }
#endif
/* Define macros that surround Click declarations. */
#ifndef CLICK_DECLS
# define CLICK_DECLS /* */
# define CLICK_ENDDECLS /* */
# define CLICK_USING_DECLS /* */
# define CLICK_NAME(name) ::name
#endif
#endif /* __cplusplus */
#endif /* CLICK_CONFIG_MINIOS_H */