lwres_hstrerror.docbook revision 938440694b33cd752e9e4b71a526368b4811c177
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater<!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN"
11e9368a226272085c337e9e74b79808c16fbdbaTinderbox User "http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd"
bef75d63d74f58abc0f834ed271526672777ba29Automatic Updater [<!ENTITY mdash "—">]>
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater - Copyright (C) 2004, 2005, 2007, 2014 Internet Systems Consortium, Inc. ("ISC")
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater - Copyright (C) 2000, 2001 Internet Software Consortium.
bef75d63d74f58abc0f834ed271526672777ba29Automatic Updater - Permission to use, copy, modify, and/or distribute this software for any
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater - purpose with or without fee is hereby granted, provided that the above
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater - copyright notice and this permission notice appear in all copies.
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater - THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater - REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater - AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater - INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater - LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater - OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater - PERFORMANCE OF THIS SOFTWARE.
cd32f419a8a5432fbb139f56ee73cbf68b9350ccTinderbox User <refentryinfo>
b6b8f8a0362da8c749021c4b6376cfb96047912bTinderbox User </refentryinfo>
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater <refentrytitle>lwres_hstrerror</refentrytitle>
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater <holder>Internet Systems Consortium, Inc. ("ISC")</holder>
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater <holder>Internet Software Consortium.</holder>
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User <refpurpose>lightweight resolver error message generation</refpurpose>
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User </refnamediv>
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User <refsynopsisdiv>
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt <funcsynopsis>
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater<funcsynopsisinfo>#include <lwres/netdb.h></funcsynopsisinfo>
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater<funcprototype>
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater <paramdef>const char *<parameter>s</parameter></paramdef>
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt </funcprototype>
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater<funcprototype>
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater<function>lwres_hstrerror</function></funcdef>
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater <paramdef>int <parameter>err</parameter></paramdef>
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater </funcprototype>
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater</funcsynopsis>
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User </refsynopsisdiv>
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater prints the string <parameter>s</parameter> on
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User <type>stderr</type> followed by the string generated by
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User <function>lwres_hstrerror()</function> for the error code stored
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User in the global variable <constant>lwres_h_errno</constant>.
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater returns an appropriate string for the error code gievn by
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater <parameter>err</parameter>. The values of the error codes and
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User messages are as follows:
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater <variablelist>
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater <varlistentry>
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater <term><errorcode>NETDB_SUCCESS</errorcode></term>
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater <para><errorname>Resolver Error 0 (no error)</errorname>
b6b8f8a0362da8c749021c4b6376cfb96047912bTinderbox User </varlistentry>
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater <varlistentry>
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater <term><errorcode>HOST_NOT_FOUND</errorcode></term>
b6b8f8a0362da8c749021c4b6376cfb96047912bTinderbox User </varlistentry>
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater <varlistentry>
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater <term><errorcode>TRY_AGAIN</errorcode></term>
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater <para><errorname>Host name lookup failure</errorname>
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater </varlistentry>