1 <!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN"
2 "http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd"
3 [<!ENTITY mdash "—">]>
5 - Copyright (C) 2004, 2005, 2007, 2014 Internet Systems Consortium, Inc. ("ISC")
6 - Copyright (C) 2000, 2001 Internet Software Consortium.
8 - Permission to use, copy, modify, and/or distribute this software for any
9 - purpose with or without fee is hereby granted, provided that the above
10 - copyright notice and this permission notice appear in all copies.
12 - THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
13 - REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
14 - AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
15 - INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
16 - LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
17 - OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
18 - PERFORMANCE OF THIS SOFTWARE.
24 <date>June 18, 2007</date>
28 <refentrytitle>lwres_gai_strerror</refentrytitle>
29 <manvolnum>3</manvolnum>
30 <refmiscinfo>BIND9</refmiscinfo>
39 <holder>Internet Systems Consortium, Inc. ("ISC")</holder>
44 <holder>Internet Software Consortium.</holder>
49 <refname>lwres_gai_strerror</refname>
50 <refpurpose>print suitable error string</refpurpose>
55 <funcsynopsisinfo>#include <lwres/netdb.h></funcsynopsisinfo>
59 <function>gai_strerror</function></funcdef>
60 <paramdef>int <parameter>ecode</parameter></paramdef>
66 <title>DESCRIPTION</title>
68 <para><function>lwres_gai_strerror()</function>
69 returns an error message corresponding to an error code returned by
70 <function>getaddrinfo()</function>.
71 The following error codes and their meaning are defined in
72 <filename>include/lwres/netdb.h</filename>.
75 <term><errorcode>EAI_ADDRFAMILY</errorcode></term>
78 address family for hostname not supported
83 <term><errorcode>EAI_AGAIN</errorcode></term>
86 temporary failure in name resolution
91 <term><errorcode>EAI_BADFLAGS</errorcode></term>
95 <constant>ai_flags</constant>
100 <term><errorcode>EAI_FAIL</errorcode></term>
103 non-recoverable failure in name resolution
108 <term><errorcode>EAI_FAMILY</errorcode></term>
110 <para><constant>ai_family</constant> not supported
115 <term><errorcode>EAI_MEMORY</errorcode></term>
118 memory allocation failure
123 <term><errorcode>EAI_NODATA</errorcode></term>
126 no address associated with hostname
131 <term><errorcode>EAI_NONAME</errorcode></term>
134 hostname or servname not provided, or not known
139 <term><errorcode>EAI_SERVICE</errorcode></term>
142 servname not supported for <constant>ai_socktype</constant>
147 <term><errorcode>EAI_SOCKTYPE</errorcode></term>
149 <para><constant>ai_socktype</constant> not supported
154 <term><errorcode>EAI_SYSTEM</errorcode></term>
157 system error returned in errno
162 The message <errorname>invalid error code</errorname> is returned if
163 <parameter>ecode</parameter>
166 <para><constant>ai_flags</constant>,
167 <constant>ai_family</constant>
169 <constant>ai_socktype</constant>
171 <type>struct addrinfo</type>
173 <function>lwres_getaddrinfo()</function>.
178 <title>SEE ALSO</title>
180 <refentrytitle>strerror</refentrytitle><manvolnum>3</manvolnum>
184 <refentrytitle>lwres_getaddrinfo</refentrytitle><manvolnum>3</manvolnum>
188 <refentrytitle>getaddrinfo</refentrytitle><manvolnum>3</manvolnum>
192 <refentrytitle>RFC2133</refentrytitle>