308N/A<!
DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook V4.1//EN">
308N/A - Copyright (C) 2004, 2005 Internet Systems Consortium, Inc. ("ISC") 308N/A - Copyright (C) 2000, 2001 Internet Software Consortium. 308N/A - Permission to use, copy, modify, and distribute this software for any 308N/A - purpose with or without fee is hereby granted, provided that the above 308N/A - copyright notice and this permission notice appear in all copies. 308N/A - THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH 308N/A - REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY 308N/A - AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT, 308N/A - INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM 308N/A - LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE 308N/A - OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR 308N/A - PERFORMANCE OF THIS SOFTWARE. 308N/A<
date>Jun 30, 2000</
date>
308N/A<
refentrytitle>lwres_config</
refentrytitle>
308N/A<
manvolnum>3</
manvolnum>
308N/A<
refmiscinfo>BIND9</
refmiscinfo>
308N/A<
refname>lwres_conf_init</
refname>
308N/A<
refname>lwres_conf_clear</
refname>
308N/A<
refname>lwres_conf_parse</
refname>
308N/A<
refname>lwres_conf_print</
refname>
308N/A<
refname>lwres_conf_get</
refname>
308N/A<
refpurpose>lightweight resolver configuration</
refpurpose>
308N/A<
function>lwres_conf_init</
function></
funcdef>
308N/A<
paramdef>lwres_context_t *ctx</
paramdef>
<
function>lwres_conf_clear</
function></
funcdef>
<
paramdef>lwres_context_t *ctx</
paramdef>
<
function>lwres_conf_parse</
function></
funcdef>
<
paramdef>lwres_context_t *ctx</
paramdef>
<
paramdef>const char *filename</
paramdef>
<
function>lwres_conf_print</
function></
funcdef>
<
paramdef>lwres_context_t *ctx</
paramdef>
<
paramdef>FILE *fp</
paramdef>
<
function>lwres_conf_get</
function></
funcdef>
<
paramdef>lwres_context_t *ctx</
paramdef>
<
title>DESCRIPTION</
title>
<
function>lwres_conf_init()</
function>
<
type>lwres_conf_t</
type>
structure for lightweight resolver context
<
parameter>ctx</
parameter>.
<
function>lwres_conf_clear()</
function>
frees up all the internal memory used by
<
type>lwres_conf_t</
type>
structure in resolver context
<
parameter>ctx</
parameter>.
<
function>lwres_conf_parse()</
function>
<
parameter>filename</
parameter>
and parses it to initialise the resolver context
<
parameter>ctx</
parameter>'s
<
type>lwres_conf_t</
type>
<
function>lwres_conf_print()</
function>
<
type>lwres_conf_t</
type>
structure for resolver context
<
parameter>ctx</
parameter>
<
parameter>fp</
parameter>.
<
title>RETURN VALUES</
title>
<
function>lwres_conf_parse()</
function>
<
errorcode>LWRES_R_SUCCESS</
errorcode>
if it successfully read and parsed
<
parameter>filename</
parameter>.
<
errorcode>LWRES_R_FAILURE</
errorcode>
<
parameter>filename</
parameter>
could not be opened or contained incorrect
<
function>lwres_conf_print()</
function>
<
errorcode>LWRES_R_SUCCESS</
errorcode>
unless an error occurred when converting the network addresses to a
numeric host address string.
If this happens, the function returns
<
errorcode>LWRES_R_FAILURE</
errorcode>.
<
refentrytitle>stdio</
refentrytitle><
manvolnum>3</
manvolnum>
<
refentrytitle>resolver</
refentrytitle><
manvolnum>5</
manvolnum>