globals.h revision 0c27b3fe77ac1d5094ba3521e8142d9e7973133f
/*
* Copyright (C) 1999-2016 Internet Systems Consortium, Inc. ("ISC")
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
#ifndef NAMED_GLOBALS_H
#define NAMED_GLOBALS_H 1
/*! \file */
#ifdef NS_MAIN
#define EXTERN
#define INIT(v) = (v)
#else
#define EXTERN extern
#define INIT(v)
#endif
#ifndef NS_RUN_PID_DIR
#define NS_RUN_PID_DIR 1
#endif
#ifdef ENABLE_AFL
#endif
/*
* XXXRTH We're going to want multiple timer managers eventually. One
* for really short timers, another for client timers, and one
* for zone timers.
*/
/*
* Logging.
*/
/*
* Current configuration information.
*/
"/named.conf");
"/rndc.key");
"/lwresd.conf");
"/resolv.conf");
/*
* Initial resource limits.
*/
/*
* Misc.
*/
EXTERN const char * ns_g_defaultsessionkeyfile
"session.key");
"named.lock");
#if NS_RUN_PID_DIR
"named.pid");
"lwresd.pid");
#else
"/run/lwresd.pid");
#endif
#ifdef HAVE_DNSTAP
EXTERN const char * ns_g_defaultdnstap
"dnstap.sock");
#else
#endif /* HAVE_DNSTAP */
#if defined(USE_PKCS11)
#else
#endif
#ifdef HAVE_GEOIP
#endif
#endif /* NAMED_GLOBALS_H */