lwres_hstrerror.docbook revision 938440694b33cd752e9e4b71a526368b4811c177
342440ec94087b8c751c580ab9ed6c693d31d418Prasad Singamsetty<!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN"
342440ec94087b8c751c580ab9ed6c693d31d418Prasad Singamsetty "http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd"
342440ec94087b8c751c580ab9ed6c693d31d418Prasad Singamsetty [<!ENTITY mdash "&#8212;">]>
342440ec94087b8c751c580ab9ed6c693d31d418Prasad Singamsetty<!--
342440ec94087b8c751c580ab9ed6c693d31d418Prasad Singamsetty - Copyright (C) 2004, 2005, 2007, 2014 Internet Systems Consortium, Inc. ("ISC")
342440ec94087b8c751c580ab9ed6c693d31d418Prasad Singamsetty - Copyright (C) 2000, 2001 Internet Software Consortium.
342440ec94087b8c751c580ab9ed6c693d31d418Prasad Singamsetty -
342440ec94087b8c751c580ab9ed6c693d31d418Prasad Singamsetty - Permission to use, copy, modify, and/or distribute this software for any
342440ec94087b8c751c580ab9ed6c693d31d418Prasad Singamsetty - purpose with or without fee is hereby granted, provided that the above
342440ec94087b8c751c580ab9ed6c693d31d418Prasad Singamsetty - copyright notice and this permission notice appear in all copies.
342440ec94087b8c751c580ab9ed6c693d31d418Prasad Singamsetty -
342440ec94087b8c751c580ab9ed6c693d31d418Prasad Singamsetty - THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
342440ec94087b8c751c580ab9ed6c693d31d418Prasad Singamsetty - REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
342440ec94087b8c751c580ab9ed6c693d31d418Prasad Singamsetty - AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
342440ec94087b8c751c580ab9ed6c693d31d418Prasad Singamsetty - INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
342440ec94087b8c751c580ab9ed6c693d31d418Prasad Singamsetty - LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
342440ec94087b8c751c580ab9ed6c693d31d418Prasad Singamsetty - OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
342440ec94087b8c751c580ab9ed6c693d31d418Prasad Singamsetty - PERFORMANCE OF THIS SOFTWARE.
342440ec94087b8c751c580ab9ed6c693d31d418Prasad Singamsetty-->
342440ec94087b8c751c580ab9ed6c693d31d418Prasad Singamsetty
342440ec94087b8c751c580ab9ed6c693d31d418Prasad Singamsetty<refentry>
342440ec94087b8c751c580ab9ed6c693d31d418Prasad Singamsetty
342440ec94087b8c751c580ab9ed6c693d31d418Prasad Singamsetty <refentryinfo>
342440ec94087b8c751c580ab9ed6c693d31d418Prasad Singamsetty <date>June 18, 2007</date>
342440ec94087b8c751c580ab9ed6c693d31d418Prasad Singamsetty </refentryinfo>
342440ec94087b8c751c580ab9ed6c693d31d418Prasad Singamsetty
342440ec94087b8c751c580ab9ed6c693d31d418Prasad Singamsetty <refmeta>
342440ec94087b8c751c580ab9ed6c693d31d418Prasad Singamsetty <refentrytitle>lwres_hstrerror</refentrytitle>
342440ec94087b8c751c580ab9ed6c693d31d418Prasad Singamsetty <manvolnum>3</manvolnum>
342440ec94087b8c751c580ab9ed6c693d31d418Prasad Singamsetty <refmiscinfo>BIND9</refmiscinfo>
342440ec94087b8c751c580ab9ed6c693d31d418Prasad Singamsetty </refmeta>
342440ec94087b8c751c580ab9ed6c693d31d418Prasad Singamsetty
342440ec94087b8c751c580ab9ed6c693d31d418Prasad Singamsetty <docinfo>
342440ec94087b8c751c580ab9ed6c693d31d418Prasad Singamsetty <copyright>
342440ec94087b8c751c580ab9ed6c693d31d418Prasad Singamsetty <year>2004</year>
342440ec94087b8c751c580ab9ed6c693d31d418Prasad Singamsetty <year>2005</year>
342440ec94087b8c751c580ab9ed6c693d31d418Prasad Singamsetty <year>2007</year>
342440ec94087b8c751c580ab9ed6c693d31d418Prasad Singamsetty <year>2014</year>
342440ec94087b8c751c580ab9ed6c693d31d418Prasad Singamsetty <holder>Internet Systems Consortium, Inc. ("ISC")</holder>
342440ec94087b8c751c580ab9ed6c693d31d418Prasad Singamsetty </copyright>
342440ec94087b8c751c580ab9ed6c693d31d418Prasad Singamsetty <copyright>
342440ec94087b8c751c580ab9ed6c693d31d418Prasad Singamsetty <year>2000</year>
342440ec94087b8c751c580ab9ed6c693d31d418Prasad Singamsetty <year>2001</year>
342440ec94087b8c751c580ab9ed6c693d31d418Prasad Singamsetty <holder>Internet Software Consortium.</holder>
342440ec94087b8c751c580ab9ed6c693d31d418Prasad Singamsetty </copyright>
342440ec94087b8c751c580ab9ed6c693d31d418Prasad Singamsetty </docinfo>
342440ec94087b8c751c580ab9ed6c693d31d418Prasad Singamsetty
342440ec94087b8c751c580ab9ed6c693d31d418Prasad Singamsetty <refnamediv>
342440ec94087b8c751c580ab9ed6c693d31d418Prasad Singamsetty <refname>lwres_herror</refname>
342440ec94087b8c751c580ab9ed6c693d31d418Prasad Singamsetty <refname>lwres_hstrerror</refname>
342440ec94087b8c751c580ab9ed6c693d31d418Prasad Singamsetty <refpurpose>lightweight resolver error message generation</refpurpose>
342440ec94087b8c751c580ab9ed6c693d31d418Prasad Singamsetty </refnamediv>
342440ec94087b8c751c580ab9ed6c693d31d418Prasad Singamsetty <refsynopsisdiv>
342440ec94087b8c751c580ab9ed6c693d31d418Prasad Singamsetty <funcsynopsis>
342440ec94087b8c751c580ab9ed6c693d31d418Prasad Singamsetty<funcsynopsisinfo>#include &lt;lwres/netdb.h&gt;</funcsynopsisinfo>
342440ec94087b8c751c580ab9ed6c693d31d418Prasad Singamsetty<funcprototype>
342440ec94087b8c751c580ab9ed6c693d31d418Prasad Singamsetty <funcdef>
342440ec94087b8c751c580ab9ed6c693d31d418Prasad Singamsettyvoid
342440ec94087b8c751c580ab9ed6c693d31d418Prasad Singamsetty<function>lwres_herror</function></funcdef>
342440ec94087b8c751c580ab9ed6c693d31d418Prasad Singamsetty <paramdef>const char *<parameter>s</parameter></paramdef>
7014882c6a3672fd0e5d60200af8643ae53c5928Richard Lowe </funcprototype>
7014882c6a3672fd0e5d60200af8643ae53c5928Richard Lowe<funcprototype>
7014882c6a3672fd0e5d60200af8643ae53c5928Richard Lowe <funcdef>
342440ec94087b8c751c580ab9ed6c693d31d418Prasad Singamsettyconst char *
342440ec94087b8c751c580ab9ed6c693d31d418Prasad Singamsetty<function>lwres_hstrerror</function></funcdef>
342440ec94087b8c751c580ab9ed6c693d31d418Prasad Singamsetty <paramdef>int <parameter>err</parameter></paramdef>
342440ec94087b8c751c580ab9ed6c693d31d418Prasad Singamsetty </funcprototype>
342440ec94087b8c751c580ab9ed6c693d31d418Prasad Singamsetty</funcsynopsis>
342440ec94087b8c751c580ab9ed6c693d31d418Prasad Singamsetty </refsynopsisdiv>
342440ec94087b8c751c580ab9ed6c693d31d418Prasad Singamsetty
342440ec94087b8c751c580ab9ed6c693d31d418Prasad Singamsetty <refsect1>
342440ec94087b8c751c580ab9ed6c693d31d418Prasad Singamsetty <title>DESCRIPTION</title>
342440ec94087b8c751c580ab9ed6c693d31d418Prasad Singamsetty
342440ec94087b8c751c580ab9ed6c693d31d418Prasad Singamsetty <para><function>lwres_herror()</function>
342440ec94087b8c751c580ab9ed6c693d31d418Prasad Singamsetty prints the string <parameter>s</parameter> on
342440ec94087b8c751c580ab9ed6c693d31d418Prasad Singamsetty <type>stderr</type> followed by the string generated by
342440ec94087b8c751c580ab9ed6c693d31d418Prasad Singamsetty <function>lwres_hstrerror()</function> for the error code stored
342440ec94087b8c751c580ab9ed6c693d31d418Prasad Singamsetty in the global variable <constant>lwres_h_errno</constant>.
342440ec94087b8c751c580ab9ed6c693d31d418Prasad Singamsetty </para>
342440ec94087b8c751c580ab9ed6c693d31d418Prasad Singamsetty
342440ec94087b8c751c580ab9ed6c693d31d418Prasad Singamsetty <para><function>lwres_hstrerror()</function>
342440ec94087b8c751c580ab9ed6c693d31d418Prasad Singamsetty returns an appropriate string for the error code gievn by
342440ec94087b8c751c580ab9ed6c693d31d418Prasad Singamsetty <parameter>err</parameter>. The values of the error codes and
342440ec94087b8c751c580ab9ed6c693d31d418Prasad Singamsetty messages are as follows:
342440ec94087b8c751c580ab9ed6c693d31d418Prasad Singamsetty
342440ec94087b8c751c580ab9ed6c693d31d418Prasad Singamsetty <variablelist>
342440ec94087b8c751c580ab9ed6c693d31d418Prasad Singamsetty <varlistentry>
342440ec94087b8c751c580ab9ed6c693d31d418Prasad Singamsetty <term><errorcode>NETDB_SUCCESS</errorcode></term>
<listitem>
<para><errorname>Resolver Error 0 (no error)</errorname>
</para>
</listitem>
</varlistentry>
<varlistentry>
<term><errorcode>HOST_NOT_FOUND</errorcode></term>
<listitem>
<para><errorname>Unknown host</errorname>
</para>
</listitem>
</varlistentry>
<varlistentry>
<term><errorcode>TRY_AGAIN</errorcode></term>
<listitem>
<para><errorname>Host name lookup failure</errorname>
</para>
</listitem>
</varlistentry>
<varlistentry>
<term><errorcode>NO_RECOVERY</errorcode></term>
<listitem>
<para><errorname>Unknown server error</errorname>
</para>
</listitem>
</varlistentry>
<varlistentry>
<term><errorcode>NO_DATA</errorcode></term>
<listitem>
<para><errorname>No address associated with name</errorname>
</para>
</listitem>
</varlistentry>
</variablelist>
</para>
</refsect1>
<refsect1>
<title>RETURN VALUES</title>
<para>
The string <errorname>Unknown resolver error</errorname> is returned by
<function>lwres_hstrerror()</function>
when the value of
<constant>lwres_h_errno</constant>
is not a valid error code.
</para>
</refsect1>
<refsect1>
<title>SEE ALSO</title>
<para><citerefentry>
<refentrytitle>herror</refentrytitle><manvolnum>3</manvolnum>
</citerefentry>,
<citerefentry>
<refentrytitle>lwres_hstrerror</refentrytitle><manvolnum>3</manvolnum>
</citerefentry>.
</para>
</refsect1>
</refentry><!--
- Local variables:
- mode: sgml
- End:
-->