"Fossies" - the Fresh Open Source Software Archive

Member "nsd-4.3.6/config.h.in" (6 Apr 2021, 24797 Bytes) of package /linux/misc/dns/nsd-4.3.6.tar.gz:


As a special service "Fossies" has tried to format the requested text file into HTML format (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file. See also the latest Fossies "Diffs" side-by-side code changes report for "config.h.in": 4.3.5_vs_4.3.6.

    1 /* config.h.in.  Generated from configure.ac by autoheader.  */
    2 
    3 /* apply the noreturn attribute to a function that exits the program */
    4 #undef ATTR_NORETURN
    5 
    6 /* Define this to enable BIND8 like NSTATS & XSTATS. */
    7 #undef BIND8_STATS
    8 
    9 /* NSD default chroot directory */
   10 #undef CHROOTDIR
   11 
   12 /* Command line arguments used with configure */
   13 #undef CONFCMDLINE
   14 
   15 /* NSD config dir */
   16 #undef CONFIGDIR
   17 
   18 /* Pathname to the NSD configuration file */
   19 #undef CONFIGFILE
   20 
   21 /* number of arguments for CPU_OR is three */
   22 #undef CPU_OR_THREE_ARGS
   23 
   24 /* Define this if on macOSX10.4-darwin8 and setreuid and setregid do not work
   25    */
   26 #undef DARWIN_BROKEN_SETREUID
   27 
   28 /* Pathname to the NSD database */
   29 #undef DBFILE
   30 
   31 /* default dnstap socket path */
   32 #undef DNSTAP_SOCKET_PATH
   33 
   34 /* Define to the default maximum message length with EDNS. */
   35 #undef EDNS_MAX_MESSAGE_LEN
   36 
   37 /* Define to the default facility for syslog. */
   38 #undef FACILITY
   39 
   40 /* Define to 1 if you have the `accept4' function. */
   41 #undef HAVE_ACCEPT4
   42 
   43 /* Define to 1 if you have the `alarm' function. */
   44 #undef HAVE_ALARM
   45 
   46 /* Define to 1 if you have the `arc4random' function. */
   47 #undef HAVE_ARC4RANDOM
   48 
   49 /* Define to 1 if you have the `arc4random_uniform' function. */
   50 #undef HAVE_ARC4RANDOM_UNIFORM
   51 
   52 /* Define to 1 if you have the <arpa/inet.h> header file. */
   53 #undef HAVE_ARPA_INET_H
   54 
   55 /* Whether the C compiler accepts the "format" attribute */
   56 #undef HAVE_ATTR_FORMAT
   57 
   58 /* Whether the C compiler accepts the "noreturn" attribute */
   59 #undef HAVE_ATTR_NORETURN
   60 
   61 /* Whether the C compiler accepts the "unused" attribute */
   62 #undef HAVE_ATTR_UNUSED
   63 
   64 /* Define to 1 if you have the `b64_ntop' function. */
   65 #undef HAVE_B64_NTOP
   66 
   67 /* Define to 1 if you have the `b64_pton' function. */
   68 #undef HAVE_B64_PTON
   69 
   70 /* Define to 1 if you have the `basename' function. */
   71 #undef HAVE_BASENAME
   72 
   73 /* Define to 1 if your system has a working `chown' function. */
   74 #undef HAVE_CHOWN
   75 
   76 /* Define to 1 if you have the `chroot' function. */
   77 #undef HAVE_CHROOT
   78 
   79 /* Define to 1 if you have the `clock_gettime' function. */
   80 #undef HAVE_CLOCK_GETTIME
   81 
   82 /* Define to 1 if the system has the type `cpuid_t'. */
   83 #undef HAVE_CPUID_T
   84 
   85 /* Define to 1 if the system has the type `cpuset_t'. */
   86 #undef HAVE_CPUSET_T
   87 
   88 /* Define to 1 if the system has the type `cpu_set_t'. */
   89 #undef HAVE_CPU_SET_T
   90 
   91 /* Define to 1 if you have the `CRYPTO_memcmp' function. */
   92 #undef HAVE_CRYPTO_MEMCMP
   93 
   94 /* if time.h provides ctime_r prototype */
   95 #undef HAVE_CTIME_R_PROTO
   96 
   97 /* Define to 1 if you have the declaration of `reallocarray', and to 0 if you
   98    don't. */
   99 #undef HAVE_DECL_REALLOCARRAY
  100 
  101 /* Define to 1 if you have the declaration of `SSL_CTX_set_ecdh_auto', and to
  102    0 if you don't. */
  103 #undef HAVE_DECL_SSL_CTX_SET_ECDH_AUTO
  104 
  105 /* Define to 1 if you have the declaration of `SSL_CTX_set_tmp_ecdh', and to 0
  106    if you don't. */
  107 #undef HAVE_DECL_SSL_CTX_SET_TMP_ECDH
  108 
  109 /* Define to 1 if you have the `dup2' function. */
  110 #undef HAVE_DUP2
  111 
  112 /* Define to 1 if you have the `EC_KEY_new_by_curve_name' function. */
  113 #undef HAVE_EC_KEY_NEW_BY_CURVE_NAME
  114 
  115 /* Define to 1 if you have the <endian.h> header file. */
  116 #undef HAVE_ENDIAN_H
  117 
  118 /* Define to 1 if you have the `endpwent' function. */
  119 #undef HAVE_ENDPWENT
  120 
  121 /* Define to 1 if you have the `ERR_load_crypto_strings' function. */
  122 #undef HAVE_ERR_LOAD_CRYPTO_STRINGS
  123 
  124 /* Define to 1 if you have the `event_base_free' function. */
  125 #undef HAVE_EVENT_BASE_FREE
  126 
  127 /* Define to 1 if you have the `event_base_get_method' function. */
  128 #undef HAVE_EVENT_BASE_GET_METHOD
  129 
  130 /* Define to 1 if you have the `event_base_new' function. */
  131 #undef HAVE_EVENT_BASE_NEW
  132 
  133 /* Define to 1 if you have the `event_base_once' function. */
  134 #undef HAVE_EVENT_BASE_ONCE
  135 
  136 /* Define to 1 if you have the <event.h> header file. */
  137 #undef HAVE_EVENT_H
  138 
  139 /* Define to 1 if you have the `EVP_cleanup' function. */
  140 #undef HAVE_EVP_CLEANUP
  141 
  142 /* Define to 1 if you have the `EVP_MAC_CTX_new' function. */
  143 #undef HAVE_EVP_MAC_CTX_NEW
  144 
  145 /* Define to 1 if you have the `EVP_MAC_CTX_set_params' function. */
  146 #undef HAVE_EVP_MAC_CTX_SET_PARAMS
  147 
  148 /* Define to 1 if you have the `ev_default_loop' function. */
  149 #undef HAVE_EV_DEFAULT_LOOP
  150 
  151 /* Define to 1 if you have the `ev_loop' function. */
  152 #undef HAVE_EV_LOOP
  153 
  154 /* Define to 1 if you have the <fcntl.h> header file. */
  155 #undef HAVE_FCNTL_H
  156 
  157 /* Define to 1 if you have the `fork' function. */
  158 #undef HAVE_FORK
  159 
  160 /* Define to 1 if you have the `freeaddrinfo' function. */
  161 #undef HAVE_FREEADDRINFO
  162 
  163 /* Define to 1 if fseeko (and presumably ftello) exists and is declared. */
  164 #undef HAVE_FSEEKO
  165 
  166 /* Define to 1 if you have the `gai_strerror' function. */
  167 #undef HAVE_GAI_STRERROR
  168 
  169 /* Define to 1 if you have the `getaddrinfo' function. */
  170 #undef HAVE_GETADDRINFO
  171 
  172 /* Define to 1 if you have the `gethostname' function. */
  173 #undef HAVE_GETHOSTNAME
  174 
  175 /* Define to 1 if you have the `getifaddrs' function. */
  176 #undef HAVE_GETIFADDRS
  177 
  178 /* Define to 1 if you have the `getnameinfo' function. */
  179 #undef HAVE_GETNAMEINFO
  180 
  181 /* Define to 1 if you have the `getpwnam' function. */
  182 #undef HAVE_GETPWNAM
  183 
  184 /* Define to 1 if you have the `getrandom' function. */
  185 #undef HAVE_GETRANDOM
  186 
  187 /* Define to 1 if you have the `glob' function. */
  188 #undef HAVE_GLOB
  189 
  190 /* Define to 1 if you have the <glob.h> header file. */
  191 #undef HAVE_GLOB_H
  192 
  193 /* Define to 1 if you have the <grp.h> header file. */
  194 #undef HAVE_GRP_H
  195 
  196 /* Define to 1 if you have the `HMAC_CTX_new' function. */
  197 #undef HAVE_HMAC_CTX_NEW
  198 
  199 /* Define to 1 if you have the `HMAC_CTX_reset' function. */
  200 #undef HAVE_HMAC_CTX_RESET
  201 
  202 /* Define to 1 if you have the <ifaddrs.h> header file. */
  203 #undef HAVE_IFADDRS_H
  204 
  205 /* Define to 1 if you have the `inet_aton' function. */
  206 #undef HAVE_INET_ATON
  207 
  208 /* Define to 1 if you have the `inet_ntop' function. */
  209 #undef HAVE_INET_NTOP
  210 
  211 /* Define to 1 if you have the `inet_pton' function. */
  212 #undef HAVE_INET_PTON
  213 
  214 /* Define to 1 if you have the `initgroups' function. */
  215 #undef HAVE_INITGROUPS
  216 
  217 /* Define to 1 if you have the <inttypes.h> header file. */
  218 #undef HAVE_INTTYPES_H
  219 
  220 /* Define to 1 if you have the `crypto' library (-lcrypto). */
  221 #undef HAVE_LIBCRYPTO
  222 
  223 /* Define to 1 if you have the <limits.h> header file. */
  224 #undef HAVE_LIMITS_H
  225 
  226 /* Define to 1 if you have the `localtime_r' function. */
  227 #undef HAVE_LOCALTIME_R
  228 
  229 /* Define to 1 if you have the <login_cap.h> header file. */
  230 #undef HAVE_LOGIN_CAP_H
  231 
  232 /* Define to 1 if your system has a GNU libc compatible `malloc' function, and
  233    to 0 otherwise. */
  234 #undef HAVE_MALLOC
  235 
  236 /* Define to 1 if you have the `memcpy' function. */
  237 #undef HAVE_MEMCPY
  238 
  239 /* Define to 1 if you have the `memmove' function. */
  240 #undef HAVE_MEMMOVE
  241 
  242 /* Define to 1 if you have the <memory.h> header file. */
  243 #undef HAVE_MEMORY_H
  244 
  245 /* Define to 1 if you have the `memset' function. */
  246 #undef HAVE_MEMSET
  247 
  248 /* Define to 1 if you have the `mmap' function. */
  249 #undef HAVE_MMAP
  250 
  251 /* If sys/socket.h has a struct mmsghdr. */
  252 #undef HAVE_MMSGHDR
  253 
  254 /* Define to 1 if you have the `munmap' function. */
  255 #undef HAVE_MUNMAP
  256 
  257 /* Define to 1 if you have the <netdb.h> header file. */
  258 #undef HAVE_NETDB_H
  259 
  260 /* Define to 1 if you have the <netinet/in.h> header file. */
  261 #undef HAVE_NETINET_IN_H
  262 
  263 /* Define to 1 if you have the <netinet/tcp.h> header file. */
  264 #undef HAVE_NETINET_TCP_H
  265 
  266 /* Define to 1 if you have the <openssl/core_names.h> header file. */
  267 #undef HAVE_OPENSSL_CORE_NAMES_H
  268 
  269 /* Define to 1 if you have the <openssl/err.h> header file. */
  270 #undef HAVE_OPENSSL_ERR_H
  271 
  272 /* Define to 1 if you have the `OPENSSL_init_crypto' function. */
  273 #undef HAVE_OPENSSL_INIT_CRYPTO
  274 
  275 /* Define to 1 if you have the `OPENSSL_init_ssl' function. */
  276 #undef HAVE_OPENSSL_INIT_SSL
  277 
  278 /* Define to 1 if you have the <openssl/ocsp.h> header file. */
  279 #undef HAVE_OPENSSL_OCSP_H
  280 
  281 /* Define to 1 if you have the <openssl/rand.h> header file. */
  282 #undef HAVE_OPENSSL_RAND_H
  283 
  284 /* Define to 1 if you have the <openssl/ssl.h> header file. */
  285 #undef HAVE_OPENSSL_SSL_H
  286 
  287 /* Define to 1 if you have the `ppoll' function. */
  288 #undef HAVE_PPOLL
  289 
  290 /* Define to 1 if you have the `pselect' function. */
  291 #undef HAVE_PSELECT
  292 
  293 /* if sys/select.h provides pselect prototype */
  294 #undef HAVE_PSELECT_PROTO
  295 
  296 /* Define to 1 if you have the `pwrite' function. */
  297 #undef HAVE_PWRITE
  298 
  299 /* If we have reallocarray(3) */
  300 #undef HAVE_REALLOCARRAY
  301 
  302 /* Define if recvmmsg is implemented */
  303 #undef HAVE_RECVMMSG
  304 
  305 /* Define to 1 if you have the <sched.h> header file. */
  306 #undef HAVE_SCHED_H
  307 
  308 /* Define this if sched_setaffinity is available */
  309 #undef HAVE_SCHED_SETAFFINITY
  310 
  311 /* Define if sendmmsg is implemented */
  312 #undef HAVE_SENDMMSG
  313 
  314 /* Define to 1 if you have the `setproctitle' function. */
  315 #undef HAVE_SETPROCTITLE
  316 
  317 /* Define to 1 if you have the `setregid' function. */
  318 #undef HAVE_SETREGID
  319 
  320 /* Define to 1 if you have the `setresgid' function. */
  321 #undef HAVE_SETRESGID
  322 
  323 /* Define to 1 if you have the `setresuid' function. */
  324 #undef HAVE_SETRESUID
  325 
  326 /* Define to 1 if you have the `setreuid' function. */
  327 #undef HAVE_SETREUID
  328 
  329 /* Define to 1 if you have the `setusercontext' function. */
  330 #undef HAVE_SETUSERCONTEXT
  331 
  332 /* Define to 1 if you have the `sigaction' function. */
  333 #undef HAVE_SIGACTION
  334 
  335 /* Define to 1 if you have the <signal.h> header file. */
  336 #undef HAVE_SIGNAL_H
  337 
  338 /* Define to 1 if you have the `sigprocmask' function. */
  339 #undef HAVE_SIGPROCMASK
  340 
  341 /* Define to 1 if you have the `snprintf' function. */
  342 #undef HAVE_SNPRINTF
  343 
  344 /* Define to 1 if you have the `socket' function. */
  345 #undef HAVE_SOCKET
  346 
  347 /* Define if you have the SSL libraries installed. */
  348 #undef HAVE_SSL
  349 
  350 /* Define to 1 if you have the `SSL_CTX_set_security_level' function. */
  351 #undef HAVE_SSL_CTX_SET_SECURITY_LEVEL
  352 
  353 /* Define to 1 if you have the <stdarg.h> header file. */
  354 #undef HAVE_STDARG_H
  355 
  356 /* Define to 1 if you have the <stddef.h> header file. */
  357 #undef HAVE_STDDEF_H
  358 
  359 /* Define to 1 if you have the <stdint.h> header file. */
  360 #undef HAVE_STDINT_H
  361 
  362 /* Define to 1 if you have the <stdlib.h> header file. */
  363 #undef HAVE_STDLIB_H
  364 
  365 /* Define to 1 if you have the `strcasecmp' function. */
  366 #undef HAVE_STRCASECMP
  367 
  368 /* Define to 1 if you have the `strchr' function. */
  369 #undef HAVE_STRCHR
  370 
  371 /* Define to 1 if you have the `strdup' function. */
  372 #undef HAVE_STRDUP
  373 
  374 /* Define to 1 if you have the `strerror' function. */
  375 #undef HAVE_STRERROR
  376 
  377 /* Define to 1 if you have the `strftime' function. */
  378 #undef HAVE_STRFTIME
  379 
  380 /* Define to 1 if you have the <strings.h> header file. */
  381 #undef HAVE_STRINGS_H
  382 
  383 /* Define to 1 if you have the <string.h> header file. */
  384 #undef HAVE_STRING_H
  385 
  386 /* Define to 1 if you have the `strlcat' function. */
  387 #undef HAVE_STRLCAT
  388 
  389 /* Define to 1 if you have the `strlcpy' function. */
  390 #undef HAVE_STRLCPY
  391 
  392 /* Define to 1 if you have the `strncasecmp' function. */
  393 #undef HAVE_STRNCASECMP
  394 
  395 /* Define to 1 if you have the `strptime' function. */
  396 #undef HAVE_STRPTIME
  397 
  398 /* Define to 1 if you have the `strtol' function. */
  399 #undef HAVE_STRTOL
  400 
  401 /* Define to 1 if `sun_len' is a member of `struct sockaddr_un'. */
  402 #undef HAVE_STRUCT_SOCKADDR_UN_SUN_LEN
  403 
  404 /* Define to 1 if `st_mtimensec' is a member of `struct stat'. */
  405 #undef HAVE_STRUCT_STAT_ST_MTIMENSEC
  406 
  407 /* Define to 1 if `st_mtim.tv_nsec' is a member of `struct stat'. */
  408 #undef HAVE_STRUCT_STAT_ST_MTIM_TV_NSEC
  409 
  410 /* If time.h has a struct timespec (for pselect). */
  411 #undef HAVE_STRUCT_TIMESPEC
  412 
  413 /* Define to 1 if you have the `sysconf' function. */
  414 #undef HAVE_SYSCONF
  415 
  416 /* Define to 1 if you have the <syslog.h> header file. */
  417 #undef HAVE_SYSLOG_H
  418 
  419 /* Define to 1 if systemd should be used */
  420 #undef HAVE_SYSTEMD
  421 
  422 /* Define to 1 if you have the <sys/bitypes.h> header file. */
  423 #undef HAVE_SYS_BITYPES_H
  424 
  425 /* Define to 1 if you have the <sys/cpuset.h> header file. */
  426 #undef HAVE_SYS_CPUSET_H
  427 
  428 /* Define to 1 if you have the <sys/mman.h> header file. */
  429 #undef HAVE_SYS_MMAN_H
  430 
  431 /* Define to 1 if you have the <sys/param.h> header file. */
  432 #undef HAVE_SYS_PARAM_H
  433 
  434 /* Define to 1 if you have the <sys/random.h> header file. */
  435 #undef HAVE_SYS_RANDOM_H
  436 
  437 /* Define to 1 if you have the <sys/select.h> header file. */
  438 #undef HAVE_SYS_SELECT_H
  439 
  440 /* Define to 1 if you have the <sys/socket.h> header file. */
  441 #undef HAVE_SYS_SOCKET_H
  442 
  443 /* Define to 1 if you have the <sys/stat.h> header file. */
  444 #undef HAVE_SYS_STAT_H
  445 
  446 /* Define to 1 if you have the <sys/types.h> header file. */
  447 #undef HAVE_SYS_TYPES_H
  448 
  449 /* Define to 1 if you have the <sys/un.h> header file. */
  450 #undef HAVE_SYS_UN_H
  451 
  452 /* Define to 1 if you have <sys/wait.h> that is POSIX.1 compatible. */
  453 #undef HAVE_SYS_WAIT_H
  454 
  455 /* Define to 1 if you have the <tcpd.h> header file. */
  456 #undef HAVE_TCPD_H
  457 
  458 /* Define to 1 if you have the <time.h> header file. */
  459 #undef HAVE_TIME_H
  460 
  461 /* Define to 1 if you have the `tzset' function. */
  462 #undef HAVE_TZSET
  463 
  464 /* Define to 1 if you have the <unistd.h> header file. */
  465 #undef HAVE_UNISTD_H
  466 
  467 /* Define this if you have double va_list definitions. */
  468 #undef HAVE_VA_LIST_DOUBLE_DEF
  469 
  470 /* Define to 1 if you have the `vfork' function. */
  471 #undef HAVE_VFORK
  472 
  473 /* Define to 1 if you have the <vfork.h> header file. */
  474 #undef HAVE_VFORK_H
  475 
  476 /* Define to 1 if `fork' works. */
  477 #undef HAVE_WORKING_FORK
  478 
  479 /* Define to 1 if `vfork' works. */
  480 #undef HAVE_WORKING_VFORK
  481 
  482 /* Define to 1 if you have the `writev' function. */
  483 #undef HAVE_WRITEV
  484 
  485 /* Define to the default nsd identity. */
  486 #undef IDENTITY
  487 
  488 /* Define this to enable IPv6 support. */
  489 #undef INET6
  490 
  491 /* If flex defines yy_current_buffer as a macro */
  492 #undef LEX_DEFINES_YY_CURRENT_BUFFER
  493 
  494 /* Define to the maximum message length to pass to syslog. */
  495 #undef MAXSYSLOGMSGLEN
  496 
  497 /* Define this to cleanup memory at exit (eg. for valgrind, etc.) */
  498 #undef MEMCLEAN
  499 
  500 /* Define if memcmp() does not compare unsigned bytes */
  501 #undef MEMCMP_IS_BROKEN
  502 
  503 /* Define this to enable response minimalization to reduce truncation. */
  504 #undef MINIMAL_RESPONSES
  505 
  506 /* Define if mkdir has one argument. */
  507 #undef MKDIR_HAS_ONE_ARG
  508 
  509 /* Undefine this to enable internal runtime checks. */
  510 #undef NDEBUG
  511 
  512 /* Define if the network stack does not fully support nonblocking io (causes
  513    lower performance). */
  514 #undef NONBLOCKING_IS_BROKEN
  515 
  516 /* Define to the default nsd-control port. */
  517 #undef NSD_CONTROL_PORT
  518 
  519 /* Define to nsd-control proto version. */
  520 #undef NSD_CONTROL_VERSION
  521 
  522 /* Pathname to start nsd from nsd-control */
  523 #undef NSD_START_PATH
  524 
  525 /* Define this to enable NSEC3 support. */
  526 #undef NSEC3
  527 
  528 /* Define to the address where bug reports for this package should be sent. */
  529 #undef PACKAGE_BUGREPORT
  530 
  531 /* Define to the full name of this package. */
  532 #undef PACKAGE_NAME
  533 
  534 /* Define to the full name and version of this package. */
  535 #undef PACKAGE_STRING
  536 
  537 /* Define to the one symbol short name of this package. */
  538 #undef PACKAGE_TARNAME
  539 
  540 /* Define to the home page for this package. */
  541 #undef PACKAGE_URL
  542 
  543 /* Define to the version of this package. */
  544 #undef PACKAGE_VERSION
  545 
  546 /* Define this to use packed structure alignment. */
  547 #undef PACKED_STRUCTS
  548 
  549 /* Pathname to the NSD pidfile */
  550 #undef PIDFILE
  551 
  552 /* Define this to enable rate limiting. */
  553 #undef RATELIMIT
  554 
  555 /* Define this to set ratelimit to off by default. */
  556 #undef RATELIMIT_DEFAULT_OFF
  557 
  558 /* If reallocarray needs defines to appear in the headers */
  559 #undef REALLOCARRAY_NEEDS_DEFINES
  560 
  561 /* Return type of signal handlers, but autoconf 2.70 says 'your code may
  562    safely assume C89 semantics that RETSIGTYPE is void.' */
  563 #undef RETSIGTYPE
  564 
  565 /* Define this to configure as a root server. */
  566 #undef ROOT_SERVER
  567 
  568 /* The size of `off_t', as computed by sizeof. */
  569 #undef SIZEOF_OFF_T
  570 
  571 /* The size of `void*', as computed by sizeof. */
  572 #undef SIZEOF_VOIDP
  573 
  574 /* Define to 1 if you have the ANSI C header files. */
  575 #undef STDC_HEADERS
  576 
  577 /* strptime is available from time.h with some defines. */
  578 #undef STRPTIME_NEEDS_DEFINES
  579 
  580 /* use default strptime. */
  581 #undef STRPTIME_WORKS
  582 
  583 /* Define to the backlog to be used with listen. */
  584 #undef TCP_BACKLOG
  585 
  586 /* Define to the default maximum message length. */
  587 #undef TCP_MAX_MESSAGE_LEN
  588 
  589 /* Define to the default tcp port. */
  590 #undef TCP_PORT
  591 
  592 /* Define to the default tcp timeout. */
  593 #undef TCP_TIMEOUT
  594 
  595 /* Define to the default DNS over TLS port. */
  596 #undef TLS_PORT
  597 
  598 /* Define to the default maximum udp message length. */
  599 #undef UDP_MAX_MESSAGE_LEN
  600 
  601 /* Define to the default udp port. */
  602 #undef UDP_PORT
  603 
  604 /* the user name to drop privileges to */
  605 #undef USER
  606 
  607 /* Define to 1 to enable dnstap support */
  608 #undef USE_DNSTAP
  609 
  610 /* Define if you want to use internal select based events */
  611 #undef USE_MINI_EVENT
  612 
  613 /* Define this to enable mmap instead of malloc. Experimental. */
  614 #undef USE_MMAP_ALLOC
  615 
  616 /* Define this to configure to use the radix tree. */
  617 #undef USE_RADIX_TREE
  618 
  619 /* Enable extensions on AIX 3, Interix.  */
  620 #ifndef _ALL_SOURCE
  621 # undef _ALL_SOURCE
  622 #endif
  623 /* Enable GNU extensions on systems that have them.  */
  624 #ifndef _GNU_SOURCE
  625 # undef _GNU_SOURCE
  626 #endif
  627 /* Enable threading extensions on Solaris.  */
  628 #ifndef _POSIX_PTHREAD_SEMANTICS
  629 # undef _POSIX_PTHREAD_SEMANTICS
  630 #endif
  631 /* Enable extensions on HP NonStop.  */
  632 #ifndef _TANDEM_SOURCE
  633 # undef _TANDEM_SOURCE
  634 #endif
  635 /* Enable general extensions on Solaris.  */
  636 #ifndef __EXTENSIONS__
  637 # undef __EXTENSIONS__
  638 #endif
  639 
  640 
  641 /* Define this to enable TCP fast open. */
  642 #undef USE_TCP_FASTOPEN
  643 
  644 /* Define this to enable per-zone statistics gathering. */
  645 #undef USE_ZONE_STATS
  646 
  647 /* Define to the NSD version to answer version.server query. */
  648 #undef VERSION
  649 
  650 /* Pathname to the NSD xfrd zone timer state file. */
  651 #undef XFRDFILE
  652 
  653 /* Pathname to where the NSD transfer dir is created. */
  654 #undef XFRDIR
  655 
  656 /* Define to 1 if `lex' declares `yytext' as a `char *' by default, not a
  657    `char[]'. */
  658 #undef YYTEXT_POINTER
  659 
  660 /* Pathname to the NSD zone list file. */
  661 #undef ZONELISTFILE
  662 
  663 /* NSD default location for zone files. Empty string or NULL to disable. */
  664 #undef ZONESDIR
  665 
  666 /* Enable large inode numbers on Mac OS X 10.5.  */
  667 #ifndef _DARWIN_USE_64_BIT_INODE
  668 # define _DARWIN_USE_64_BIT_INODE 1
  669 #endif
  670 
  671 /* Number of bits in a file offset, on hosts where this is settable. */
  672 #undef _FILE_OFFSET_BITS
  673 
  674 /* Define to 1 to make fseeko visible on some hosts (e.g. glibc 2.2). */
  675 #undef _LARGEFILE_SOURCE
  676 
  677 /* Define for large files, on AIX-style hosts. */
  678 #undef _LARGE_FILES
  679 
  680 /* Define to 1 if on MINIX. */
  681 #undef _MINIX
  682 
  683 /* Enable for compile on Minix */
  684 #undef _NETBSD_SOURCE
  685 
  686 /* Define to 2 if the system does not provide POSIX.1 features except with
  687    this defined. */
  688 #undef _POSIX_1_SOURCE
  689 
  690 /* Define to 1 if you need to in order for `stat' and other things to work. */
  691 #undef _POSIX_SOURCE
  692 
  693 /* Define to empty if `const' does not conform to ANSI C. */
  694 #undef const
  695 
  696 /* Define to `int' if <sys/types.h> doesn't define. */
  697 #undef gid_t
  698 
  699 /* in_addr_t */
  700 #undef in_addr_t
  701 
  702 /* Define to `__inline__' or `__inline' if that's what the C compiler
  703    calls it, or to nothing if 'inline' is not supported under any name.  */
  704 #ifndef __cplusplus
  705 #undef inline
  706 #endif
  707 
  708 /* Define "int16_t" to "short" if "int16_t" is missing */
  709 #undef int16_t
  710 
  711 /* Define "int32_t" to "int" if "int32_t" is missing */
  712 #undef int32_t
  713 
  714 /* Define "int64_t" to "long long" if "int64_t" is missing */
  715 #undef int64_t
  716 
  717 /* Define "int8_t" to "char" if "int8_t" is missing */
  718 #undef int8_t
  719 
  720 /* Define to rpl_malloc if the replacement function should be used. */
  721 #undef malloc
  722 
  723 /* Define to `long int' if <sys/types.h> does not define. */
  724 #undef off_t
  725 
  726 /* Define to `int' if <sys/types.h> does not define. */
  727 #undef pid_t
  728 
  729 /* Define "sig_atomic_t" to "int" if "sig_atomic_t" is missing */
  730 #undef sig_atomic_t
  731 
  732 /* Define to `unsigned int' if <sys/types.h> does not define. */
  733 #undef size_t
  734 
  735 /* Define "socklen_t" to "int" if "socklen_t" is missing */
  736 #undef socklen_t
  737 
  738 /* Fallback member name for socket family in struct sockaddr_storage */
  739 #undef ss_family
  740 
  741 /* Define "ssize_t" to "int" if "ssize_t" is missing */
  742 #undef ssize_t
  743 
  744 /* Define "suseconds_t" to "time_t" if "suseconds_t" is missing */
  745 #undef suseconds_t
  746 
  747 /* Define to `int' if <sys/types.h> doesn't define. */
  748 #undef uid_t
  749 
  750 /* Define "uint16_t" to "unsigned short" if "uint16_t" is missing */
  751 #undef uint16_t
  752 
  753 /* Define "uint32_t" to "unsigned int" if "uint32_t" is missing */
  754 #undef uint32_t
  755 
  756 /* Define "uint64_t" to "unsigned long long" if "uint64_t" is missing */
  757 #undef uint64_t
  758 
  759 /* Define "uint8_t" to "unsigned char" if "uint8_t" is missing */
  760 #undef uint8_t
  761 
  762 /* Define "uintptr_t" to "void*" if "uintptr_t" is missing */
  763 #undef uintptr_t
  764 
  765 /* Define as `fork' if `vfork' does not work. */
  766 #undef vfork
  767 
  768 
  769 /* define before includes as it specifies what standard to use. */
  770 #if (defined(HAVE_PSELECT) && !defined (HAVE_PSELECT_PROTO)) \
  771 	|| !defined (HAVE_CTIME_R_PROTO) \
  772 	|| defined (STRPTIME_NEEDS_DEFINES) || defined(REALLOCARRAY_NEEDS_DEFINES)
  773 #  ifndef _XOPEN_SOURCE
  774 #    define _XOPEN_SOURCE 600
  775 #  endif
  776 #  ifndef _POSIX_C_SOURCE
  777 #    define _POSIX_C_SOURCE 200112
  778 #  endif
  779 #  ifndef _BSD_SOURCE
  780 #    define _BSD_SOURCE 1
  781 #  endif
  782 #  ifndef _OPENBSD_SOURCE
  783 #    define _OPENBSD_SOURCE 1
  784 #  endif
  785 #  ifndef _DEFAULT_SOURCE
  786 #    define _DEFAULT_SOURCE 1
  787 #  endif
  788 #  ifndef __EXTENSIONS__
  789 #    define __EXTENSIONS__ 1
  790 #  endif
  791 #  ifndef _STDC_C99
  792 #    define _STDC_C99 1
  793 #  endif
  794 #  ifndef _ALL_SOURCE
  795 #    define _ALL_SOURCE 1
  796 #  endif
  797 #endif
  798 
  799 
  800 
  801 #ifdef HAVE_VA_LIST_DOUBLE_DEF
  802 /* workaround double va_list definition on some platforms */
  803 #  ifndef _VA_LIST_DEFINED
  804 #    define _VA_LIST_DEFINED
  805 #  endif
  806 #endif
  807 
  808 
  809 
  810 #include <sys/types.h>
  811 #include <stdlib.h>
  812 #include <stddef.h>
  813 
  814 #ifdef HAVE_TIME_H
  815 #include <time.h>
  816 #endif
  817 
  818 #ifdef HAVE_STDINT_H
  819 #include <stdint.h>
  820 #endif
  821 
  822 #ifdef HAVE_SYS_SOCKET_H
  823 #include <sys/socket.h>
  824 #endif
  825 
  826 #ifdef HAVE_NETINET_IN_H
  827 #include <netinet/in.h>
  828 #endif
  829 
  830 #ifdef HAVE_NETINET_TCP_H
  831 #include <netinet/tcp.h>
  832 #endif
  833 
  834 #ifdef HAVE_ARPA_INET_H
  835 #include <arpa/inet.h>
  836 #endif
  837 
  838 /* For Tru64 */
  839 #ifdef HAVE_SYS_BITYPES_H
  840 #include <sys/bitypes.h>
  841 #endif
  842 
  843 
  844 
  845 #ifdef HAVE_ATTR_FORMAT
  846 #define ATTR_FORMAT(archetype, string_index, first_to_check) \
  847     __attribute__ ((format (archetype, string_index, first_to_check)))
  848 #else /* !HAVE_ATTR_FORMAT */
  849 #define ATTR_FORMAT(archetype, string_index, first_to_check) /* empty */
  850 #endif /* !HAVE_ATTR_FORMAT */
  851 #if defined(__cplusplus)
  852 #define ATTR_UNUSED(x)
  853 #elif defined(HAVE_ATTR_UNUSED)
  854 #define ATTR_UNUSED(x)  x __attribute__((unused))
  855 #else /* !HAVE_ATTR_UNUSED */
  856 #define ATTR_UNUSED(x)  x
  857 #endif /* !HAVE_ATTR_UNUSED */
  858 
  859 
  860 
  861 #ifndef IPV6_MIN_MTU
  862 #define IPV6_MIN_MTU 1280
  863 #endif /* IPV6_MIN_MTU */
  864 
  865 #ifndef AF_INET6
  866 #define AF_INET6	28
  867 #endif /* AF_INET6 */
  868 
  869 
  870 
  871 /* maximum nesting of included files */
  872 #define MAXINCLUDES 10
  873 
  874 
  875 
  876 #ifndef HAVE_B64_NTOP
  877 int b64_ntop(uint8_t const *src, size_t srclength,
  878 	     char *target, size_t targsize);
  879 #endif /* !HAVE_B64_NTOP */
  880 #ifndef HAVE_B64_PTON
  881 int b64_pton(char const *src, uint8_t *target, size_t targsize);
  882 #endif /* !HAVE_B64_PTON */
  883 #ifndef HAVE_FSEEKO
  884 #define fseeko fseek
  885 #define ftello ftell
  886 #endif /* HAVE_FSEEKO */
  887 #ifndef HAVE_SNPRINTF
  888 #include <stdarg.h>
  889 int snprintf (char *str, size_t count, const char *fmt, ...);
  890 int vsnprintf (char *str, size_t count, const char *fmt, va_list arg);
  891 #endif /* HAVE_SNPRINTF */
  892 #ifndef HAVE_INET_PTON
  893 int inet_pton(int af, const char* src, void* dst);
  894 #endif /* HAVE_INET_PTON */
  895 #ifndef HAVE_INET_NTOP
  896 const char *inet_ntop(int af, const void *src, char *dst, size_t size);
  897 #endif
  898 #ifndef HAVE_INET_ATON
  899 int inet_aton(const char *cp, struct in_addr *addr);
  900 #endif
  901 #ifndef HAVE_MEMMOVE
  902 void *memmove(void *dest, const void *src, size_t n);
  903 #endif
  904 #ifndef HAVE_STRLCAT
  905 size_t strlcat(char *dst, const char *src, size_t siz);
  906 #endif
  907 #ifndef HAVE_STRLCPY
  908 size_t strlcpy(char *dst, const char *src, size_t siz);
  909 #endif
  910 #ifndef HAVE_REALLOCARRAY
  911 void* reallocarray(void *ptr, size_t nmemb, size_t size);
  912 #endif
  913 #ifndef HAVE_GETADDRINFO
  914 #include "compat/fake-rfc2553.h"
  915 #endif
  916 #ifndef HAVE_STRPTIME
  917 #define HAVE_STRPTIME 1
  918 char *strptime(const char *s, const char *format, struct tm *tm);
  919 #endif
  920 #ifndef STRPTIME_WORKS
  921 #define STRPTIME_WORKS 1
  922 char *nsd_strptime(const char *s, const char *format, struct tm *tm);
  923 #define strptime(a,b,c) nsd_strptime((a),(b),(c))
  924 #endif
  925 #if (HAVE_CPU_SET_T || HAVE_CPUSET_T)
  926 #include "compat/cpuset.h"
  927 #endif
  928 #ifndef HAVE_SETPROCTITLE
  929 #ifdef __linux__
  930 #define HAVE_SETPROCTITLE 1
  931 #include <stdarg.h>
  932 void setproctitle(const char *fmt, ...);
  933 #endif
  934 #endif
  935 
  936 
  937 
  938 #ifdef MEMCMP_IS_BROKEN
  939 #include "compat/memcmp.h"
  940 #define memcmp memcmp_nsd
  941 int memcmp(const void *x, const void *y, size_t n);
  942 #endif
  943 
  944 
  945 #ifndef MAXHOSTNAMELEN
  946 #define MAXHOSTNAMELEN 256
  947 #endif
  948 
  949 
  950 
  951 
  952 
  953 /* provide timespec def if not available */
  954 #ifndef CONFIG_DEFINES
  955 #define CONFIG_DEFINES
  956 #ifndef HAVE_STRUCT_TIMESPEC
  957 #ifndef __timespec_defined
  958 #define __timespec_defined 1
  959 	struct timespec {
  960 		long    tv_sec;         /* seconds */
  961 		long    tv_nsec;        /* nanoseconds */
  962 	};
  963 #endif /* !__timespec_defined */
  964 #endif /* !HAVE_STRUCT_TIMESPEC */
  965 #endif /* !CONFIG_DEFINES */
  966 
  967 #ifdef PACKED_STRUCTS
  968 #define ATTR_PACKED __attribute__((packed))
  969 #else
  970 #define ATTR_PACKED
  971 #endif
  972