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 "—">]>
342440ec94087b8c751c580ab9ed6c693d31d418Prasad Singamsetty - Copyright (C) 2004, 2005, 2007, 2014 Internet Systems Consortium, Inc. ("ISC")
342440ec94087b8c751c580ab9ed6c693d31d418Prasad Singamsetty - Copyright (C) 2000, 2001 Internet Software Consortium.
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 - 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 <refentryinfo>
342440ec94087b8c751c580ab9ed6c693d31d418Prasad Singamsetty </refentryinfo>
342440ec94087b8c751c580ab9ed6c693d31d418Prasad Singamsetty <refentrytitle>lwres_hstrerror</refentrytitle>
342440ec94087b8c751c580ab9ed6c693d31d418Prasad Singamsetty <holder>Internet Systems Consortium, Inc. ("ISC")</holder>
342440ec94087b8c751c580ab9ed6c693d31d418Prasad Singamsetty <holder>Internet Software Consortium.</holder>
342440ec94087b8c751c580ab9ed6c693d31d418Prasad Singamsetty <refpurpose>lightweight resolver error message generation</refpurpose>
342440ec94087b8c751c580ab9ed6c693d31d418Prasad Singamsetty <refsynopsisdiv>
342440ec94087b8c751c580ab9ed6c693d31d418Prasad Singamsetty <funcsynopsis>
342440ec94087b8c751c580ab9ed6c693d31d418Prasad Singamsetty<funcsynopsisinfo>#include <lwres/netdb.h></funcsynopsisinfo>
342440ec94087b8c751c580ab9ed6c693d31d418Prasad Singamsetty<funcprototype>
342440ec94087b8c751c580ab9ed6c693d31d418Prasad Singamsetty<function>lwres_herror</function></funcdef>
342440ec94087b8c751c580ab9ed6c693d31d418Prasad Singamsetty <paramdef>const char *<parameter>s</parameter></paramdef>
7014882c6a3672fd0e5d60200af8643ae53c5928Richard Lowe </funcprototype>
7014882c6a3672fd0e5d60200af8643ae53c5928Richard Lowe<funcprototype>
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 <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><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 <variablelist>
342440ec94087b8c751c580ab9ed6c693d31d418Prasad Singamsetty <varlistentry>
342440ec94087b8c751c580ab9ed6c693d31d418Prasad Singamsetty <term><errorcode>NETDB_SUCCESS</errorcode></term>