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