lwres_hstrerror.html revision 75c0816e8295e180f4bc7f10db3d0d880383bc1c
1ccbfca64ae86ace521053773001cb995352f96fBob Halley<!--
1ccbfca64ae86ace521053773001cb995352f96fBob Halley - Copyright (C) 2004, 2005 Internet Systems Consortium, Inc. ("ISC")
1ccbfca64ae86ace521053773001cb995352f96fBob Halley - Copyright (C) 2000, 2001 Internet Software Consortium.
1ccbfca64ae86ace521053773001cb995352f96fBob Halley -
1ccbfca64ae86ace521053773001cb995352f96fBob Halley - Permission to use, copy, modify, and distribute this software for any
1ccbfca64ae86ace521053773001cb995352f96fBob Halley - purpose with or without fee is hereby granted, provided that the above
1ccbfca64ae86ace521053773001cb995352f96fBob Halley - copyright notice and this permission notice appear in all copies.
1ccbfca64ae86ace521053773001cb995352f96fBob Halley -
1ccbfca64ae86ace521053773001cb995352f96fBob Halley - THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
1ccbfca64ae86ace521053773001cb995352f96fBob Halley - REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
1ccbfca64ae86ace521053773001cb995352f96fBob Halley - AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
1ccbfca64ae86ace521053773001cb995352f96fBob Halley - INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
1ccbfca64ae86ace521053773001cb995352f96fBob Halley - LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
1ccbfca64ae86ace521053773001cb995352f96fBob Halley - OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
1ccbfca64ae86ace521053773001cb995352f96fBob Halley - PERFORMANCE OF THIS SOFTWARE.
1ccbfca64ae86ace521053773001cb995352f96fBob Halley-->
1ccbfca64ae86ace521053773001cb995352f96fBob Halley<!-- $Id: lwres_hstrerror.html,v 1.14 2005/05/13 03:14:15 marka Exp $ -->
1ccbfca64ae86ace521053773001cb995352f96fBob Halley<html>
1ccbfca64ae86ace521053773001cb995352f96fBob Halley<head>
1ccbfca64ae86ace521053773001cb995352f96fBob Halley<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
1ccbfca64ae86ace521053773001cb995352f96fBob Halley<title>lwres_hstrerror</title>
1ccbfca64ae86ace521053773001cb995352f96fBob Halley<meta name="generator" content="DocBook XSL Stylesheets V1.68.1">
1ccbfca64ae86ace521053773001cb995352f96fBob Halley</head>
1ccbfca64ae86ace521053773001cb995352f96fBob Halley<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="refentry" lang="en">
1ccbfca64ae86ace521053773001cb995352f96fBob Halley<a name="id2456836"></a><div class="titlepage"></div>
1ccbfca64ae86ace521053773001cb995352f96fBob Halley<div class="refnamediv">
1ccbfca64ae86ace521053773001cb995352f96fBob Halley<h2>Name</h2>
4dfbac743493fc56a1ae391130b27f9517acb803Bob Halley<p>lwres_herror, lwres_hstrerror &#8212; lightweight resolver error message generation</p>
4dfbac743493fc56a1ae391130b27f9517acb803Bob Halley</div>
e5c2e16bb21387962f0d04567d44d1a34cd83b4fBob Halley<div class="refsynopsisdiv">
1ccbfca64ae86ace521053773001cb995352f96fBob Halley<h2>Synopsis</h2>
1ccbfca64ae86ace521053773001cb995352f96fBob Halley<div class="funcsynopsis">
1ccbfca64ae86ace521053773001cb995352f96fBob Halley<pre class="funcsynopsisinfo">#include &lt;lwres/netdb.h&gt;</pre>
1ccbfca64ae86ace521053773001cb995352f96fBob Halley<p><code class="funcdef">
1ccbfca64ae86ace521053773001cb995352f96fBob Halleyvoid
1ccbfca64ae86ace521053773001cb995352f96fBob Halley<b class="fsfunc">lwres_herror</b>(</code>const char *<var class="pdparam">s</var><code>)</code>;</p>
1ccbfca64ae86ace521053773001cb995352f96fBob Halley<p><code class="funcdef">
1ccbfca64ae86ace521053773001cb995352f96fBob Halleyconst char *
1ccbfca64ae86ace521053773001cb995352f96fBob Halley<b class="fsfunc">lwres_hstrerror</b>(</code>int <var class="pdparam">err</var><code>)</code>;</p>
1ccbfca64ae86ace521053773001cb995352f96fBob Halley</div>
1ccbfca64ae86ace521053773001cb995352f96fBob Halley</div>
4dfbac743493fc56a1ae391130b27f9517acb803Bob Halley<div class="refsect1" lang="en">
4dfbac743493fc56a1ae391130b27f9517acb803Bob Halley<a name="id2514204"></a><h2>DESCRIPTION</h2>
4dfbac743493fc56a1ae391130b27f9517acb803Bob Halley<p><code class="function">lwres_herror()</code>
4dfbac743493fc56a1ae391130b27f9517acb803Bob Halley prints the string <em class="parameter"><code>s</code></em> on
4dfbac743493fc56a1ae391130b27f9517acb803Bob Halley <span class="type">stderr</span> followed by the string generated by
4dfbac743493fc56a1ae391130b27f9517acb803Bob Halley <code class="function">lwres_hstrerror()</code> for the error code stored
4dfbac743493fc56a1ae391130b27f9517acb803Bob Halley in the global variable <code class="constant">lwres_h_errno</code>.
4dfbac743493fc56a1ae391130b27f9517acb803Bob Halley </p>
e5c2e16bb21387962f0d04567d44d1a34cd83b4fBob Halley<p><code class="function">lwres_hstrerror()</code>
4dfbac743493fc56a1ae391130b27f9517acb803Bob Halley returns an appropriate string for the error code gievn by
4dfbac743493fc56a1ae391130b27f9517acb803Bob Halley <em class="parameter"><code>err</code></em>. The values of the error codes and
4dfbac743493fc56a1ae391130b27f9517acb803Bob Halley messages are as follows:
4dfbac743493fc56a1ae391130b27f9517acb803Bob Halley
4dfbac743493fc56a1ae391130b27f9517acb803Bob Halley </p>
1ccbfca64ae86ace521053773001cb995352f96fBob Halley<div class="variablelist"><dl>
1ccbfca64ae86ace521053773001cb995352f96fBob Halley<dt><span class="term"><span class="errorcode">NETDB_SUCCESS</span></span></dt>
1ccbfca64ae86ace521053773001cb995352f96fBob Halley<dd><p><span class="errorname">Resolver Error 0 (no error)</span>
1ccbfca64ae86ace521053773001cb995352f96fBob Halley </p></dd>
1ccbfca64ae86ace521053773001cb995352f96fBob Halley<dt><span class="term"><span class="errorcode">HOST_NOT_FOUND</span></span></dt>
1ccbfca64ae86ace521053773001cb995352f96fBob Halley<dd><p><span class="errorname">Unknown host</span>
1ccbfca64ae86ace521053773001cb995352f96fBob Halley </p></dd>
1ccbfca64ae86ace521053773001cb995352f96fBob Halley<dt><span class="term"><span class="errorcode">TRY_AGAIN</span></span></dt>
1ccbfca64ae86ace521053773001cb995352f96fBob Halley<dd><p><span class="errorname">Host name lookup failure</span>
1ccbfca64ae86ace521053773001cb995352f96fBob Halley </p></dd>
1ccbfca64ae86ace521053773001cb995352f96fBob Halley<dt><span class="term"><span class="errorcode">NO_RECOVERY</span></span></dt>
1ccbfca64ae86ace521053773001cb995352f96fBob Halley<dd><p><span class="errorname">Unknown server error</span>
1ccbfca64ae86ace521053773001cb995352f96fBob Halley </p></dd>
1ccbfca64ae86ace521053773001cb995352f96fBob Halley<dt><span class="term"><span class="errorcode">NO_DATA</span></span></dt>
1ccbfca64ae86ace521053773001cb995352f96fBob Halley<dd><p><span class="errorname">No address associated with name</span>
1ccbfca64ae86ace521053773001cb995352f96fBob Halley </p></dd>
1ccbfca64ae86ace521053773001cb995352f96fBob Halley</dl></div>
1ccbfca64ae86ace521053773001cb995352f96fBob Halley<p>
1ccbfca64ae86ace521053773001cb995352f96fBob Halley </p>
e5c2e16bb21387962f0d04567d44d1a34cd83b4fBob Halley</div>
e5c2e16bb21387962f0d04567d44d1a34cd83b4fBob Halley<div class="refsect1" lang="en">
e5c2e16bb21387962f0d04567d44d1a34cd83b4fBob Halley<a name="id2514323"></a><h2>RETURN VALUES</h2>
e5c2e16bb21387962f0d04567d44d1a34cd83b4fBob Halley<p>
e5c2e16bb21387962f0d04567d44d1a34cd83b4fBob Halley The string <span class="errorname">Unknown resolver error</span> is returned by
e5c2e16bb21387962f0d04567d44d1a34cd83b4fBob Halley <code class="function">lwres_hstrerror()</code>
e5c2e16bb21387962f0d04567d44d1a34cd83b4fBob Halley when the value of
e5c2e16bb21387962f0d04567d44d1a34cd83b4fBob Halley <code class="constant">lwres_h_errno</code>
e5c2e16bb21387962f0d04567d44d1a34cd83b4fBob Halley is not a valid error code.
e5c2e16bb21387962f0d04567d44d1a34cd83b4fBob Halley </p>
e5c2e16bb21387962f0d04567d44d1a34cd83b4fBob Halley</div>
e5c2e16bb21387962f0d04567d44d1a34cd83b4fBob Halley<div class="refsect1" lang="en">
e5c2e16bb21387962f0d04567d44d1a34cd83b4fBob Halley<a name="id2514343"></a><h2>SEE ALSO</h2>
e5c2e16bb21387962f0d04567d44d1a34cd83b4fBob Halley<p><span class="citerefentry"><span class="refentrytitle">herror</span>(3)</span>,
e5c2e16bb21387962f0d04567d44d1a34cd83b4fBob Halley
e5c2e16bb21387962f0d04567d44d1a34cd83b4fBob Halley <span class="citerefentry"><span class="refentrytitle">lwres_hstrerror</span>(3)</span>.
1ccbfca64ae86ace521053773001cb995352f96fBob Halley </p>
1ccbfca64ae86ace521053773001cb995352f96fBob Halley</div>
1ccbfca64ae86ace521053773001cb995352f96fBob Halley</div></body>
1ccbfca64ae86ace521053773001cb995352f96fBob Halley</html>
1ccbfca64ae86ace521053773001cb995352f96fBob Halley