dlz_dlopen_driver.c revision 45b727f651aba2cbd2f9db51ccfb4b541520a5de
16201b15a6e228bf289f2448cb3b4d6ef47ff621Tinderbox User * Copyright (C) 2011-2013 Internet Systems Consortium, Inc. ("ISC")
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrews * Permission to use, copy, modify, and/or distribute this software for any
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrews * purpose with or without fee is hereby granted, provided that the above
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrews * copyright notice and this permission notice appear in all copies.
55e5c51e661e23e24573db84114a3837817745c9Evan Hunt * THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
55e5c51e661e23e24573db84114a3837817745c9Evan Hunt * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
55e5c51e661e23e24573db84114a3837817745c9Evan Hunt * AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
55e5c51e661e23e24573db84114a3837817745c9Evan Hunt * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
55e5c51e661e23e24573db84114a3837817745c9Evan Hunt * LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
55e5c51e661e23e24573db84114a3837817745c9Evan Hunt * OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
55e5c51e661e23e24573db84114a3837817745c9Evan Hunt * PERFORMANCE OF THIS SOFTWARE.
55e5c51e661e23e24573db84114a3837817745c9Evan Huntstatic dns_sdlzimplementation_t *dlz_dlopen = NULL;
55e5c51e661e23e24573db84114a3837817745c9Evan Hunttypedef struct dlopen_data {
char *dl_path;
char *dlzname;
void *dl_handle;
void *dbdata;
unsigned int flags;
int version;
static isc_result_t
return (ISC_R_NOPERM);
return (result);
static isc_result_t
const char *client)
return (ISC_R_NOPERM);
return (result);
static isc_result_t
return (ISC_R_NOTIMPLEMENTED);
return (result);
static isc_result_t
return (result);
static isc_result_t
return (result);
return (ptr);
* Called at startup for each dlopen zone in named.conf
static isc_result_t
int dlopen_flags = 0;
return (ISC_R_FAILURE);
return (result);
return (ISC_R_NOMEMORY);
goto failed;
goto failed;
goto failed;
#ifdef RTLD_DEEPBIND
goto failed;
goto failed;
goto failed;
NULL);
goto failed;
return (ISC_R_SUCCESS);
if (dlopen_flags != 0)
#ifdef HAVE_DLCLOSE
return (result);
#ifdef HAVE_DLCLOSE
static isc_result_t
void **versionp)
return (ISC_R_NOTIMPLEMENTED);
return (result);
static isc_result_t
return (ISC_R_SUCCESS);
return (result);
static isc_boolean_t
return (ISC_FALSE);
return (ret);
static isc_result_t
return (ISC_R_NOTIMPLEMENTED);
return (result);
static isc_result_t
return (ISC_R_NOTIMPLEMENTED);
return (result);
static isc_result_t
return (ISC_R_NOTIMPLEMENTED);
return (result);
#ifndef ISC_DLZ_DLOPEN
return (ISC_R_NOTIMPLEMENTED);
return (result);
dlz_dlopen_clear(void) {
#ifdef ISC_DLZ_DLOPEN