lwres_hstrerror.html revision fd2597f75693a2279fdf588bd40dfe2407c42028
010a51c427bfb6ab658fc0056955a1a5b69810beTinderbox User - Copyright (C) 2004, 2005, 2007, 2014, 2015 Internet Systems Consortium, Inc. ("ISC")
75c0816e8295e180f4bc7f10db3d0d880383bc1cMark Andrews - Copyright (C) 2000, 2001 Internet Software Consortium.
4a14ce5ba00ab7bc55c99ffdcf59c7a4ab902721Automatic Updater - Permission to use, copy, modify, and/or distribute this software for any
ddccd5811feff696ba460dabfb666ce61040f545Andreas Gustafsson - purpose with or without fee is hereby granted, provided that the above
ddccd5811feff696ba460dabfb666ce61040f545Andreas Gustafsson - copyright notice and this permission notice appear in all copies.
8a66318e41ed14c5a88130e8c362610e8faa2121Mark Andrews - THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
8a66318e41ed14c5a88130e8c362610e8faa2121Mark Andrews - REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein - AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
8a66318e41ed14c5a88130e8c362610e8faa2121Mark Andrews - INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
8a66318e41ed14c5a88130e8c362610e8faa2121Mark Andrews - LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
8a66318e41ed14c5a88130e8c362610e8faa2121Mark Andrews - OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
8a66318e41ed14c5a88130e8c362610e8faa2121Mark Andrews - PERFORMANCE OF THIS SOFTWARE.
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User<meta name="generator" content="DocBook XSL Stylesheets V1.78.1">
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="refentry">
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User<a name="id-1"></a><div class="titlepage"></div>
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User<p>lwres_herror, lwres_hstrerror — lightweight resolver error message generation</p>
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein<pre class="funcsynopsisinfo">#include <lwres/netdb.h></pre>
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User<table border="0" class="funcprototype-table" summary="Function synopsis" style="cellspacing: 0; cellpadding: 0;"><tr>
2eeb74d1cf5355dd98f6d507a10086e16bb08c4bTinderbox User<td>const char *<var class="pdparam">s</var><code>)</code>;</td>
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User<table border="0" class="funcprototype-table" summary="Function synopsis" style="cellspacing: 0; cellpadding: 0;"><tr>
e21a2904f02a03fa06b6db04d348f65fe9c67b2bMark Andrews<b class="fsfunc">lwres_hstrerror</b>(</code></td>
2eeb74d1cf5355dd98f6d507a10086e16bb08c4bTinderbox User<td>int <var class="pdparam">err</var><code>)</code>;</td>
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User<p><code class="function">lwres_herror()</code>
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein prints the string <em class="parameter"><code>s</code></em> on
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein <span class="type">stderr</span> followed by the string generated by
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein <code class="function">lwres_hstrerror()</code> for the error code stored
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein in the global variable <code class="constant">lwres_h_errno</code>.
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User<p><code class="function">lwres_hstrerror()</code>
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein returns an appropriate string for the error code gievn by
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein <em class="parameter"><code>err</code></em>. The values of the error codes and
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein messages are as follows:
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User<div class="variablelist"><dl class="variablelist">
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein<dt><span class="term"><span class="errorcode">NETDB_SUCCESS</span></span></dt>
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User<dd><p><span class="errorname">Resolver Error 0 (no error)</span>
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein<dt><span class="term"><span class="errorcode">HOST_NOT_FOUND</span></span></dt>
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User<dd><p><span class="errorname">Unknown host</span>
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein<dt><span class="term"><span class="errorcode">TRY_AGAIN</span></span></dt>
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User<dd><p><span class="errorname">Host name lookup failure</span>
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein<dt><span class="term"><span class="errorcode">NO_RECOVERY</span></span></dt>
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User<dd><p><span class="errorname">Unknown server error</span>
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein<dt><span class="term"><span class="errorcode">NO_DATA</span></span></dt>
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User<dd><p><span class="errorname">No address associated with name</span>
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein The string <span class="errorname">Unknown resolver error</span> is returned by
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein when the value of
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein is not a valid error code.
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User<p><span class="citerefentry"><span class="refentrytitle">herror</span>(3)</span>,
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User <span class="citerefentry"><span class="refentrytitle">lwres_hstrerror</span>(3)</span>.