unbound.c (249141) | unbound.c (255579) |
---|---|
1/* 2 * daemon/unbound.c - main program for unbound DNS resolver daemon. 3 * 4 * Copyright (c) 2007, NLnet Labs. All rights reserved. 5 * 6 * This software is open source. 7 * 8 * Redistribution and use in source and binary forms, with or without --- 39 unchanged lines hidden (view full) --- 48#include "util/log.h" 49#include "daemon/daemon.h" 50#include "daemon/remote.h" 51#include "util/config_file.h" 52#include "util/storage/slabhash.h" 53#include "services/listen_dnsport.h" 54#include "services/cache/rrset.h" 55#include "services/cache/infra.h" | 1/* 2 * daemon/unbound.c - main program for unbound DNS resolver daemon. 3 * 4 * Copyright (c) 2007, NLnet Labs. All rights reserved. 5 * 6 * This software is open source. 7 * 8 * Redistribution and use in source and binary forms, with or without --- 39 unchanged lines hidden (view full) --- 48#include "util/log.h" 49#include "daemon/daemon.h" 50#include "daemon/remote.h" 51#include "util/config_file.h" 52#include "util/storage/slabhash.h" 53#include "services/listen_dnsport.h" 54#include "services/cache/rrset.h" 55#include "services/cache/infra.h" |
56#include "util/fptr_wlist.h" |
|
56#include "util/data/msgreply.h" 57#include "util/module.h" 58#include "util/net_help.h" 59#include <signal.h> 60#include <fcntl.h> 61#include <openssl/crypto.h> 62#ifdef HAVE_PWD_H 63#include <pwd.h> --- 23 unchanged lines hidden (view full) --- 87# include "winrc/win_svc.h" 88#endif 89 90#ifdef HAVE_NSS 91/* nss3 */ 92# include "nss.h" 93#endif 94 | 57#include "util/data/msgreply.h" 58#include "util/module.h" 59#include "util/net_help.h" 60#include <signal.h> 61#include <fcntl.h> 62#include <openssl/crypto.h> 63#ifdef HAVE_PWD_H 64#include <pwd.h> --- 23 unchanged lines hidden (view full) --- 88# include "winrc/win_svc.h" 89#endif 90 91#ifdef HAVE_NSS 92/* nss3 */ 93# include "nss.h" 94#endif 95 |
96#ifdef HAVE_SBRK |
|
95/** global debug value to keep track of heap memory allocation */ 96void* unbound_start_brk = 0; | 97/** global debug value to keep track of heap memory allocation */ 98void* unbound_start_brk = 0; |
99#endif |
|
97 98#if !defined(HAVE_EVENT_BASE_GET_METHOD) && (defined(HAVE_EV_LOOP) || defined(HAVE_EV_DEFAULT_LOOP)) 99static const char* ev_backend2str(int b) 100{ 101 switch(b) { 102 case EVBACKEND_SELECT: return "select"; 103 case EVBACKEND_POLL: return "poll"; 104 case EVBACKEND_EPOLL: return "epoll"; --- 659 unchanged lines hidden --- | 100 101#if !defined(HAVE_EVENT_BASE_GET_METHOD) && (defined(HAVE_EV_LOOP) || defined(HAVE_EV_DEFAULT_LOOP)) 102static const char* ev_backend2str(int b) 103{ 104 switch(b) { 105 case EVBACKEND_SELECT: return "select"; 106 case EVBACKEND_POLL: return "poll"; 107 case EVBACKEND_EPOLL: return "epoll"; --- 659 unchanged lines hidden --- |