lwres_hstrerror.docbook revision 83a28ca274521e15086fc39febde507bcc4e145e
21f17c42eca9b552d516c38b66564673c60a4504Andreas Gustafsson - Copyright (C) 2000, 2001, 2004, 2005, 2007, 2014-2016 Internet Systems Consortium, Inc. ("ISC")
a7038d1a0513c8e804937ebc95fc9cb3a46c04f5Mark Andrews - This Source Code Form is subject to the terms of the Mozilla Public
21f17c42eca9b552d516c38b66564673c60a4504Andreas Gustafsson - License, v. 2.0. If a copy of the MPL was not distributed with this
21f17c42eca9b552d516c38b66564673c60a4504Andreas Gustafsson - file, You can obtain one at http://mozilla.org/MPL/2.0/.
21f17c42eca9b552d516c38b66564673c60a4504Andreas Gustafsson<!-- Converted by db4-upgrade version 1.0 -->
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews<refentry xmlns:db="http://docbook.org/ns/docbook" version="5.0">
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews <refentryinfo>
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews <corpauthor>Internet Systems Consortium, Inc.</corpauthor>
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews </refentryinfo>
21f17c42eca9b552d516c38b66564673c60a4504Andreas Gustafsson <refentrytitle>lwres_hstrerror</refentrytitle>
e4c6adf028fedafcadee9e22e1e734e9e716471bAndreas Gustafsson <holder>Internet Systems Consortium, Inc. ("ISC")</holder>
9d22ce85ccded7790a511dbe4065723f8d4f80a6Mark Andrews <refpurpose>lightweight resolver error message generation</refpurpose>
9d22ce85ccded7790a511dbe4065723f8d4f80a6Mark Andrews </refnamediv>
9d22ce85ccded7790a511dbe4065723f8d4f80a6Mark Andrews <refsynopsisdiv>
9d22ce85ccded7790a511dbe4065723f8d4f80a6Mark Andrews <funcsynopsis>
21f17c42eca9b552d516c38b66564673c60a4504Andreas Gustafsson<funcsynopsisinfo>#include <lwres/netdb.h></funcsynopsisinfo>
a078776647dc80691fe97e2dd94a2525564df3ecMark Andrews<funcprototype>
49a6051082aac7ef5e358ba74791e94f5c456a15Andreas Gustafsson<function>lwres_herror</function></funcdef>
21f17c42eca9b552d516c38b66564673c60a4504Andreas Gustafsson <paramdef>const char *<parameter>s</parameter></paramdef>
21f17c42eca9b552d516c38b66564673c60a4504Andreas Gustafsson </funcprototype>
21f17c42eca9b552d516c38b66564673c60a4504Andreas Gustafsson<funcprototype>
21f17c42eca9b552d516c38b66564673c60a4504Andreas Gustafsson<function>lwres_hstrerror</function></funcdef>
82493dc831d40482faf20cdb4d4295174879c9f9Andreas Gustafsson <paramdef>int <parameter>err</parameter></paramdef>
82493dc831d40482faf20cdb4d4295174879c9f9Andreas Gustafsson </funcprototype>
82493dc831d40482faf20cdb4d4295174879c9f9Andreas Gustafsson</funcsynopsis>
336ca4423f475d9881ff0dcb326808935be7cd19Andreas Gustafsson </refsynopsisdiv>
58c48b3b48f0de8fa31fc913aff3b8774c1e72e7Andreas Gustafsson <refsection><info><title>DESCRIPTION</title></info>
336ca4423f475d9881ff0dcb326808935be7cd19Andreas Gustafsson <para><function>lwres_herror()</function>
336ca4423f475d9881ff0dcb326808935be7cd19Andreas Gustafsson prints the string <parameter>s</parameter> on
336ca4423f475d9881ff0dcb326808935be7cd19Andreas Gustafsson <type>stderr</type> followed by the string generated by
336ca4423f475d9881ff0dcb326808935be7cd19Andreas Gustafsson <function>lwres_hstrerror()</function> for the error code stored
336ca4423f475d9881ff0dcb326808935be7cd19Andreas Gustafsson in the global variable <constant>lwres_h_errno</constant>.
21f17c42eca9b552d516c38b66564673c60a4504Andreas Gustafsson returns an appropriate string for the error code gievn by
21f17c42eca9b552d516c38b66564673c60a4504Andreas Gustafsson <parameter>err</parameter>. The values of the error codes and
21f17c42eca9b552d516c38b66564673c60a4504Andreas Gustafsson messages are as follows:
21f17c42eca9b552d516c38b66564673c60a4504Andreas Gustafsson <variablelist>
9224b1c0b6738407c84b61cb151af7672a201018Andreas Gustafsson <varlistentry>
43b9c76f5e8ad75226a2f58650b3f0be03f49994Andreas Gustafsson <term><errorcode>NETDB_SUCCESS</errorcode></term>
21f17c42eca9b552d516c38b66564673c60a4504Andreas Gustafsson <para><errorname>Resolver Error 0 (no error)</errorname>
21f17c42eca9b552d516c38b66564673c60a4504Andreas Gustafsson </varlistentry>
21f17c42eca9b552d516c38b66564673c60a4504Andreas Gustafsson <varlistentry>
21f17c42eca9b552d516c38b66564673c60a4504Andreas Gustafsson <term><errorcode>HOST_NOT_FOUND</errorcode></term>
49a6051082aac7ef5e358ba74791e94f5c456a15Andreas Gustafsson <para><errorname>Unknown host</errorname>
21f17c42eca9b552d516c38b66564673c60a4504Andreas Gustafsson </varlistentry>
21f17c42eca9b552d516c38b66564673c60a4504Andreas Gustafsson <varlistentry>
82493dc831d40482faf20cdb4d4295174879c9f9Andreas Gustafsson <term><errorcode>TRY_AGAIN</errorcode></term>
82493dc831d40482faf20cdb4d4295174879c9f9Andreas Gustafsson <para><errorname>Host name lookup failure</errorname>
e4c6adf028fedafcadee9e22e1e734e9e716471bAndreas Gustafsson </varlistentry>
82493dc831d40482faf20cdb4d4295174879c9f9Andreas Gustafsson <varlistentry>