ldns  1.7.0
config.h
Go to the documentation of this file.
1 /* ldns/config.h. Generated from config.h.in by configure. */
2 /* ldns/config.h.in. Generated from configure.ac by autoheader. */
3 
4 /* Define if building universal (internal helper macro) */
5 /* #undef AC_APPLE_UNIVERSAL_BUILD */
6 
7 /* Define to 1 if you have the <arpa/inet.h> header file. */
8 #define HAVE_ARPA_INET_H 1
9 
10 /* Whether the C compiler accepts the "format" attribute */
11 #define HAVE_ATTR_FORMAT 1
12 
13 /* Whether the C compiler accepts the "unused" attribute */
14 #define HAVE_ATTR_UNUSED 1
15 
16 /* Define to 1 if you have the `b32_ntop' function. */
17 /* #undef HAVE_B32_NTOP */
18 
19 /* Define to 1 if you have the `b32_pton' function. */
20 /* #undef HAVE_B32_PTON */
21 
22 /* Define to 1 if you have the `b64_ntop' function. */
23 /* #undef HAVE_B64_NTOP */
24 
25 /* Define to 1 if you have the `b64_pton' function. */
26 /* #undef HAVE_B64_PTON */
27 
28 /* Define to 1 if you have the `bzero' function. */
29 #define HAVE_BZERO 1
30 
31 /* Define to 1 if you have the `calloc' function. */
32 #define HAVE_CALLOC 1
33 
34 /* Define to 1 if you have the `ctime_r' function. */
35 #define HAVE_CTIME_R 1
36 
37 /* Is a CAFILE given at configure time */
38 #define HAVE_DANE_CA_FILE 0
39 
40 /* Is a CAPATH given at configure time */
41 #define HAVE_DANE_CA_PATH 0
42 
43 /* Define to 1 if you have the declaration of `NID_ED25519', and to 0 if you
44  don't. */
45 #define HAVE_DECL_NID_ED25519 1
46 
47 /* Define to 1 if you have the declaration of `NID_ED448', and to 0 if you
48  don't. */
49 #define HAVE_DECL_NID_ED448 1
50 
51 /* Define to 1 if you have the declaration of `NID_secp384r1', and to 0 if you
52  don't. */
53 #define HAVE_DECL_NID_SECP384R1 1
54 
55 /* Define to 1 if you have the declaration of `NID_X9_62_prime256v1', and to 0
56  if you don't. */
57 #define HAVE_DECL_NID_X9_62_PRIME256V1 1
58 
59 /* Define to 1 if you have the <dlfcn.h> header file. */
60 #define HAVE_DLFCN_H 1
61 
62 /* Define to 1 if you have the `DSA_get0_key' function. */
63 #define HAVE_DSA_GET0_KEY 1
64 
65 /* Define to 1 if you have the `DSA_get0_pqg' function. */
66 #define HAVE_DSA_GET0_PQG 1
67 
68 /* Define to 1 if you have the `DSA_SIG_get0' function. */
69 #define HAVE_DSA_SIG_GET0 1
70 
71 /* Define to 1 if you have the `DSA_SIG_set0' function. */
72 #define HAVE_DSA_SIG_SET0 1
73 
74 /* Define to 1 if you have the `ECDSA_SIG_get0' function. */
75 #define HAVE_ECDSA_SIG_GET0 1
76 
77 /* Define to 1 if you have the `endprotoent' function. */
78 #define HAVE_ENDPROTOENT 1
79 
80 /* Define to 1 if you have the `endservent' function. */
81 #define HAVE_ENDSERVENT 1
82 
83 /* Define to 1 if you have the `ENGINE_load_cryptodev' function. */
84 /* #undef HAVE_ENGINE_LOAD_CRYPTODEV */
85 
86 /* Define to 1 if you have the `ERR_load_crypto_strings' function. */
87 /* #undef HAVE_ERR_LOAD_CRYPTO_STRINGS */
88 
89 /* Define to 1 if you have the `EVP_dss1' function. */
90 /* #undef HAVE_EVP_DSS1 */
91 
92 /* Define to 1 if you have the `EVP_MD_CTX_new' function. */
93 #define HAVE_EVP_MD_CTX_NEW 1
94 
95 /* Define to 1 if you have the `EVP_PKEY_base_id' function. */
96 #define HAVE_EVP_PKEY_BASE_ID 1
97 
98 /* Define to 1 if you have the `EVP_PKEY_keygen' function. */
99 #define HAVE_EVP_PKEY_KEYGEN 1
100 
101 /* Define to 1 if you have the `EVP_sha256' function. */
102 #define HAVE_EVP_SHA256 1
103 
104 /* Define to 1 if you have the `EVP_sha384' function. */
105 #define HAVE_EVP_SHA384 1
106 
107 /* Define to 1 if you have the `EVP_sha512' function. */
108 #define HAVE_EVP_SHA512 1
109 
110 /* Define to 1 if you have the `fcntl' function. */
111 #define HAVE_FCNTL 1
112 
113 /* Define to 1 if you have the `fork' function. */
114 #define HAVE_FORK 1
115 
116 /* Whether getaddrinfo is available */
117 #define HAVE_GETADDRINFO 1
118 
119 /* Define to 1 if you have the <getopt.h> header file. */
120 #define HAVE_GETOPT_H 1
121 
122 /* Define to 1 if you have the `gmtime_r' function. */
123 #define HAVE_GMTIME_R 1
124 
125 /* If you have HMAC_Update */
126 #define HAVE_HMAC_UPDATE 1
127 
128 /* Define to 1 if you have the `inet_aton' function. */
129 #define HAVE_INET_ATON 1
130 
131 /* Define to 1 if you have the `inet_ntop' function. */
132 #define HAVE_INET_NTOP 1
133 
134 /* Define to 1 if you have the `inet_pton' function. */
135 #define HAVE_INET_PTON 1
136 
137 /* define if you have inttypes.h */
138 #define HAVE_INTTYPES_H 1
139 
140 /* if the function 'ioctlsocket' is available */
141 /* #undef HAVE_IOCTLSOCKET */
142 
143 /* Define to 1 if you have the `isascii' function. */
144 #define HAVE_ISASCII 1
145 
146 /* Define to 1 if you have the `isblank' function. */
147 #define HAVE_ISBLANK 1
148 
149 /* Define to 1 if you have the `pcap' library (-lpcap). */
150 #define HAVE_LIBPCAP 1
151 
152 /* Define if we have LibreSSL */
153 /* #undef HAVE_LIBRESSL */
154 
155 /* Define to 1 if you have the `localtime_r' function. */
156 #define HAVE_LOCALTIME_R 1
157 
158 /* Define to 1 if your system has a GNU libc compatible `malloc' function, and
159  to 0 otherwise. */
160 #define HAVE_MALLOC 1
161 
162 /* Define to 1 if you have the `memmove' function. */
163 #define HAVE_MEMMOVE 1
164 
165 /* Define to 1 if you have the `memset' function. */
166 #define HAVE_MEMSET 1
167 
168 /* Define to 1 if you have the <minix/config.h> header file. */
169 /* #undef HAVE_MINIX_CONFIG_H */
170 
171 /* Define to 1 if you have the <netdb.h> header file. */
172 #define HAVE_NETDB_H 1
173 
174 /* Define to 1 if you have the <netinet/if_ether.h> header file. */
175 #define HAVE_NETINET_IF_ETHER_H 1
176 
177 /* Define to 1 if you have the <netinet/igmp.h> header file. */
178 #define HAVE_NETINET_IGMP_H 1
179 
180 /* Define to 1 if you have the <netinet/in.h> header file. */
181 #define HAVE_NETINET_IN_H 1
182 
183 /* Define to 1 if you have the <netinet/in_systm.h> header file. */
184 #define HAVE_NETINET_IN_SYSTM_H 1
185 
186 /* Define to 1 if you have the <netinet/ip6.h> header file. */
187 #define HAVE_NETINET_IP6_H 1
188 
189 /* Define to 1 if you have the <netinet/ip_compat.h> header file. */
190 /* #undef HAVE_NETINET_IP_COMPAT_H */
191 
192 /* Define to 1 if you have the <netinet/ip.h> header file. */
193 #define HAVE_NETINET_IP_H 1
194 
195 /* Define to 1 if you have the <netinet/udp.h> header file. */
196 #define HAVE_NETINET_UDP_H 1
197 
198 /* Define to 1 if you have the <net/ethernet.h> header file. */
199 #define HAVE_NET_ETHERNET_H 1
200 
201 /* Define to 1 if you have the <net/if.h> header file. */
202 #define HAVE_NET_IF_H 1
203 
204 /* Define to 1 if you have the <openssl/err.h> header file. */
205 #define HAVE_OPENSSL_ERR_H 1
206 
207 /* Define to 1 if you have the `OPENSSL_init_crypto' function. */
208 #define HAVE_OPENSSL_INIT_CRYPTO 1
209 
210 /* Define to 1 if you have the `OPENSSL_init_ssl' function. */
211 /* #undef HAVE_OPENSSL_INIT_SSL */
212 
213 /* Define to 1 if you have the <openssl/rand.h> header file. */
214 #define HAVE_OPENSSL_RAND_H 1
215 
216 /* Define to 1 if you have the <openssl/ssl.h> header file. */
217 #define HAVE_OPENSSL_SSL_H 1
218 
219 /* Define to 1 if you have the <pcap.h> header file. */
220 #define HAVE_PCAP_H 1
221 
222 /* This platform supports poll(7). */
223 #define HAVE_POLL 1
224 
225 /* If available, contains the Python version number currently in use. */
226 /* #undef HAVE_PYTHON */
227 
228 /* Define to 1 if you have the `random' function. */
229 #define HAVE_RANDOM 1
230 
231 /* Define to 1 if your system has a GNU libc compatible `realloc' function,
232  and to 0 otherwise. */
233 #define HAVE_REALLOC 1
234 
235 /* Define to 1 if you have the `sleep' function. */
236 #define HAVE_SLEEP 1
237 
238 /* Define to 1 if you have the `snprintf' function. */
239 #define HAVE_SNPRINTF 1
240 
241 /* Define if you have the SSL libraries installed. */
242 #define HAVE_SSL
243 
244 /* Define to 1 if you have the <stdarg.h> header file. */
245 #define HAVE_STDARG_H 1
246 
247 /* Define to 1 if stdbool.h conforms to C99. */
248 #define HAVE_STDBOOL_H 1
249 
250 /* Define to 1 if you have the <stdint.h> header file. */
251 #define HAVE_STDINT_H 1
252 
253 /* Define to 1 if you have the <stdio.h> header file. */
254 #define HAVE_STDIO_H 1
255 
256 /* Define to 1 if you have the <stdlib.h> header file. */
257 #define HAVE_STDLIB_H 1
258 
259 /* Define to 1 if you have the <strings.h> header file. */
260 #define HAVE_STRINGS_H 1
261 
262 /* Define to 1 if you have the <string.h> header file. */
263 #define HAVE_STRING_H 1
264 
265 /* Define to 1 if you have the `strlcpy' function. */
266 /* #undef HAVE_STRLCPY */
267 
268 /* Define to 1 if you have the `strtoul' function. */
269 #define HAVE_STRTOUL 1
270 
271 /* Define if you have SWIG libraries and header files. */
272 /* #undef HAVE_SWIG */
273 
274 /* Define to 1 if you have the <sys/mount.h> header file. */
275 #define HAVE_SYS_MOUNT_H 1
276 
277 /* Define to 1 if you have the <sys/param.h> header file. */
278 #define HAVE_SYS_PARAM_H 1
279 
280 /* define if you have sys/socket.h */
281 #define HAVE_SYS_SOCKET_H 1
282 
283 /* Define to 1 if you have the <sys/stat.h> header file. */
284 #define HAVE_SYS_STAT_H 1
285 
286 /* define if you have sys/types.h */
287 #define HAVE_SYS_TYPES_H 1
288 
289 /* Define to 1 if you have the `timegm' function. */
290 #define HAVE_TIMEGM 1
291 
292 /* Define to 1 if you have the <time.h> header file. */
293 #define HAVE_TIME_H 1
294 
295 /* define if you have unistd.h */
296 #define HAVE_UNISTD_H 1
297 
298 /* Define to 1 if you have the `vfork' function. */
299 #define HAVE_VFORK 1
300 
301 /* Define to 1 if you have the <vfork.h> header file. */
302 /* #undef HAVE_VFORK_H */
303 
304 /* Define to 1 if you have the <wchar.h> header file. */
305 #define HAVE_WCHAR_H 1
306 
307 /* Define to 1 if you have the <winsock2.h> header file. */
308 /* #undef HAVE_WINSOCK2_H */
309 
310 /* Define to 1 if `fork' works. */
311 #define HAVE_WORKING_FORK 1
312 
313 /* Define to 1 if `vfork' works. */
314 #define HAVE_WORKING_VFORK 1
315 
316 /* Define to 1 if you have the <ws2tcpip.h> header file. */
317 /* #undef HAVE_WS2TCPIP_H */
318 
319 /* Define to 1 if the system has the type `_Bool'. */
320 #define HAVE__BOOL 1
321 
322 /* Is a CAFILE given at configure time */
323 /* #undef LDNS_DANE_CA_FILE */
324 
325 /* Is a CAPATH given at configure time */
326 /* #undef LDNS_DANE_CA_PATH */
327 
328 /* Define to the sub-directory where libtool stores uninstalled libraries. */
329 #define LT_OBJDIR ".libs/"
330 
331 /* Define to the address where bug reports for this package should be sent. */
332 #define PACKAGE_BUGREPORT "libdns@nlnetlabs.nl"
333 
334 /* Define to the full name of this package. */
335 #define PACKAGE_NAME "ldns"
336 
337 /* Define to the full name and version of this package. */
338 #define PACKAGE_STRING "ldns 1.7.1"
339 
340 /* Define to the one symbol short name of this package. */
341 #define PACKAGE_TARNAME "libdns"
342 
343 /* Define to the home page for this package. */
344 #define PACKAGE_URL ""
345 
346 /* Define to the version of this package. */
347 #define PACKAGE_VERSION "1.7.1"
348 
349 /* Define this to enable RR type AMTRELAY. */
350 /* #undef RRTYPE_AMTRELAY */
351 
352 /* Define this to enable RR type AVC. */
353 /* #undef RRTYPE_AVC */
354 
355 /* Define this to enable RR type DOA. */
356 /* #undef RRTYPE_DOA */
357 
358 /* Define this to enable RR type NINFO. */
359 /* #undef RRTYPE_NINFO */
360 
361 /* Define this to enable RR type OPENPGPKEY. */
362 #define RRTYPE_OPENPGPKEY
363 
364 /* Define this to enable RR type RKEY. */
365 /* #undef RRTYPE_RKEY */
366 
367 /* Define this to enable RR type TA. */
368 /* #undef RRTYPE_TA */
369 
370 /* The size of `time_t', as computed by sizeof. */
371 #define SIZEOF_TIME_T 8
372 
373 /* Define to 1 if all of the C90 standard headers exist (not just the ones
374  required in a freestanding environment). This macro is provided for
375  backward compatibility; new code need not use it. */
376 #define STDC_HEADERS 1
377 
378 /* Define this to enable messages to stderr. */
379 /* #undef STDERR_MSGS */
380 
381 /* System configuration dir */
382 #define SYSCONFDIR sysconfdir
383 
384 /* Define this to enable DANE support. */
385 #define USE_DANE 1
386 
387 /* Define this to enable DANE-TA usage type support. */
388 #define USE_DANE_TA_USAGE 1
389 
390 /* Define this to enable DANE verify support. */
391 #define USE_DANE_VERIFY 1
392 
393 /* Define this to enable DSA support. */
394 #define USE_DSA 1
395 
396 /* Define this to enable ECDSA support. */
397 #define USE_ECDSA 1
398 
399 /* Define this to enable ED25519 support. */
400 #define USE_ED25519 1
401 
402 /* Define this to enable ED448 support. */
403 #define USE_ED448 1
404 
405 /* Define this to enable GOST support. */
406 #define USE_GOST 1
407 
408 /* Define this to enable SHA256 and SHA512 support. */
409 #define USE_SHA2 1
410 
411 /* Enable extensions on AIX 3, Interix. */
412 #ifndef _ALL_SOURCE
413 # define _ALL_SOURCE 1
414 #endif
415 /* Enable general extensions on macOS. */
416 #ifndef _DARWIN_C_SOURCE
417 # define _DARWIN_C_SOURCE 1
418 #endif
419 /* Enable general extensions on Solaris. */
420 #ifndef __EXTENSIONS__
421 # define __EXTENSIONS__ 1
422 #endif
423 /* Enable GNU extensions on systems that have them. */
424 #ifndef _GNU_SOURCE
425 # define _GNU_SOURCE 1
426 #endif
427 /* Enable X/Open compliant socket functions that do not require linking
428  with -lxnet on HP-UX 11.11. */
429 #ifndef _HPUX_ALT_XOPEN_SOCKET_API
430 # define _HPUX_ALT_XOPEN_SOCKET_API 1
431 #endif
432 /* Identify the host operating system as Minix.
433  This macro does not affect the system headers' behavior.
434  A future release of Autoconf may stop defining this macro. */
435 #ifndef _MINIX
436 /* # undef _MINIX */
437 #endif
438 /* Enable general extensions on NetBSD.
439  Enable NetBSD compatibility extensions on Minix. */
440 #ifndef _NETBSD_SOURCE
441 # define _NETBSD_SOURCE 1
442 #endif
443 /* Enable OpenBSD compatibility extensions on NetBSD.
444  Oddly enough, this does nothing on OpenBSD. */
445 #ifndef _OPENBSD_SOURCE
446 # define _OPENBSD_SOURCE 1
447 #endif
448 /* Define to 1 if needed for POSIX-compatible behavior. */
449 #ifndef _POSIX_SOURCE
450 /* # undef _POSIX_SOURCE */
451 #endif
452 /* Define to 2 if needed for POSIX-compatible behavior. */
453 #ifndef _POSIX_1_SOURCE
454 /* # undef _POSIX_1_SOURCE */
455 #endif
456 /* Enable POSIX-compatible threading on Solaris. */
457 #ifndef _POSIX_PTHREAD_SEMANTICS
458 # define _POSIX_PTHREAD_SEMANTICS 1
459 #endif
460 /* Enable extensions specified by ISO/IEC TS 18661-5:2014. */
461 #ifndef __STDC_WANT_IEC_60559_ATTRIBS_EXT__
462 # define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1
463 #endif
464 /* Enable extensions specified by ISO/IEC TS 18661-1:2014. */
465 #ifndef __STDC_WANT_IEC_60559_BFP_EXT__
466 # define __STDC_WANT_IEC_60559_BFP_EXT__ 1
467 #endif
468 /* Enable extensions specified by ISO/IEC TS 18661-2:2015. */
469 #ifndef __STDC_WANT_IEC_60559_DFP_EXT__
470 # define __STDC_WANT_IEC_60559_DFP_EXT__ 1
471 #endif
472 /* Enable extensions specified by ISO/IEC TS 18661-4:2015. */
473 #ifndef __STDC_WANT_IEC_60559_FUNCS_EXT__
474 # define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1
475 #endif
476 /* Enable extensions specified by ISO/IEC TS 18661-3:2015. */
477 #ifndef __STDC_WANT_IEC_60559_TYPES_EXT__
478 # define __STDC_WANT_IEC_60559_TYPES_EXT__ 1
479 #endif
480 /* Enable extensions specified by ISO/IEC TR 24731-2:2010. */
481 #ifndef __STDC_WANT_LIB_EXT2__
482 # define __STDC_WANT_LIB_EXT2__ 1
483 #endif
484 /* Enable extensions specified by ISO/IEC 24747:2009. */
485 #ifndef __STDC_WANT_MATH_SPEC_FUNCS__
486 # define __STDC_WANT_MATH_SPEC_FUNCS__ 1
487 #endif
488 /* Enable extensions on HP NonStop. */
489 #ifndef _TANDEM_SOURCE
490 # define _TANDEM_SOURCE 1
491 #endif
492 /* Enable X/Open extensions. Define to 500 only if necessary
493  to make mbstate_t available. */
494 #ifndef _XOPEN_SOURCE
495 /* # undef _XOPEN_SOURCE */
496 #endif
497 
498 
499 /* Whether the windows socket API is used */
500 /* #undef USE_WINSOCK */
501 
502 /* the version of the windows API enabled */
503 #define WINVER 0x0502
504 
505 /* Define WORDS_BIGENDIAN to 1 if your processor stores words with the most
506  significant byte first (like Motorola and SPARC, unlike Intel). */
507 #if defined AC_APPLE_UNIVERSAL_BUILD
508 # if defined __BIG_ENDIAN__
509 # define WORDS_BIGENDIAN 1
510 # endif
511 #else
512 # ifndef WORDS_BIGENDIAN
513 # define WORDS_BIGENDIAN 1
514 # endif
515 #endif
516 
517 /* Enable for compile on Minix */
518 #define _NETBSD_SOURCE 1
519 
520 /* Define to empty if `const' does not conform to ANSI C. */
521 /* #undef const */
522 
523 /* in_addr_t */
524 /* #undef in_addr_t */
525 
526 /* in_port_t */
527 /* #undef in_port_t */
528 
529 /* Define to `__inline__' or `__inline' if that's what the C compiler
530  calls it, or to nothing if 'inline' is not supported under any name. */
531 #ifndef __cplusplus
532 /* #undef inline */
533 #endif
534 
535 /* Define to `short' if <sys/types.h> does not define. */
536 /* #undef int16_t */
537 
538 /* Define to `int' if <sys/types.h> does not define. */
539 /* #undef int32_t */
540 
541 /* Define to `long long' if <sys/types.h> does not define. */
542 /* #undef int64_t */
543 
544 /* Define to `char' if <sys/types.h> does not define. */
545 /* #undef int8_t */
546 
547 /* Define to `size_t' if <sys/types.h> does not define. */
548 /* #undef intptr_t */
549 
550 /* Define to rpl_malloc if the replacement function should be used. */
551 /* #undef malloc */
552 
553 /* Define as a signed integer type capable of holding a process identifier. */
554 /* #undef pid_t */
555 
556 /* Define to rpl_realloc if the replacement function should be used. */
557 /* #undef realloc */
558 
559 /* Define to `unsigned int' if <sys/types.h> does not define. */
560 /* #undef size_t */
561 
562 /* Define to 'int' if not defined */
563 /* #undef socklen_t */
564 
565 /* Fallback member name for socket family in struct sockaddr_storage */
566 /* #undef ss_family */
567 
568 /* Define to `int' if <sys/types.h> does not define. */
569 /* #undef ssize_t */
570 
571 /* Define to `unsigned short' if <sys/types.h> does not define. */
572 /* #undef uint16_t */
573 
574 /* Define to `unsigned int' if <sys/types.h> does not define. */
575 /* #undef uint32_t */
576 
577 /* Define to `unsigned long long' if <sys/types.h> does not define. */
578 /* #undef uint64_t */
579 
580 /* Define to `unsigned char' if <sys/types.h> does not define. */
581 /* #undef uint8_t */
582 
583 /* Define as `fork' if `vfork' does not work. */
584 /* #undef vfork */
585 
586 
587 #include <stdio.h>
588 #include <string.h>
589 #include <unistd.h>
590 #include <assert.h>
591 
592 #ifndef LITTLE_ENDIAN
593 #define LITTLE_ENDIAN 1234
594 #endif
595 
596 #ifndef BIG_ENDIAN
597 #define BIG_ENDIAN 4321
598 #endif
599 
600 #ifndef BYTE_ORDER
601 #ifdef WORDS_BIGENDIAN
602 #define BYTE_ORDER BIG_ENDIAN
603 #else
604 #define BYTE_ORDER LITTLE_ENDIAN
605 #endif /* WORDS_BIGENDIAN */
606 #endif /* BYTE_ORDER */
607 
608 #if STDC_HEADERS
609 #include <stdlib.h>
610 #include <stddef.h>
611 #endif
612 
613 #ifdef HAVE_STDINT_H
614 #include <stdint.h>
615 #endif
616 
617 #ifdef HAVE_SYS_SOCKET_H
618 #include <sys/socket.h>
619 #endif
620 
621 #ifdef HAVE_NETINET_IN_H
622 #include <netinet/in.h>
623 #endif
624 
625 #ifdef HAVE_ARPA_INET_H
626 #include <arpa/inet.h>
627 #endif
628 
629 #ifdef HAVE_WINSOCK2_H
630 #include <winsock2.h>
631 #endif
632 
633 #ifdef HAVE_WS2TCPIP_H
634 #include <ws2tcpip.h>
635 #endif
636 
637 
638 /* detect if we need to cast to unsigned int for FD_SET to avoid warnings */
639 #ifdef HAVE_WINSOCK2_H
640 #define FD_SET_T (u_int)
641 #else
642 #define FD_SET_T
643 #endif
644 
645 
646 
647 
648 #ifdef __cplusplus
649 extern "C" {
650 #endif
651 
652 int ldns_b64_ntop(uint8_t const *src, size_t srclength,
653  char *target, size_t targsize);
657 /*@unused@*/
658 static inline size_t ldns_b64_ntop_calculate_size(size_t srcsize)
659 {
660  return ((((srcsize + 2) / 3) * 4) + 1);
661 }
662 int ldns_b64_pton(char const *src, uint8_t *target, size_t targsize);
666 /*@unused@*/
667 static inline size_t ldns_b64_pton_calculate_size(size_t srcsize)
668 {
669  return (((((srcsize + 3) / 4) * 3)) + 1);
670 }
671 
676 int ldns_dname_compare_v(const void *a, const void *b);
677 
678 #ifndef HAVE_SLEEP
679 /* use windows sleep, in millisecs, instead */
680 #define sleep(x) Sleep((x)*1000)
681 #endif
682 
683 #ifndef HAVE_RANDOM
684 #define srandom(x) srand(x)
685 #define random(x) rand(x)
686 #endif
687 
688 #ifndef HAVE_TIMEGM
689 #include <time.h>
690 time_t timegm (struct tm *tm);
691 #endif /* !TIMEGM */
692 #ifndef HAVE_GMTIME_R
693 struct tm *gmtime_r(const time_t *timep, struct tm *result);
694 #endif
695 #ifndef HAVE_LOCALTIME_R
696 struct tm *localtime_r(const time_t *timep, struct tm *result);
697 #endif
698 #ifndef HAVE_ISBLANK
699 int isblank(int c);
700 #endif /* !HAVE_ISBLANK */
701 #ifndef HAVE_ISASCII
702 int isascii(int c);
703 #endif /* !HAVE_ISASCII */
704 #ifndef HAVE_SNPRINTF
705 #include <stdarg.h>
706 int snprintf (char *str, size_t count, const char *fmt, ...);
707 int vsnprintf (char *str, size_t count, const char *fmt, va_list arg);
708 #endif /* HAVE_SNPRINTF */
709 #ifndef HAVE_INET_PTON
710 int inet_pton(int af, const char* src, void* dst);
711 #endif /* HAVE_INET_PTON */
712 #ifndef HAVE_INET_NTOP
713 const char *inet_ntop(int af, const void *src, char *dst, size_t size);
714 #endif
715 #ifndef HAVE_INET_ATON
716 int inet_aton(const char *cp, struct in_addr *addr);
717 #endif
718 #ifndef HAVE_MEMMOVE
719 void *memmove(void *dest, const void *src, size_t n);
720 #endif
721 #ifndef HAVE_STRLCPY
722 size_t strlcpy(char *dst, const char *src, size_t siz);
723 #endif
724 
725 #ifdef USE_WINSOCK
726 #define SOCK_INVALID INVALID_SOCKET
727 #define close_socket(_s) do { if (_s != SOCK_INVALID) {closesocket(_s); _s = -1;} } while(0)
728 #else
729 #define SOCK_INVALID -1
730 #define close_socket(_s) do { if (_s != SOCK_INVALID) {close(_s); _s = -1;} } while(0)
731 #endif
732 
733 #ifdef __cplusplus
734 }
735 #endif
736 #ifndef HAVE_GETADDRINFO
737 #include "compat/fake-rfc2553.h"
738 #endif
739 #ifndef HAVE_STRTOUL
740 #define strtoul (unsigned long)strtol
741 #endif
742 
int ldns_b64_ntop(uint8_t const *src, size_t srclength, char *target, size_t targsize)
int ldns_b64_pton(char const *src, uint8_t *target, size_t targsize)
int ldns_dname_compare_v(const void *a, const void *b)
Given in dnssec_zone.c, also used in dnssec_sign.c:w.
Definition: dnssec_zone.c:828
size_t strlcpy(char *dst, const char *src, size_t siz)