1 /* config.h.in. Generated from configure.ac by autoheader. */
3 /* Directory to chroot to */
6 /* Pathname to the Unbound configuration file */
9 /* Define this if on macOSX10.4-darwin8 and setreuid and setregid do not work
11 #undef DARWIN_BROKEN_SETREUID
13 /* Whether daemon is deprecated */
14 #undef DEPRECATED_DAEMON
16 /* Define if you want to use debug lock checking (slow). */
17 #undef ENABLE_LOCK_CHECKS
19 /* Define this if you enabled-allsymbols from libunbound to link binaries to
20 it for smaller install size, but the libunbound export table is polluted by
22 #undef EXPORT_ALL_SYMBOLS
24 /* Define to 1 if you have the <arpa/inet.h> header file. */
25 #undef HAVE_ARPA_INET_H
27 /* Whether the C compiler accepts the "format" attribute */
28 #undef HAVE_ATTR_FORMAT
30 /* Whether the C compiler accepts the "unused" attribute */
31 #undef HAVE_ATTR_UNUSED
33 /* Define to 1 if your system has a working `chown' function. */
36 /* Define to 1 if you have the `chroot' function. */
39 /* Define to 1 if you have the `ctime_r' function. */
42 /* Define to 1 if you have the `daemon' function. */
45 /* Define to 1 if you have the declaration of `NID_secp384r1', and to 0 if you
47 #undef HAVE_DECL_NID_SECP384R1
49 /* Define to 1 if you have the declaration of `NID_X9_62_prime256v1', and to 0
51 #undef HAVE_DECL_NID_X9_62_PRIME256V1
53 /* Define to 1 if you have the declaration of `sk_SSL_COMP_pop_free', and to 0
55 #undef HAVE_DECL_SK_SSL_COMP_POP_FREE
57 /* Define to 1 if you have the declaration of
58 `SSL_COMP_get_compression_methods', and to 0 if you don't. */
59 #undef HAVE_DECL_SSL_COMP_GET_COMPRESSION_METHODS
61 /* Define to 1 if you have the <dlfcn.h> header file. */
64 /* Define to 1 if you have the `endprotoent' function. */
65 #undef HAVE_ENDPROTOENT
67 /* Define to 1 if you have the `endservent' function. */
68 #undef HAVE_ENDSERVENT
70 /* Define to 1 if you have the `event_base_free' function. */
71 #undef HAVE_EVENT_BASE_FREE
73 /* Define to 1 if you have the `event_base_get_method' function. */
74 #undef HAVE_EVENT_BASE_GET_METHOD
76 /* Define to 1 if you have the `event_base_new' function. */
77 #undef HAVE_EVENT_BASE_NEW
79 /* Define to 1 if you have the `event_base_once' function. */
80 #undef HAVE_EVENT_BASE_ONCE
82 /* Define to 1 if you have the <event.h> header file. */
85 /* Define to 1 if you have the `EVP_sha1' function. */
88 /* Define to 1 if you have the `EVP_sha256' function. */
89 #undef HAVE_EVP_SHA256
91 /* Define to 1 if you have the `EVP_sha512' function. */
92 #undef HAVE_EVP_SHA512
94 /* Define to 1 if you have the `ev_default_loop' function. */
95 #undef HAVE_EV_DEFAULT_LOOP
97 /* Define to 1 if you have the `ev_loop' function. */
100 /* Define to 1 if you have the <expat.h> header file. */
103 /* Define to 1 if you have the `fcntl' function. */
106 /* Define to 1 if you have the `FIPS_mode' function. */
107 #undef HAVE_FIPS_MODE
109 /* Define to 1 if you have the `fork' function. */
112 /* Define to 1 if fseeko (and presumably ftello) exists and is declared. */
115 /* Whether getaddrinfo is available */
116 #undef HAVE_GETADDRINFO
118 /* Define to 1 if you have the <getopt.h> header file. */
121 /* Define to 1 if you have the `getpwnam' function. */
124 /* Define to 1 if you have the `getrlimit' function. */
125 #undef HAVE_GETRLIMIT
127 /* Define to 1 if you have the `glob' function. */
130 /* Define to 1 if you have the <glob.h> header file. */
133 /* Define to 1 if you have the `gmtime_r' function. */
136 /* Define to 1 if you have the <grp.h> header file. */
139 /* If you have HMAC_CTX_init */
140 #undef HAVE_HMAC_CTX_INIT
142 /* Define to 1 if you have the `inet_aton' function. */
143 #undef HAVE_INET_ATON
145 /* Define to 1 if you have the `inet_ntop' function. */
146 #undef HAVE_INET_NTOP
148 /* Define to 1 if you have the `inet_pton' function. */
149 #undef HAVE_INET_PTON
151 /* Define to 1 if you have the `initgroups' function. */
152 #undef HAVE_INITGROUPS
154 /* Define to 1 if you have the <inttypes.h> header file. */
155 #undef HAVE_INTTYPES_H
157 /* if the function 'ioctlsocket' is available */
158 #undef HAVE_IOCTLSOCKET
160 /* Define to 1 if you have the <iphlpapi.h> header file. */
161 #undef HAVE_IPHLPAPI_H
163 /* Define to 1 if you have the `kill' function. */
166 /* Define to 1 if you have the `localtime_r' function. */
167 #undef HAVE_LOCALTIME_R
169 /* Define to 1 if you have the <login_cap.h> header file. */
170 #undef HAVE_LOGIN_CAP_H
172 /* If have GNU libc compatible malloc */
175 /* Define to 1 if you have the `memmove' function. */
178 /* Define to 1 if you have the <memory.h> header file. */
181 /* Define to 1 if you have the <netdb.h> header file. */
184 /* Define to 1 if you have the <netinet/in.h> header file. */
185 #undef HAVE_NETINET_IN_H
187 /* Use libnss for crypto */
190 /* Define to 1 if you have the `OPENSSL_config' function. */
191 #undef HAVE_OPENSSL_CONFIG
193 /* Define to 1 if you have the <openssl/conf.h> header file. */
194 #undef HAVE_OPENSSL_CONF_H
196 /* Define to 1 if you have the <openssl/engine.h> header file. */
197 #undef HAVE_OPENSSL_ENGINE_H
199 /* Define to 1 if you have the <openssl/err.h> header file. */
200 #undef HAVE_OPENSSL_ERR_H
202 /* Define to 1 if you have the <openssl/rand.h> header file. */
203 #undef HAVE_OPENSSL_RAND_H
205 /* Define to 1 if you have the <openssl/ssl.h> header file. */
206 #undef HAVE_OPENSSL_SSL_H
208 /* Define if you have POSIX threads libraries and header files. */
211 /* Have PTHREAD_PRIO_INHERIT. */
212 #undef HAVE_PTHREAD_PRIO_INHERIT
214 /* Define to 1 if the system has the type `pthread_rwlock_t'. */
215 #undef HAVE_PTHREAD_RWLOCK_T
217 /* Define to 1 if the system has the type `pthread_spinlock_t'. */
218 #undef HAVE_PTHREAD_SPINLOCK_T
220 /* Define to 1 if you have the <pwd.h> header file. */
223 /* Define if you have Python libraries and header files. */
226 /* Define to 1 if you have the `random' function. */
229 /* Define to 1 if you have the `recvmsg' function. */
232 /* Define to 1 if you have the `sbrk' function. */
235 /* Define to 1 if you have the `sendmsg' function. */
238 /* Define to 1 if you have the `setregid' function. */
241 /* Define to 1 if you have the `setresgid' function. */
242 #undef HAVE_SETRESGID
244 /* Define to 1 if you have the `setresuid' function. */
245 #undef HAVE_SETRESUID
247 /* Define to 1 if you have the `setreuid' function. */
250 /* Define to 1 if you have the `setrlimit' function. */
251 #undef HAVE_SETRLIMIT
253 /* Define to 1 if you have the `setsid' function. */
256 /* Define to 1 if you have the `setusercontext' function. */
257 #undef HAVE_SETUSERCONTEXT
259 /* Define to 1 if you have the `sigprocmask' function. */
260 #undef HAVE_SIGPROCMASK
262 /* Define to 1 if you have the `sleep' function. */
265 /* Define to 1 if you have the `snprintf' function. */
268 /* Define to 1 if you have the `socketpair' function. */
269 #undef HAVE_SOCKETPAIR
271 /* Using Solaris threads */
272 #undef HAVE_SOLARIS_THREADS
274 /* Define to 1 if you have the `srandom' function. */
277 /* Define if you have the SSL libraries installed. */
280 /* Define to 1 if you have the <stdarg.h> header file. */
283 /* Define to 1 if you have the <stdbool.h> header file. */
284 #undef HAVE_STDBOOL_H
286 /* Define to 1 if you have the <stdint.h> header file. */
289 /* Define to 1 if you have the <stdlib.h> header file. */
292 /* Define to 1 if you have the `strftime' function. */
295 /* Define to 1 if you have the <strings.h> header file. */
296 #undef HAVE_STRINGS_H
298 /* Define to 1 if you have the <string.h> header file. */
301 /* Define to 1 if you have the `strlcat' function. */
304 /* Define to 1 if you have the `strlcpy' function. */
307 /* Define to 1 if you have the `strptime' function. */
310 /* Define to 1 if `ipi_spec_dst' is a member of `struct in_pktinfo'. */
311 #undef HAVE_STRUCT_IN_PKTINFO_IPI_SPEC_DST
313 /* Define if you have Swig libraries and header files. */
316 /* Define to 1 if you have the <syslog.h> header file. */
319 /* Define to 1 if you have the <sys/param.h> header file. */
320 #undef HAVE_SYS_PARAM_H
322 /* Define to 1 if you have the <sys/resource.h> header file. */
323 #undef HAVE_SYS_RESOURCE_H
325 /* Define to 1 if you have the <sys/socket.h> header file. */
326 #undef HAVE_SYS_SOCKET_H
328 /* Define to 1 if you have the <sys/stat.h> header file. */
329 #undef HAVE_SYS_STAT_H
331 /* Define to 1 if you have the <sys/types.h> header file. */
332 #undef HAVE_SYS_TYPES_H
334 /* Define to 1 if you have the <sys/uio.h> header file. */
335 #undef HAVE_SYS_UIO_H
337 /* Define to 1 if you have the <sys/wait.h> header file. */
338 #undef HAVE_SYS_WAIT_H
340 /* Define to 1 if you have the <time.h> header file. */
343 /* Define to 1 if you have the `tzset' function. */
346 /* Define to 1 if you have the <unistd.h> header file. */
349 /* Define to 1 if you have the `usleep' function. */
352 /* Define to 1 if you have the `vfork' function. */
355 /* Define to 1 if you have the <vfork.h> header file. */
358 /* Define to 1 if you have the <windows.h> header file. */
359 #undef HAVE_WINDOWS_H
361 /* Using Windows threads */
362 #undef HAVE_WINDOWS_THREADS
364 /* Define to 1 if you have the <winsock2.h> header file. */
365 #undef HAVE_WINSOCK2_H
367 /* Define to 1 if `fork' works. */
368 #undef HAVE_WORKING_FORK
370 /* Define to 1 if `vfork' works. */
371 #undef HAVE_WORKING_VFORK
373 /* Define to 1 if you have the `writev' function. */
376 /* Define to 1 if you have the <ws2tcpip.h> header file. */
377 #undef HAVE_WS2TCPIP_H
379 /* Define to 1 if you have the `_beginthreadex' function. */
380 #undef HAVE__BEGINTHREADEX
382 /* if lex has yylex_destroy */
383 #undef LEX_HAS_YYLEX_DESTROY
385 /* Define to the sub-directory in which libtool stores uninstalled libraries.
389 /* Define to the maximum message length to pass to syslog. */
390 #undef MAXSYSLOGMSGLEN
392 /* Define if memcmp() does not compare unsigned bytes */
393 #undef MEMCMP_IS_BROKEN
395 /* Define if mkdir has one argument. */
396 #undef MKDIR_HAS_ONE_ARG
398 /* Define if the network stack does not fully support nonblocking io (causes
399 lower performance). */
400 #undef NONBLOCKING_IS_BROKEN
402 /* Put -D_ALL_SOURCE define in config.h */
403 #undef OMITTED__D_ALL_SOURCE
405 /* Put -D_BSD_SOURCE define in config.h */
406 #undef OMITTED__D_BSD_SOURCE
408 /* Put -D_GNU_SOURCE define in config.h */
409 #undef OMITTED__D_GNU_SOURCE
411 /* Put -D_LARGEFILE_SOURCE=1 define in config.h */
412 #undef OMITTED__D_LARGEFILE_SOURCE_1
414 /* Put -D_POSIX_C_SOURCE=200112 define in config.h */
415 #undef OMITTED__D_POSIX_C_SOURCE_200112
417 /* Put -D_XOPEN_SOURCE=600 define in config.h */
418 #undef OMITTED__D_XOPEN_SOURCE_600
420 /* Put -D_XOPEN_SOURCE_EXTENDED=1 define in config.h */
421 #undef OMITTED__D_XOPEN_SOURCE_EXTENDED_1
423 /* Put -D__EXTENSIONS__ define in config.h */
424 #undef OMITTED__D__EXTENSIONS__
426 /* Define to the address where bug reports for this package should be sent. */
427 #undef PACKAGE_BUGREPORT
429 /* Define to the full name of this package. */
432 /* Define to the full name and version of this package. */
433 #undef PACKAGE_STRING
435 /* Define to the one symbol short name of this package. */
436 #undef PACKAGE_TARNAME
438 /* Define to the home page for this package. */
441 /* Define to the version of this package. */
442 #undef PACKAGE_VERSION
444 /* default pidfile location */
447 /* Define to necessary symbol if this constant uses a non-standard name on
449 #undef PTHREAD_CREATE_JOINABLE
451 /* Define as the return type of signal handlers (`int' or `void'). */
454 /* default rootkey location */
455 #undef ROOT_ANCHOR_FILE
457 /* default rootcert location */
458 #undef ROOT_CERT_FILE
460 /* version number for resource files */
461 #undef RSRC_PACKAGE_VERSION
463 /* Directory to chdir to */
469 /* The size of `time_t', as computed by sizeof. */
472 /* Define to 1 if you have the ANSI C header files. */
475 /* use default strptime. */
476 #undef STRPTIME_WORKS
478 /* Use win32 resources and API */
481 /* default username */
484 /* use to enable lightweight alloc assertions, for debug use */
485 #undef UNBOUND_ALLOC_LITE
487 /* use malloc not regions, for debug use */
488 #undef UNBOUND_ALLOC_NONREGIONAL
490 /* use statistics for allocs and frees, for debug use */
491 #undef UNBOUND_ALLOC_STATS
493 /* define this to enable debug checks. */
496 /* Define this to enable ECDSA support. */
499 /* Define this to enable an EVP workaround for older openssl */
500 #undef USE_ECDSA_EVP_WORKAROUND
502 /* Define this to enable GOST support. */
505 /* Define if you want to use internal select based events */
506 #undef USE_MINI_EVENT
508 /* Define this to enable SHA256 and SHA512 support. */
511 /* Enable extensions on AIX 3, Interix. */
515 /* Enable GNU extensions on systems that have them. */
519 /* Enable threading extensions on Solaris. */
520 #ifndef _POSIX_PTHREAD_SEMANTICS
521 # undef _POSIX_PTHREAD_SEMANTICS
523 /* Enable extensions on HP NonStop. */
524 #ifndef _TANDEM_SOURCE
525 # undef _TANDEM_SOURCE
527 /* Enable general extensions on Solaris. */
528 #ifndef __EXTENSIONS__
529 # undef __EXTENSIONS__
533 /* Whether the windows socket API is used */
536 /* the version of the windows API enabled */
539 /* Define if you want Python module. */
540 #undef WITH_PYTHONMODULE
542 /* Define if you want PyUnbound. */
543 #undef WITH_PYUNBOUND
545 /* Define to 1 if `lex' declares `yytext' as a `char *' by default, not a
547 #undef YYTEXT_POINTER
549 /* Enable large inode numbers on Mac OS X 10.5. */
550 #ifndef _DARWIN_USE_64_BIT_INODE
551 # define _DARWIN_USE_64_BIT_INODE 1
554 /* Number of bits in a file offset, on hosts where this is settable. */
555 #undef _FILE_OFFSET_BITS
557 /* Define to 1 to make fseeko visible on some hosts (e.g. glibc 2.2). */
558 #undef _LARGEFILE_SOURCE
560 /* Define for large files, on AIX-style hosts. */
563 /* Define to 1 if on MINIX. */
566 /* Enable for compile on Minix */
567 #undef _NETBSD_SOURCE
569 /* Define to 2 if the system does not provide POSIX.1 features except with
571 #undef _POSIX_1_SOURCE
573 /* Define to 1 if you need to in order for `stat' and other things to work. */
576 /* Define to empty if `const' does not conform to ANSI C. */
579 /* Define to `int' if <sys/types.h> doesn't define. */
588 /* Define to `__inline__' or `__inline' if that's what the C compiler
589 calls it, or to nothing if 'inline' is not supported under any name. */
594 /* Define to `short' if <sys/types.h> does not define. */
597 /* Define to `int' if <sys/types.h> does not define. */
600 /* Define to `long long' if <sys/types.h> does not define. */
603 /* Define to `signed char' if <sys/types.h> does not define. */
606 /* Define if replacement function should be used. */
609 /* Define to `long int' if <sys/types.h> does not define. */
612 /* Define to `int' if <sys/types.h> does not define. */
615 /* Define to 'int' if not defined */
618 /* Define to `unsigned int' if <sys/types.h> does not define. */
621 /* Define to 'int' if not defined */
624 /* Define to `int' if <sys/types.h> does not define. */
627 /* Define to 'unsigned char if not defined */
630 /* Define to `int' if <sys/types.h> doesn't define. */
633 /* Define to `unsigned short' if <sys/types.h> does not define. */
636 /* Define to `unsigned int' if <sys/types.h> does not define. */
639 /* Define to `unsigned long long' if <sys/types.h> does not define. */
642 /* Define to `unsigned char' if <sys/types.h> does not define. */
645 /* Define as `fork' if `vfork' does not work. */
648 #if defined(OMITTED__D_GNU_SOURCE) && !defined(_GNU_SOURCE)
649 #define _GNU_SOURCE 1
652 #if defined(OMITTED__D_BSD_SOURCE) && !defined(_BSD_SOURCE)
653 #define _BSD_SOURCE 1
656 #if defined(OMITTED__D__EXTENSIONS__) && !defined(__EXTENSIONS__)
657 #define __EXTENSIONS__ 1
660 #if defined(OMITTED__D_POSIX_C_SOURCE_200112) && !defined(_POSIX_C_SOURCE)
661 #define _POSIX_C_SOURCE 200112
664 #if defined(OMITTED__D_XOPEN_SOURCE_600) && !defined(_XOPEN_SOURCE)
665 #define _XOPEN_SOURCE 600
668 #if defined(OMITTED__D_XOPEN_SOURCE_EXTENDED_1) && !defined(_XOPEN_SOURCE_EXTENDED)
669 #define _XOPEN_SOURCE_EXTENDED 1
672 #if defined(OMITTED__D_ALL_SOURCE) && !defined(_ALL_SOURCE)
673 #define _ALL_SOURCE 1
676 #if defined(OMITTED__D_LARGEFILE_SOURCE_1) && !defined(_LARGEFILE_SOURCE)
677 #define _LARGEFILE_SOURCE 1
683 #ifndef UNBOUND_DEBUG
687 /** Use small-ldns codebase */
690 # define LDNS_BUILD_CONFIG_HAVE_SSL 1
714 #include <sys/param.h>
717 #ifdef HAVE_SYS_SOCKET_H
718 #include <sys/socket.h>
721 #ifdef HAVE_SYS_UIO_H
725 #ifdef HAVE_NETINET_IN_H
726 #include <netinet/in.h>
729 #ifdef HAVE_ARPA_INET_H
730 #include <arpa/inet.h>
733 #ifdef HAVE_WINSOCK2_H
734 #include <winsock2.h>
737 #ifdef HAVE_WS2TCPIP_H
738 #include <ws2tcpip.h>
744 #define ARG_LL "%I64"
749 #ifdef HAVE_ATTR_FORMAT
750 # define ATTR_FORMAT(archetype, string_index, first_to_check) \
751 __attribute__ ((format (archetype, string_index, first_to_check)))
752 #else /* !HAVE_ATTR_FORMAT */
753 # define ATTR_FORMAT(archetype, string_index, first_to_check) /* empty */
754 #endif /* !HAVE_ATTR_FORMAT */
758 # define ATTR_UNUSED(x) x
759 #elif defined(__cplusplus)
760 # define ATTR_UNUSED(x)
761 #elif defined(HAVE_ATTR_UNUSED)
762 # define ATTR_UNUSED(x) x __attribute__((unused))
763 #else /* !HAVE_ATTR_UNUSED */
764 # define ATTR_UNUSED(x) x
765 #endif /* !HAVE_ATTR_UNUSED */
771 #endif /* HAVE_FSEEKO */
774 #ifndef MAXHOSTNAMELEN
775 #define MAXHOSTNAMELEN 256
779 #ifndef HAVE_SNPRINTF
780 #define snprintf snprintf_unbound
781 #define vsnprintf vsnprintf_unbound
783 int snprintf (char *str, size_t count, const char *fmt, ...);
784 int vsnprintf (char *str, size_t count, const char *fmt, va_list arg);
785 #endif /* HAVE_SNPRINTF */
788 #ifndef HAVE_INET_PTON
789 #define inet_pton inet_pton_unbound
790 int inet_pton(int af, const char* src, void* dst);
791 #endif /* HAVE_INET_PTON */
794 #ifndef HAVE_INET_NTOP
795 #define inet_ntop inet_ntop_unbound
796 const char *inet_ntop(int af, const void *src, char *dst, size_t size);
800 #ifndef HAVE_INET_ATON
801 #define inet_aton inet_aton_unbound
802 int inet_aton(const char *cp, struct in_addr *addr);
807 #define memmove memmove_unbound
808 void *memmove(void *dest, const void *src, size_t n);
813 #define strlcat strlcat_unbound
814 size_t strlcat(char *dst, const char *src, size_t siz);
819 #define strlcpy strlcpy_unbound
820 size_t strlcpy(char *dst, const char *src, size_t siz);
824 #ifndef HAVE_GMTIME_R
825 #define gmtime_r gmtime_r_unbound
826 struct tm *gmtime_r(const time_t *timep, struct tm *result);
830 #if !defined(HAVE_SLEEP) || defined(HAVE_WINDOWS_H)
831 #define sleep(x) Sleep((x)*1000) /* on win32 */
832 #endif /* HAVE_SLEEP */
836 #define usleep(x) Sleep((x)/1000 + 1) /* on win32 */
837 #endif /* HAVE_USLEEP */
841 #define random rand /* on win32, for tests only (bad random) */
842 #endif /* HAVE_RANDOM */
846 #define srandom(x) srand(x) /* on win32, for tests only (bad random) */
847 #endif /* HAVE_SRANDOM */
850 /* detect if we need to cast to unsigned int for FD_SET to avoid warnings */
851 #ifdef HAVE_WINSOCK2_H
852 #define FD_SET_T (u_int)
859 #define IPV6_MIN_MTU 1280
860 #endif /* IPV6_MIN_MTU */
863 #ifdef MEMCMP_IS_BROKEN
864 #include "compat/memcmp.h"
865 #define memcmp memcmp_unbound
866 int memcmp(const void *x, const void *y, size_t n);
872 #define ctime_r unbound_ctime_r
873 char *ctime_r(const time_t *timep, char *buf);
876 #if !defined(HAVE_STRPTIME) || !defined(STRPTIME_WORKS)
877 #define strptime unbound_strptime
879 char *strptime(const char *s, const char *format, struct tm *tm);
882 #if defined(HAVE_EVENT_H) && !defined(HAVE_EVENT_BASE_ONCE) && !(defined(HAVE_EV_LOOP) || defined(HAVE_EV_DEFAULT_LOOP)) && (defined(HAVE_PTHREAD) || defined(HAVE_SOLARIS_THREADS))
883 /* using version of libevent that is not threadsafe. */
884 # define LIBEVENT_SIGNAL_PROBLEM 1
887 #ifndef CHECKED_INET6
888 # define CHECKED_INET6
894 #endif /* CHECKED_INET6 */
896 #ifndef HAVE_GETADDRINFO
897 struct sockaddr_storage;
898 #include "compat/fake-rfc2553.h"
901 #ifdef UNBOUND_ALLOC_STATS
902 # define malloc(s) unbound_stat_malloc_log(s, __FILE__, __LINE__, __func__)
903 # define calloc(n,s) unbound_stat_calloc_log(n, s, __FILE__, __LINE__, __func__)
904 # define free(p) unbound_stat_free_log(p, __FILE__, __LINE__, __func__)
905 # define realloc(p,s) unbound_stat_realloc_log(p, s, __FILE__, __LINE__, __func__)
906 void *unbound_stat_malloc(size_t size);
907 void *unbound_stat_calloc(size_t nmemb, size_t size);
908 void unbound_stat_free(void *ptr);
909 void *unbound_stat_realloc(void *ptr, size_t size);
910 void *unbound_stat_malloc_log(size_t size, const char* file, int line,
912 void *unbound_stat_calloc_log(size_t nmemb, size_t size, const char* file,
913 int line, const char* func);
914 void unbound_stat_free_log(void *ptr, const char* file, int line,
916 void *unbound_stat_realloc_log(void *ptr, size_t size, const char* file,
917 int line, const char* func);
918 #elif defined(UNBOUND_ALLOC_LITE)
919 # include "util/alloc.h"
920 #endif /* UNBOUND_ALLOC_LITE and UNBOUND_ALLOC_STATS */
922 /** default port for DNS traffic. */
923 #define UNBOUND_DNS_PORT 53
924 /** default port for unbound control traffic, registered port with IANA,
925 ub-dns-control 8953/tcp unbound dns nameserver control */
926 #define UNBOUND_CONTROL_PORT 8953
927 /** the version of unbound-control that this software implements */
928 #define UNBOUND_CONTROL_VERSION 1