157N/A<!
DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook V4.1//EN">
157N/A - Copyright (C) 2004, 2005 Internet Systems Consortium, Inc. ("ISC") 157N/A - Copyright (C) 2000, 2001 Internet Software Consortium. 157N/A - Permission to use, copy, modify, and distribute this software for any 180N/A - purpose with or without fee is hereby granted, provided that the above 157N/A - copyright notice and this permission notice appear in all copies. 157N/A - THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH 157N/A - REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY 157N/A - AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT, 157N/A - INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM 157N/A - LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE 157N/A - OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR 157N/A - PERFORMANCE OF THIS SOFTWARE. 157N/A<
date>Jun 30, 2000</
date>
157N/A<
refentrytitle>lwres_hstrerror</
refentrytitle>
157N/A<
manvolnum>3</
manvolnum>
157N/A<
refmiscinfo>BIND9</
refmiscinfo>
157N/A<
refname>lwres_herror</
refname>
157N/A<
refname>lwres_hstrerror</
refname>
157N/A<
refpurpose>lightweight resolver error message generation</
refpurpose>
157N/A<
function>lwres_herror</
function></
funcdef>
166N/A<
paramdef>const char *s</
paramdef>
157N/A<
function>lwres_hstrerror</
function></
funcdef>
157N/A<
paramdef>int err</
paramdef>
189N/A<
title>DESCRIPTION</
title>
189N/A<
function>lwres_herror()</
function> prints the string
157N/A<
parameter>s</
parameter> on <
type>stderr</
type> followed by the string
157N/Agenerated by <
function>lwres_hstrerror()</
function> for the error code
157N/Astored in the global variable <
constant>lwres_h_errno</
constant>.
189N/A<
function>lwres_hstrerror()</
function> returns an appropriate string
189N/Afor the error code gievn by <
parameter>err</
parameter>. The values of
189N/Athe error codes and messages are as follows:
189N/A<
varlistentry><
term><
errorcode>NETDB_SUCCESS</
errorcode></
term>
157N/A<
errorname>Resolver Error 0 (no error)</
errorname>
325N/A</
para></
listitem></
varlistentry>
325N/A<
varlistentry><
term><
errorcode>HOST_NOT_FOUND</
errorcode></
term>
157N/A<
errorname>Unknown host</
errorname>
157N/A</
para></
listitem></
varlistentry>
157N/A<
varlistentry><
term><
errorcode>TRY_AGAIN</
errorcode></
term>
325N/A<
errorname>Host name lookup failure</
errorname>
189N/A</
para></
listitem></
varlistentry>
157N/A<
varlistentry><
term><
errorcode>NO_RECOVERY</
errorcode></
term>
157N/A<
errorname>Unknown server error</
errorname>
157N/A</
para></
listitem></
varlistentry>
157N/A<
varlistentry><
term><
errorcode>NO_DATA</
errorcode></
term>
325N/A<
errorname>No address associated with name</
errorname>
157N/A</
para></
listitem></
varlistentry>
<
title>RETURN VALUES</
title>
The string <
errorname>Unknown resolver error</
errorname> is returned by
<
function>lwres_hstrerror()</
function>
<
constant>lwres_h_errno</
constant>
is not a valid error code.
<
refentrytitle>herror</
refentrytitle><
manvolnum>3</
manvolnum>
<
refentrytitle>lwres_hstrerror</
refentrytitle><
manvolnum>3</
manvolnum>