Developer Area

root/tools/iphone-sdk/trunk/ldns_sources/ldns/config.h @ 32

Revision 32, 9.6 kB (checked in by kjaleel, 6 years ago)

unzipped the DotTel?.zip and moved it into trunk

Line 
1/* config.h.  Generated from config.h.in by configure.  */
2/* config.h.in.  Generated from configure.ac by autoheader.  */
3
4/* Define to 1 if you have the <arpa/inet.h> header file. */
5#define HAVE_ARPA_INET_H 1
6
7/* Whether the C compiler accepts the "format" attribute */
8#define HAVE_ATTR_FORMAT 1
9
10/* Whether the C compiler accepts the "unused" attribute */
11#define HAVE_ATTR_UNUSED 1
12
13/* Define to 1 if you have the `b32_ntop' function. */
14/* #undef HAVE_B32_NTOP */
15
16/* Define to 1 if you have the `b32_pton' function. */
17/* #undef HAVE_B32_PTON */
18
19/* Define to 1 if you have the `b64_ntop' function. */
20/* #undef HAVE_B64_NTOP */
21
22/* Define to 1 if you have the `b64_pton' function. */
23/* #undef HAVE_B64_PTON */
24
25/* Define to 1 if you have the `ctime_r' function. */
26#define HAVE_CTIME_R 1
27
28/* Define to 1 if you have the <dlfcn.h> header file. */
29#define HAVE_DLFCN_H 1
30
31/* Define to 1 if you have the `endprotoent' function. */
32#define HAVE_ENDPROTOENT 1
33
34/* Define to 1 if you have the `endservent' function. */
35#define HAVE_ENDSERVENT 1
36
37/* Whether getaddrinfo is available */
38#define HAVE_GETADDRINFO 1
39
40/* Define to 1 if you have the <getopt.h> header file. */
41#define HAVE_GETOPT_H 1
42
43/* Define to 1 if you have the `gmtime_r' function. */
44#define HAVE_GMTIME_R 1
45
46/* Define to 1 if you have the `inet_aton' function. */
47#define HAVE_INET_ATON 1
48
49/* Define to 1 if you have the `inet_ntop' function. */
50#define HAVE_INET_NTOP 1
51
52/* Define to 1 if you have the `inet_pton' function. */
53#define HAVE_INET_PTON 1
54
55/* Define to 1 if you have the <inttypes.h> header file. */
56#define HAVE_INTTYPES_H 1
57
58/* Define to 1 if you have the `isblank' function. */
59#define HAVE_ISBLANK 1
60
61/* Define to 1 if you have the `crypto' library (-lcrypto). */
62// #define HAVE_LIBCRYPTO 1
63
64/* Define to 1 if you have the `nsl' library (-lnsl). */
65/* #undef HAVE_LIBNSL */
66
67/* Define to 1 if you have the `socket' library (-lsocket). */
68/* #undef HAVE_LIBSOCKET */
69
70/* Define to 1 if your system has a GNU libc compatible `malloc' function, and
71   to 0 otherwise. */
72#define HAVE_MALLOC 1
73
74/* Define to 1 if you have the `memmove' function. */
75#define HAVE_MEMMOVE 1
76
77/* Define to 1 if you have the <memory.h> header file. */
78#define HAVE_MEMORY_H 1
79
80/* Define to 1 if you have the <netdb.h> header file. */
81#define HAVE_NETDB_H 1
82
83/* Define to 1 if you have the <netinet/in.h> header file. */
84#define HAVE_NETINET_IN_H 1
85
86/* Define to 1 if you have the <openssl/ssl.h> header file. */
87// #define HAVE_OPENSSL_SSL_H 1
88
89/* Define to 1 if you have the `random' function. */
90#define HAVE_RANDOM 1
91
92/* Define to 1 if your system has a GNU libc compatible `realloc' function,
93   and to 0 otherwise. */
94#define HAVE_REALLOC 1
95
96/* Define to 1 if you have the `sleep' function. */
97#define HAVE_SLEEP 1
98
99/* Define to 1 if you have the `snprintf' function. */
100#define HAVE_SNPRINTF 1
101
102/* Define if you have the SSL libraries installed. */
103// #define HAVE_SSL
104
105/* Define to 1 if you have the <stdarg.h> header file. */
106#define HAVE_STDARG_H 1
107
108/* Define to 1 if you have the <stdbool.h> header file. */
109#define HAVE_STDBOOL_H 1
110
111/* Define to 1 if you have the <stdint.h> header file. */
112#define HAVE_STDINT_H 1
113
114/* Define to 1 if you have the <stdlib.h> header file. */
115#define HAVE_STDLIB_H 1
116
117/* Define to 1 if you have the <strings.h> header file. */
118#define HAVE_STRINGS_H 1
119
120/* Define to 1 if you have the <string.h> header file. */
121#define HAVE_STRING_H 1
122
123/* Define to 1 if you have the `strlcpy' function. */
124#define HAVE_STRLCPY 1
125
126/* Define to 1 if you have the <sys/mount.h> header file. */
127#define HAVE_SYS_MOUNT_H 1
128
129/* Define to 1 if you have the <sys/param.h> header file. */
130#define HAVE_SYS_PARAM_H 1
131
132/* Define to 1 if you have the <sys/socket.h> header file. */
133#define HAVE_SYS_SOCKET_H 1
134
135/* Define to 1 if you have the <sys/stat.h> header file. */
136#define HAVE_SYS_STAT_H 1
137
138/* Define to 1 if you have the <sys/types.h> header file. */
139#define HAVE_SYS_TYPES_H 1
140
141/* Define to 1 if you have the `timegm' function. */
142#define HAVE_TIMEGM 1
143
144/* Define to 1 if you have the <time.h> header file. */
145#define HAVE_TIME_H 1
146
147/* Define to 1 if you have the <unistd.h> header file. */
148#define HAVE_UNISTD_H 1
149
150/* Define to 1 if you have the <winsock2.h> header file. */
151/* #undef HAVE_WINSOCK2_H */
152
153/* Define to 1 if you have the <ws2tcpip.h> header file. */
154/* #undef HAVE_WS2TCPIP_H */
155
156/* Define to the address where bug reports for this package should be sent. */
157#define PACKAGE_BUGREPORT "libdns@nlnetlabs.nl"
158
159/* Define to the full name of this package. */
160#define PACKAGE_NAME "ldns"
161
162/* Define to the full name and version of this package. */
163#define PACKAGE_STRING "ldns 1.3.0"
164
165/* Define to the one symbol short name of this package. */
166#define PACKAGE_TARNAME "libdns"
167
168/* Define to the version of this package. */
169#define PACKAGE_VERSION "1.3.0"
170
171/* Define to 1 if you have the ANSI C header files. */
172#define STDC_HEADERS 1
173
174/* System configuration dir */
175#define SYSCONFDIR sysconfdir
176
177/* Define this to enable SHA256 and SHA512 support. */
178/* #undef USE_SHA2 */
179
180/* the version of the windows API enabled */
181#define WINVER 0x0502
182
183/* Define to 1 if on AIX 3.
184   System headers sometimes define this.
185   We just want to avoid a redefinition error message.  */
186#ifndef _ALL_SOURCE
187/* # undef _ALL_SOURCE */
188#endif
189
190/* Define to empty if `const' does not conform to ANSI C. */
191/* #undef const */
192
193/* in_addr_t */
194/* #undef in_addr_t */
195
196/* in_port_t */
197/* #undef in_port_t */
198
199/* Define to `__inline__' or `__inline' if that's what the C compiler
200   calls it, or to nothing if 'inline' is not supported under any name.  */
201#ifndef __cplusplus
202/* #undef inline */
203#endif
204
205/* Define to `short' if <sys/types.h> does not define. */
206/* #undef int16_t */
207
208/* Define to `int' if <sys/types.h> does not define. */
209/* #undef int32_t */
210
211/* Define to `long long' if <sys/types.h> does not define. */
212/* #undef int64_t */
213
214/* Define to `char' if <sys/types.h> does not define. */
215/* #undef int8_t */
216
217/* Define to rpl_malloc if the replacement function should be used. */
218/* #undef malloc */
219
220/* Define to rpl_realloc if the replacement function should be used. */
221/* #undef realloc */
222
223/* Define to 'int' if not defined */
224/* #undef socklen_t */
225
226/* Define to `int' if <sys/types.h> does not define. */
227/* #undef ssize_t */
228
229/* Define to `unsigned short' if <sys/types.h> does not define. */
230/* #undef uint16_t */
231
232/* Define to `unsigned int' if <sys/types.h> does not define. */
233/* #undef uint32_t */
234
235/* Define to `unsigned long long' if <sys/types.h> does not define. */
236/* #undef uint64_t */
237
238/* Define to `unsigned char' if <sys/types.h> does not define. */
239/* #undef uint8_t */
240
241
242#include <stdio.h>
243#include <string.h>
244#include <unistd.h>
245#include <assert.h>
246
247#if STDC_HEADERS
248#include <stdlib.h>
249#include <stddef.h>
250#endif
251
252#ifdef HAVE_STDINT_H
253#include <stdint.h>
254#endif
255
256#ifdef HAVE_SYS_SOCKET_H
257#include <sys/socket.h>
258#endif
259
260#ifdef HAVE_NETINET_IN_H
261#include <netinet/in.h>
262#endif
263
264#ifdef HAVE_ARPA_INET_H
265#include <arpa/inet.h>
266#endif
267
268#ifdef HAVE_WINSOCK2_H
269#include <winsock2.h>
270#endif
271
272#ifdef HAVE_WS2TCPIP_H
273#include <ws2tcpip.h>
274#endif
275
276
277
278#ifndef B64_PTON
279int b64_ntop(uint8_t const *src, size_t srclength,
280             char *target, size_t targsize);
281/**
282 * calculates the size needed to store the result of b64_ntop
283 */
284/*@unused@*/
285static inline size_t b64_ntop_calculate_size(size_t srcsize)
286{
287        return ((((srcsize + 2) / 3) * 4) + 1);
288}
289#endif /* !B64_PTON */
290#ifndef B64_NTOP
291int b64_pton(char const *src, uint8_t *target, size_t targsize);
292/**
293 * calculates the size needed to store the result of b64_pton
294 */
295/*@unused@*/
296static inline size_t b64_pton_calculate_size(size_t srcsize)
297{
298        return ((((srcsize / 4) * 3) - 2) + 2);
299}
300#endif /* !B64_NTOP */
301
302#ifndef B32_NTOP
303int b32_ntop(uint8_t const *src, size_t srclength,
304             char *target, size_t targsize);
305int b32_ntop_extended_hex(uint8_t const *src, size_t srclength,
306             char *target, size_t targsize);
307/**
308 * calculates the size needed to store the result of b32_ntop
309 */
310/*@unused@*/
311static inline size_t b32_ntop_calculate_size(size_t srcsize)
312{
313        size_t result = ((((srcsize / 5) * 8) - 2) + 2);
314        return result;
315}
316#endif /* !B32_PTON */
317#ifndef B32_PTON
318int b32_pton(char const *src, size_t hashed_owner_str_len, uint8_t *target, size_t targsize);
319int b32_pton_extended_hex(char const *src, size_t hashed_owner_str_len, uint8_t *target, size_t targsize);
320/**
321 * calculates the size needed to store the result of b32_pton
322 */
323/*@unused@*/
324static inline size_t b32_pton_calculate_size(size_t srcsize)
325{
326        size_t result = ((((srcsize) / 8) * 5));
327        return result;
328}
329#endif /* !B32_NTOP */
330
331#ifndef HAVE_SLEEP
332/* use windows sleep, in millisecs, instead */
333#define sleep(x) Sleep((x)*1000)
334#endif
335
336#ifndef HAVE_RANDOM
337#define srandom(x) srand(x)
338#define random(x) rand(x)
339#endif
340
341#ifndef HAVE_TIMEGM
342#include <time.h>
343time_t timegm (struct tm *tm);
344#endif /* !TIMEGM */
345#ifndef HAVE_GMTIME_R
346struct tm *gmtime_r(const time_t *timep, struct tm *result);
347#endif
348#ifndef HAVE_ISBLANK
349int isblank(int c);
350#endif /* !HAVE_ISBLANK */
351#ifndef HAVE_SNPRINTF
352#include <stdarg.h>
353int snprintf (char *str, size_t count, const char *fmt, ...);
354int vsnprintf (char *str, size_t count, const char *fmt, va_list arg);
355#endif /* HAVE_SNPRINTF */
356#ifndef HAVE_INET_PTON
357int inet_pton(int af, const char* src, void* dst);
358#endif /* HAVE_INET_PTON */
359#ifndef HAVE_INET_NTOP
360const char *inet_ntop(int af, const void *src, char *dst, size_t size);
361#endif
362#ifndef HAVE_INET_ATON
363int inet_aton(const char *cp, struct in_addr *addr);
364#endif
365#ifndef HAVE_MEMMOVE
366void *memmove(void *dest, const void *src, size_t n);
367#endif
368#ifndef HAVE_STRLCPY
369size_t strlcpy(char *dst, const char *src, size_t siz);
370#endif
371#ifndef HAVE_GETADDRINFO
372#include "compat/fake-rfc2553.h"
373#endif
Note: See TracBrowser for help on using the browser.
Telnic
Search This Site
Partners
Neustar
ICANN
Main site | WHOIS | Sell .tel | FAQ | Archived Site | About Telnic | Contact Us