logo

oasis

Own branch of Oasis Linux (upstream: <https://git.sr.ht/~mcf/oasis/>) git clone https://anongit.hacktivis.me/git/oasis.git

config.h (11431B)


  1. #define ATTR_NORETURN __attribute__((__noreturn__))
  2. #define BIND8_STATS /**/
  3. /* #undef CHROOTDIR */
  4. #define CONFCMDLINE "--prefix= --sbindir=/bin --with-zonesdir=/etc/nsd/zone --with-pidfile=/run/nsd.pid --without-ssl --without-libevent"
  5. #define CONFIGDIR "/etc/nsd"
  6. #define CONFIGFILE "/etc/nsd/nsd.conf"
  7. #define CPU_OR_THREE_ARGS 1
  8. /* #undef DARWIN_BROKEN_SETREUID */
  9. #define DBFILE "/var/db/nsd/nsd.db"
  10. /* #undef DNSTAP_SOCKET_PATH */
  11. #define EDNS_MAX_MESSAGE_LEN 1232
  12. #define FACILITY LOG_DAEMON
  13. #define HAVE_ACCEPT4 1
  14. #define HAVE_ALARM 1
  15. #define HAVE_ARC4RANDOM 1
  16. #define HAVE_ARC4RANDOM_UNIFORM 1
  17. #define HAVE_ARPA_INET_H 1
  18. #define HAVE_ATTR_FORMAT 1
  19. #define HAVE_ATTR_NORETURN 1
  20. #define HAVE_ATTR_UNUSED 1
  21. /* #undef HAVE_B64_NTOP */
  22. /* #undef HAVE_B64_PTON */
  23. #define HAVE_BASENAME 1
  24. #define HAVE_CHOWN 1
  25. #define HAVE_CHROOT 1
  26. #define HAVE_CLOCK_GETTIME 1
  27. /* #undef HAVE_CPUID_T */
  28. /* #undef HAVE_CPUSET_T */
  29. #define HAVE_CPU_SET_T 1
  30. /* #undef HAVE_CRYPTO_MEMCMP */
  31. #define HAVE_CTIME_R_PROTO 1
  32. #define HAVE_DECL_REALLOCARRAY 1
  33. /* #undef HAVE_DECL_SSL_CTX_SET_ECDH_AUTO */
  34. /* #undef HAVE_DECL_SSL_CTX_SET_TMP_ECDH */
  35. #define HAVE_DUP2 1
  36. /* #undef HAVE_EC_KEY_NEW_BY_CURVE_NAME */
  37. #define HAVE_ENDIAN_H 1
  38. #define HAVE_ENDPWENT 1
  39. /* #undef HAVE_ERR_LOAD_CRYPTO_STRINGS */
  40. /* #undef HAVE_EVENT_BASE_FREE */
  41. /* #undef HAVE_EVENT_BASE_GET_METHOD */
  42. /* #undef HAVE_EVENT_BASE_NEW */
  43. /* #undef HAVE_EVENT_BASE_ONCE */
  44. /* #undef HAVE_EVENT_H */
  45. /* #undef HAVE_EVP_CLEANUP */
  46. /* #undef HAVE_EVP_MAC_CTX_NEW */
  47. /* #undef HAVE_EVP_MAC_CTX_SET_PARAMS */
  48. /* #undef HAVE_EV_DEFAULT_LOOP */
  49. /* #undef HAVE_EV_LOOP */
  50. #define HAVE_FCNTL_H 1
  51. #define HAVE_FORK 1
  52. #define HAVE_FREEADDRINFO 1
  53. #define HAVE_FSEEKO 1
  54. #define HAVE_GAI_STRERROR 1
  55. #define HAVE_GETADDRINFO 1
  56. #define HAVE_GETHOSTNAME 1
  57. #define HAVE_GETIFADDRS 1
  58. #define HAVE_GETNAMEINFO 1
  59. #define HAVE_GETPWNAM 1
  60. #define HAVE_GETRANDOM 1
  61. #define HAVE_GLOB 1
  62. #define HAVE_GLOB_H 1
  63. #define HAVE_GRP_H 1
  64. /* #undef HAVE_HMAC_CTX_NEW */
  65. /* #undef HAVE_HMAC_CTX_RESET */
  66. #define HAVE_IFADDRS_H 1
  67. #define HAVE_INET_ATON 1
  68. #define HAVE_INET_NTOP 1
  69. #define HAVE_INET_PTON 1
  70. #define HAVE_INITGROUPS 1
  71. #define HAVE_INTTYPES_H 1
  72. /* #undef HAVE_LIBCRYPTO */
  73. #define HAVE_LIMITS_H 1
  74. #define HAVE_LOCALTIME_R 1
  75. /* #undef HAVE_LOGIN_CAP_H */
  76. #define HAVE_MALLOC 1
  77. #define HAVE_MEMCPY 1
  78. #define HAVE_MEMMOVE 1
  79. #define HAVE_MEMORY_H 1
  80. #define HAVE_MEMSET 1
  81. #define HAVE_MMAP 1
  82. #define HAVE_MMSGHDR 1
  83. /* #undef HAVE_MUNMAP */
  84. #define HAVE_NETDB_H 1
  85. #define HAVE_NETINET_IN_H 1
  86. #define HAVE_NETINET_TCP_H 1
  87. /* #undef HAVE_OPENSSL_CORE_NAMES_H */
  88. /* #undef HAVE_OPENSSL_ERR_H */
  89. /* #undef HAVE_OPENSSL_INIT_CRYPTO */
  90. /* #undef HAVE_OPENSSL_INIT_SSL */
  91. /* #undef HAVE_OPENSSL_OCSP_H */
  92. /* #undef HAVE_OPENSSL_RAND_H */
  93. /* #undef HAVE_OPENSSL_SSL_H */
  94. #define HAVE_PPOLL 1
  95. #define HAVE_PSELECT 1
  96. #define HAVE_PSELECT_PROTO 1
  97. #define HAVE_PWRITE 1
  98. #define HAVE_REALLOCARRAY 1
  99. /* #undef HAVE_RECVMMSG */
  100. #define HAVE_SCHED_H 1
  101. #define HAVE_SCHED_SETAFFINITY 1
  102. /* #undef HAVE_SENDMMSG */
  103. /* #undef HAVE_SETPROCTITLE */
  104. #define HAVE_SETREGID 1
  105. #define HAVE_SETRESGID 1
  106. #define HAVE_SETRESUID 1
  107. #define HAVE_SETREUID 1
  108. /* #undef HAVE_SETUSERCONTEXT */
  109. #define HAVE_SIGACTION 1
  110. #define HAVE_SIGNAL_H 1
  111. #define HAVE_SIGPROCMASK 1
  112. #define HAVE_SNPRINTF 1
  113. #define HAVE_SOCKET 1
  114. /* #undef HAVE_SSL */
  115. /* #undef HAVE_SSL_CTX_SET_SECURITY_LEVEL */
  116. #define HAVE_STDARG_H 1
  117. #define HAVE_STDDEF_H 1
  118. #define HAVE_STDINT_H 1
  119. #define HAVE_STDLIB_H 1
  120. #define HAVE_STRCASECMP 1
  121. #define HAVE_STRCHR 1
  122. #define HAVE_STRDUP 1
  123. #define HAVE_STRERROR 1
  124. #define HAVE_STRFTIME 1
  125. #define HAVE_STRINGS_H 1
  126. #define HAVE_STRING_H 1
  127. #define HAVE_STRLCAT 1
  128. #define HAVE_STRLCPY 1
  129. #define HAVE_STRNCASECMP 1
  130. #define HAVE_STRPTIME 1
  131. #define HAVE_STRTOL 1
  132. /* #undef HAVE_STRUCT_SOCKADDR_UN_SUN_LEN */
  133. /* #undef HAVE_STRUCT_STAT_ST_MTIMENSEC */
  134. #define HAVE_STRUCT_STAT_ST_MTIM_TV_NSEC 1
  135. #define HAVE_STRUCT_TIMESPEC 1
  136. #define HAVE_SYSCONF 1
  137. /* #undef HAVE_SYSLOG_H */
  138. /* #undef HAVE_SYSTEMD */
  139. /* #undef HAVE_SYS_BITYPES_H */
  140. /* #undef HAVE_SYS_CPUSET_H */
  141. /* #undef HAVE_SYS_MMAN_H */
  142. #define HAVE_SYS_PARAM_H 1
  143. #define HAVE_SYS_RANDOM_H 1
  144. #define HAVE_SYS_SELECT_H 1
  145. #define HAVE_SYS_SOCKET_H 1
  146. #define HAVE_SYS_STAT_H 1
  147. #define HAVE_SYS_TYPES_H 1
  148. #define HAVE_SYS_UN_H 1
  149. #define HAVE_SYS_WAIT_H 1
  150. /* #undef HAVE_TCPD_H */
  151. #define HAVE_TIME_H 1
  152. #define HAVE_TIMINGSAFE_MEMCMP 1
  153. #define HAVE_TZSET 1
  154. #define HAVE_UNISTD_H 1
  155. /* #undef HAVE_VA_LIST_DOUBLE_DEF */
  156. #define HAVE_VFORK 1
  157. /* #undef HAVE_VFORK_H */
  158. #define HAVE_WORKING_FORK 1
  159. #define HAVE_WORKING_VFORK 1
  160. #define HAVE_WRITEV 1
  161. #define IDENTITY "unidentified server"
  162. #define INET6 /**/
  163. /* #undef LEX_DEFINES_YY_CURRENT_BUFFER */
  164. #define MAXSYSLOGMSGLEN 512
  165. /* #undef MEMCLEAN */
  166. /* #undef MEMCMP_IS_BROKEN */
  167. #define MINIMAL_RESPONSES /**/
  168. /* #undef MKDIR_HAS_ONE_ARG */
  169. #define NDEBUG /**/
  170. /* #undef NONBLOCKING_IS_BROKEN */
  171. #define NSD_CONTROL_PORT 8952
  172. #define NSD_CONTROL_VERSION 1
  173. #define NSD_START_PATH "/bin/nsd"
  174. /* #undef NSEC3 */
  175. #define PACKAGE_BUGREPORT "nsd-bugs@nlnetlabs.nl"
  176. #define PACKAGE_NAME "NSD"
  177. #define PACKAGE_STRING "NSD 4.3.6"
  178. #define PACKAGE_TARNAME "nsd"
  179. #define PACKAGE_URL ""
  180. #define PACKAGE_VERSION "4.3.6"
  181. /* #undef PACKED_STRUCTS */
  182. #define PIDFILE "/run/nsd.pid"
  183. /* #undef RATELIMIT */
  184. /* #undef RATELIMIT_DEFAULT_OFF */
  185. /* #undef REALLOCARRAY_NEEDS_DEFINES */
  186. #define RETSIGTYPE void
  187. /* #undef ROOT_SERVER */
  188. #define SIZEOF_OFF_T 8
  189. #define SIZEOF_VOIDP 8
  190. #define STDC_HEADERS 1
  191. /* #undef STRPTIME_NEEDS_DEFINES */
  192. #define STRPTIME_WORKS 1
  193. #define TCP_BACKLOG 256
  194. #define TCP_MAX_MESSAGE_LEN 65535
  195. #define TCP_PORT "53"
  196. #define TCP_TIMEOUT 120
  197. #define TLS_PORT "853"
  198. #define UDP_MAX_MESSAGE_LEN 512
  199. #define UDP_PORT "53"
  200. #define USER "nsd"
  201. /* #undef USE_DNSTAP */
  202. #define USE_MINI_EVENT 1
  203. /* #undef USE_MMAP_ALLOC */
  204. #define USE_RADIX_TREE /**/
  205. #ifndef _ALL_SOURCE
  206. # define _ALL_SOURCE 1
  207. #endif
  208. #ifndef _GNU_SOURCE
  209. # define _GNU_SOURCE 1
  210. #endif
  211. #ifndef _POSIX_PTHREAD_SEMANTICS
  212. # define _POSIX_PTHREAD_SEMANTICS 1
  213. #endif
  214. #ifndef _TANDEM_SOURCE
  215. # define _TANDEM_SOURCE 1
  216. #endif
  217. #ifndef __EXTENSIONS__
  218. # define __EXTENSIONS__ 1
  219. #endif
  220. /* #undef USE_TCP_FASTOPEN */
  221. /* #undef USE_ZONE_STATS */
  222. #define VERSION PACKAGE_STRING
  223. #define XFRDFILE "/var/db/nsd/xfrd.state"
  224. #define XFRDIR "/tmp"
  225. /* #undef YYTEXT_POINTER */
  226. #define ZONELISTFILE "/var/db/nsd/zone.list"
  227. #define ZONESDIR "/etc/nsd/zone"
  228. #ifndef _DARWIN_USE_64_BIT_INODE
  229. # define _DARWIN_USE_64_BIT_INODE 1
  230. #endif
  231. /* #undef _FILE_OFFSET_BITS */
  232. /* #undef _LARGEFILE_SOURCE */
  233. /* #undef _LARGE_FILES */
  234. /* #undef _MINIX */
  235. /* #undef _NETBSD_SOURCE */
  236. /* #undef _POSIX_1_SOURCE */
  237. /* #undef _POSIX_SOURCE */
  238. /* #undef const */
  239. /* #undef gid_t */
  240. /* #undef in_addr_t */
  241. #ifndef __cplusplus
  242. /* #undef inline */
  243. #endif
  244. /* #undef int16_t */
  245. /* #undef int32_t */
  246. /* #undef int64_t */
  247. /* #undef int8_t */
  248. /* #undef malloc */
  249. /* #undef off_t */
  250. /* #undef pid_t */
  251. /* #undef sig_atomic_t */
  252. /* #undef size_t */
  253. /* #undef socklen_t */
  254. /* #undef ss_family */
  255. /* #undef ssize_t */
  256. /* #undef suseconds_t */
  257. /* #undef uid_t */
  258. /* #undef uint16_t */
  259. /* #undef uint32_t */
  260. /* #undef uint64_t */
  261. /* #undef uint8_t */
  262. /* #undef uintptr_t */
  263. /* #undef vfork */
  264. #if (defined(HAVE_PSELECT) && !defined (HAVE_PSELECT_PROTO)) \
  265. || !defined (HAVE_CTIME_R_PROTO) \
  266. || defined (STRPTIME_NEEDS_DEFINES) || defined(REALLOCARRAY_NEEDS_DEFINES)
  267. # ifndef _XOPEN_SOURCE
  268. # define _XOPEN_SOURCE 600
  269. # endif
  270. # ifndef _POSIX_C_SOURCE
  271. # define _POSIX_C_SOURCE 200112
  272. # endif
  273. # ifndef _BSD_SOURCE
  274. # define _BSD_SOURCE 1
  275. # endif
  276. # ifndef _OPENBSD_SOURCE
  277. # define _OPENBSD_SOURCE 1
  278. # endif
  279. # ifndef _DEFAULT_SOURCE
  280. # define _DEFAULT_SOURCE 1
  281. # endif
  282. # ifndef __EXTENSIONS__
  283. # define __EXTENSIONS__ 1
  284. # endif
  285. # ifndef _STDC_C99
  286. # define _STDC_C99 1
  287. # endif
  288. # ifndef _ALL_SOURCE
  289. # define _ALL_SOURCE 1
  290. # endif
  291. #endif
  292. #ifdef HAVE_VA_LIST_DOUBLE_DEF
  293. # ifndef _VA_LIST_DEFINED
  294. # define _VA_LIST_DEFINED
  295. # endif
  296. #endif
  297. #include <sys/types.h>
  298. #include <stdlib.h>
  299. #include <stddef.h>
  300. #ifdef HAVE_TIME_H
  301. #include <time.h>
  302. #endif
  303. #ifdef HAVE_STDINT_H
  304. #include <stdint.h>
  305. #endif
  306. #ifdef HAVE_SYS_SOCKET_H
  307. #include <sys/socket.h>
  308. #endif
  309. #ifdef HAVE_NETINET_IN_H
  310. #include <netinet/in.h>
  311. #endif
  312. #ifdef HAVE_NETINET_TCP_H
  313. #include <netinet/tcp.h>
  314. #endif
  315. #ifdef HAVE_ARPA_INET_H
  316. #include <arpa/inet.h>
  317. #endif
  318. #ifdef HAVE_SYS_BITYPES_H
  319. #include <sys/bitypes.h>
  320. #endif
  321. #ifdef HAVE_ATTR_FORMAT
  322. #define ATTR_FORMAT(archetype, string_index, first_to_check) \
  323. __attribute__ ((format (archetype, string_index, first_to_check)))
  324. #else /* !HAVE_ATTR_FORMAT */
  325. #define ATTR_FORMAT(archetype, string_index, first_to_check) /* empty */
  326. #endif /* !HAVE_ATTR_FORMAT */
  327. #if defined(__cplusplus)
  328. #define ATTR_UNUSED(x)
  329. #elif defined(HAVE_ATTR_UNUSED)
  330. #define ATTR_UNUSED(x) x __attribute__((unused))
  331. #else /* !HAVE_ATTR_UNUSED */
  332. #define ATTR_UNUSED(x) x
  333. #endif /* !HAVE_ATTR_UNUSED */
  334. #ifndef IPV6_MIN_MTU
  335. #define IPV6_MIN_MTU 1280
  336. #endif /* IPV6_MIN_MTU */
  337. #ifndef AF_INET6
  338. #define AF_INET6 28
  339. #endif /* AF_INET6 */
  340. #define MAXINCLUDES 10
  341. #ifndef HAVE_B64_NTOP
  342. int b64_ntop(uint8_t const *src, size_t srclength,
  343. char *target, size_t targsize);
  344. #endif /* !HAVE_B64_NTOP */
  345. #ifndef HAVE_B64_PTON
  346. int b64_pton(char const *src, uint8_t *target, size_t targsize);
  347. #endif /* !HAVE_B64_PTON */
  348. #ifndef HAVE_FSEEKO
  349. #define fseeko fseek
  350. #define ftello ftell
  351. #endif /* HAVE_FSEEKO */
  352. #ifndef HAVE_SNPRINTF
  353. #include <stdarg.h>
  354. int snprintf (char *str, size_t count, const char *fmt, ...);
  355. int vsnprintf (char *str, size_t count, const char *fmt, va_list arg);
  356. #endif /* HAVE_SNPRINTF */
  357. #ifndef HAVE_INET_PTON
  358. int inet_pton(int af, const char* src, void* dst);
  359. #endif /* HAVE_INET_PTON */
  360. #ifndef HAVE_INET_NTOP
  361. const char *inet_ntop(int af, const void *src, char *dst, size_t size);
  362. #endif
  363. #ifndef HAVE_INET_ATON
  364. int inet_aton(const char *cp, struct in_addr *addr);
  365. #endif
  366. #ifndef HAVE_MEMMOVE
  367. void *memmove(void *dest, const void *src, size_t n);
  368. #endif
  369. #ifndef HAVE_STRLCAT
  370. size_t strlcat(char *dst, const char *src, size_t siz);
  371. #endif
  372. #ifndef HAVE_STRLCPY
  373. size_t strlcpy(char *dst, const char *src, size_t siz);
  374. #endif
  375. #ifndef HAVE_REALLOCARRAY
  376. void* reallocarray(void *ptr, size_t nmemb, size_t size);
  377. #endif
  378. #ifndef HAVE_GETADDRINFO
  379. #include "compat/fake-rfc2553.h"
  380. #endif
  381. #ifndef HAVE_STRPTIME
  382. #define HAVE_STRPTIME 1
  383. char *strptime(const char *s, const char *format, struct tm *tm);
  384. #endif
  385. #ifndef STRPTIME_WORKS
  386. #define STRPTIME_WORKS 1
  387. char *nsd_strptime(const char *s, const char *format, struct tm *tm);
  388. #define strptime(a,b,c) nsd_strptime((a),(b),(c))
  389. #endif
  390. #if (HAVE_CPU_SET_T || HAVE_CPUSET_T)
  391. #include "compat/cpuset.h"
  392. #endif
  393. #ifndef HAVE_SETPROCTITLE
  394. #ifdef __linux__
  395. #define HAVE_SETPROCTITLE 1
  396. #include <stdarg.h>
  397. void setproctitle(const char *fmt, ...);
  398. #endif
  399. #endif
  400. #ifdef MEMCMP_IS_BROKEN
  401. #include "compat/memcmp.h"
  402. #define memcmp memcmp_nsd
  403. int memcmp(const void *x, const void *y, size_t n);
  404. #endif
  405. #ifndef MAXHOSTNAMELEN
  406. #define MAXHOSTNAMELEN 256
  407. #endif
  408. #ifndef CONFIG_DEFINES
  409. #define CONFIG_DEFINES
  410. #ifndef HAVE_STRUCT_TIMESPEC
  411. #ifndef __timespec_defined
  412. #define __timespec_defined 1
  413. struct timespec {
  414. long tv_sec; /* seconds */
  415. long tv_nsec; /* nanoseconds */
  416. };
  417. #endif /* !__timespec_defined */
  418. #endif /* !HAVE_STRUCT_TIMESPEC */
  419. #endif /* !CONFIG_DEFINES */
  420. #ifdef PACKED_STRUCTS
  421. #define ATTR_PACKED __attribute__((packed))
  422. #else
  423. #define ATTR_PACKED
  424. #endif