Import bind-9.3.4
[dragonfly.git] / contrib / bind-9.3 / lib / lwres / man / lwres_hstrerror.html
1 <!--
2  - Copyright (C) 2004, 2005 Internet Systems Consortium, Inc. ("ISC")
3  - Copyright (C) 2000, 2001 Internet Software Consortium.
4  - 
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.
8  - 
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.
16 -->
17 <!-- $Id: lwres_hstrerror.html,v 1.5.2.1.4.12 2006/06/29 13:02:31 marka Exp $ -->
18 <html>
19 <head>
20 <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
21 <title>lwres_hstrerror</title>
22 <meta name="generator" content="DocBook XSL Stylesheets V1.70.1">
23 </head>
24 <body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="refentry" lang="en">
25 <a name="id2482688"></a><div class="titlepage"></div>
26 <div class="refnamediv">
27 <h2>Name</h2>
28 <p>lwres_herror, lwres_hstrerror &#8212; lightweight resolver error message generation</p>
29 </div>
30 <div class="refsynopsisdiv">
31 <h2>Synopsis</h2>
32 <div class="funcsynopsis">
33 <pre class="funcsynopsisinfo">#include &lt;lwres/netdb.h&gt;</pre>
34 <p><code class="funcdef">
35 void
36 <b class="fsfunc">lwres_herror</b>(</code>const char *s<code>)</code>;</p>
37 <p><code class="funcdef">
38 const char *
39 <b class="fsfunc">lwres_hstrerror</b>(</code>int err<code>)</code>;</p>
40 </div>
41 </div>
42 <div class="refsect1" lang="en">
43 <a name="id2549424"></a><h2>DESCRIPTION</h2>
44 <p>
45 <code class="function">lwres_herror()</code> prints the string
46 <em class="parameter"><code>s</code></em> on <span class="type">stderr</span> followed by the string
47 generated by <code class="function">lwres_hstrerror()</code> for the error code
48 stored in the global variable <code class="constant">lwres_h_errno</code>.
49 </p>
50 <p>
51 <code class="function">lwres_hstrerror()</code> returns an appropriate string
52 for the error code gievn by <em class="parameter"><code>err</code></em>.  The values of
53 the error codes and messages are as follows:
54
55 </p>
56 <div class="variablelist"><dl>
57 <dt><span class="term"><span class="errorcode">NETDB_SUCCESS</span></span></dt>
58 <dd><p>
59 <span class="errorname">Resolver Error 0 (no error)</span>
60 </p></dd>
61 <dt><span class="term"><span class="errorcode">HOST_NOT_FOUND</span></span></dt>
62 <dd><p>
63 <span class="errorname">Unknown host</span>
64 </p></dd>
65 <dt><span class="term"><span class="errorcode">TRY_AGAIN</span></span></dt>
66 <dd><p>
67 <span class="errorname">Host name lookup failure</span>
68 </p></dd>
69 <dt><span class="term"><span class="errorcode">NO_RECOVERY</span></span></dt>
70 <dd><p>
71 <span class="errorname">Unknown server error</span>
72 </p></dd>
73 <dt><span class="term"><span class="errorcode">NO_DATA</span></span></dt>
74 <dd><p>
75 <span class="errorname">No address associated with name</span>
76 </p></dd>
77 </dl></div>
78 <p>
79 </p>
80 </div>
81 <div class="refsect1" lang="en">
82 <a name="id2549536"></a><h2>RETURN VALUES</h2>
83 <p>
84 The string <span class="errorname">Unknown resolver error</span> is returned by
85 <code class="function">lwres_hstrerror()</code>
86 when the value of
87 <code class="constant">lwres_h_errno</code>
88 is not a valid error code.
89 </p>
90 </div>
91 <div class="refsect1" lang="en">
92 <a name="id2549555"></a><h2>SEE ALSO</h2>
93 <p>
94 <span class="citerefentry"><span class="refentrytitle">herror</span>(3)</span>,
95
96 <span class="citerefentry"><span class="refentrytitle">lwres_hstrerror</span>(3)</span>.
97 </p>
98 </div>
99 </div></body>
100 </html>