ntpaths.c revision dafcb997e390efa4423883dafd100c975c4095d6
664917bedafa65dee4349c84324a31731aa1e228Francis Dupont * Copyright (C) 2004 Internet Systems Consortium, Inc. ("ISC")
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrews * Copyright (C) 2001 Internet Software Consortium.
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrews * Permission to use, copy, modify, and distribute this software for any
664917bedafa65dee4349c84324a31731aa1e228Francis Dupont * purpose with or without fee is hereby granted, provided that the above
bc171df6ca2a6edb8c05e246be9a44add9a128eaAutomatic Updater * copyright notice and this permission notice appear in all copies.
664917bedafa65dee4349c84324a31731aa1e228Francis Dupont * THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
664917bedafa65dee4349c84324a31731aa1e228Francis Dupont * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
664917bedafa65dee4349c84324a31731aa1e228Francis Dupont * AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
664917bedafa65dee4349c84324a31731aa1e228Francis Dupont * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
664917bedafa65dee4349c84324a31731aa1e228Francis Dupont * LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
664917bedafa65dee4349c84324a31731aa1e228Francis Dupont * OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
664917bedafa65dee4349c84324a31731aa1e228Francis Dupont * PERFORMANCE OF THIS SOFTWARE.
664917bedafa65dee4349c84324a31731aa1e228Francis Dupont/* $Id: ntpaths.c,v 1.9 2004/03/05 05:11:58 marka Exp $ */
664917bedafa65dee4349c84324a31731aa1e228Francis Dupont * This module fetches the required path information that is specific
664917bedafa65dee4349c84324a31731aa1e228Francis Dupont * to NT systems which can have its configuration and system files
664917bedafa65dee4349c84324a31731aa1e228Francis Dupont * almost anywhere. It can be used to override whatever the application
#include <config.h>
isc_ntpaths_init() {
!= ERROR_SUCCESS)
if (!Initialized)
switch (ind) {
case NAMED_CONF_PATH:
return (ns_confFile);
case LWRES_CONF_PATH:
return (lwresd_confFile);
case RESOLV_CONF_PATH:
return (lwresd_resolvconfFile);
case RNDC_CONF_PATH:
return (rndc_confFile);
case NAMED_PID_PATH:
return (ns_defaultpidfile);
case LWRESD_PID_PATH:
return (lwresd_defaultpidfile);
case LOCAL_STATE_DIR:
return (local_state_dir);
case SYS_CONF_DIR:
return (sys_conf_dir);
case RNDC_KEY_PATH:
return (rndc_keyFile);
return (NULL);