2 - Copyright (C) 2004, 2005 Internet Systems Consortium, Inc. ("ISC")
3 - Copyright (C) 2000, 2001 Internet Software Consortium.
5 - Permission to use, copy, modify, and distribute this software for any
6 - purpose with or without fee is hereby granted, provided that the above
7 - copyright notice and this permission notice appear in all copies.
9 - THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
10 - REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
11 - AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
12 - INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
13 - LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
14 - OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
15 - PERFORMANCE OF THIS SOFTWARE.
17 <!-- $Id: lwres_config.html,v 1.4.2.1.4.9 2005/10/13 02:33:55 marka Exp $ -->
20 <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
21 <title>lwres_config</title>
22 <meta name="generator" content="DocBook XSL Stylesheets V1.69.1">
24 <body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="refentry" lang="en">
25 <a name="id2463721"></a><div class="titlepage"></div>
26 <div class="refnamediv">
28 <p>lwres_conf_init, lwres_conf_clear, lwres_conf_parse, lwres_conf_print, lwres_conf_get — lightweight resolver configuration</p>
30 <div class="refsynopsisdiv">
32 <div class="funcsynopsis">
33 <pre class="funcsynopsisinfo">#include <lwres/lwres.h></pre>
34 <table border="0" summary="Function synopsis" cellspacing="0" cellpadding="0" style="padding-bottom: 1em"><tr>
35 <td><code class="funcdef">
37 <b class="fsfunc">lwres_conf_init</b>(</code></td>
42 <table border="0" summary="Function synopsis" cellspacing="0" cellpadding="0" style="padding-bottom: 1em"><tr>
43 <td><code class="funcdef">
45 <b class="fsfunc">lwres_conf_clear</b>(</code></td>
50 <table border="0" summary="Function synopsis" cellspacing="0" cellpadding="0" style="padding-bottom: 1em">
52 <td><code class="funcdef">
54 <b class="fsfunc">lwres_conf_parse</b>(</code></td>
65 <table border="0" summary="Function synopsis" cellspacing="0" cellpadding="0" style="padding-bottom: 1em">
67 <td><code class="funcdef">
69 <b class="fsfunc">lwres_conf_print</b>(</code></td>
80 <table border="0" summary="Function synopsis" cellspacing="0" cellpadding="0"><tr>
81 <td><code class="funcdef">
83 <b class="fsfunc">lwres_conf_get</b>(</code></td>
90 <div class="refsect1" lang="en">
91 <a name="id2525910"></a><h2>DESCRIPTION</h2>
93 <code class="function">lwres_conf_init()</code>
95 <span class="type">lwres_conf_t</span>
96 structure for lightweight resolver context
97 <em class="parameter"><code>ctx</code></em>.
100 <code class="function">lwres_conf_clear()</code>
101 frees up all the internal memory used by
103 <span class="type">lwres_conf_t</span>
104 structure in resolver context
105 <em class="parameter"><code>ctx</code></em>.
108 <code class="function">lwres_conf_parse()</code>
110 <em class="parameter"><code>filename</code></em>
111 and parses it to initialise the resolver context
112 <em class="parameter"><code>ctx</code></em>'s
113 <span class="type">lwres_conf_t</span>
117 <code class="function">lwres_conf_print()</code>
119 <span class="type">lwres_conf_t</span>
120 structure for resolver context
121 <em class="parameter"><code>ctx</code></em>
123 <span class="type">FILE</span>
124 <em class="parameter"><code>fp</code></em>.
127 <div class="refsect1" lang="en">
128 <a name="id2525981"></a><h2>RETURN VALUES</h2>
130 <code class="function">lwres_conf_parse()</code>
132 <span class="errorcode">LWRES_R_SUCCESS</span>
133 if it successfully read and parsed
134 <em class="parameter"><code>filename</code></em>.
136 <span class="errorcode">LWRES_R_FAILURE</span>
138 <em class="parameter"><code>filename</code></em>
139 could not be opened or contained incorrect
143 <code class="function">lwres_conf_print()</code>
145 <span class="errorcode">LWRES_R_SUCCESS</span>
146 unless an error occurred when converting the network addresses to a
147 numeric host address string.
148 If this happens, the function returns
149 <span class="errorcode">LWRES_R_FAILURE</span>.
152 <div class="refsect1" lang="en">
153 <a name="id2526021"></a><h2>SEE ALSO</h2>
155 <span class="citerefentry"><span class="refentrytitle">stdio</span>(3)</span>,
156 <span class="citerefentry"><span class="refentrytitle">resolver</span>(5)</span>.
159 <div class="refsect1" lang="en">
160 <a name="id2526048"></a><h2>FILES</h2>
162 <code class="filename">/etc/resolv.conf</code>