[<!ENTITY mdash "—">]>
- Copyright (C) 2004, 2005, 2007, 2014 Internet Systems Consortium, Inc. ("ISC") - Copyright (C) 2000, 2001 Internet Software Consortium. - Permission to use, copy, modify, and/or distribute this software for any - purpose with or without fee is hereby granted, provided that the above - copyright notice and this permission notice appear in all copies. - THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH - REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY - AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT, - INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM - LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE - OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR - PERFORMANCE OF THIS SOFTWARE. <
date>June 18, 2007</
date>
<
refentrytitle>lwres_gai_strerror</
refentrytitle>
<
refmiscinfo>BIND9</
refmiscinfo>
<
holder>Internet Systems Consortium, Inc. ("ISC")</
holder>
<
holder>Internet Software Consortium.</
holder>
<
refname>lwres_gai_strerror</
refname>
<
refpurpose>print suitable error string</
refpurpose>
<
funcsynopsisinfo>#include <
lwres/
netdb.h></
funcsynopsisinfo>
<
function>gai_strerror</
function></
funcdef>
<
paramdef>int <
parameter>ecode</
parameter></
paramdef>
<
title>DESCRIPTION</
title>
<
para><
function>lwres_gai_strerror()</
function>
returns an error message corresponding to an error code returned by
<
function>getaddrinfo()</
function>.
The following error codes and their meaning are defined in
<
term><
errorcode>EAI_ADDRFAMILY</
errorcode></
term>
address family for hostname not supported
<
term><
errorcode>EAI_AGAIN</
errorcode></
term>
temporary failure in name resolution
<
term><
errorcode>EAI_BADFLAGS</
errorcode></
term>
<
constant>ai_flags</
constant>
<
term><
errorcode>EAI_FAIL</
errorcode></
term>
non-recoverable failure in name resolution
<
term><
errorcode>EAI_FAMILY</
errorcode></
term>
<
para><
constant>ai_family</
constant> not supported
<
term><
errorcode>EAI_MEMORY</
errorcode></
term>
memory allocation failure
<
term><
errorcode>EAI_NODATA</
errorcode></
term>
no address associated with hostname
<
term><
errorcode>EAI_NONAME</
errorcode></
term>
hostname or servname not provided, or not known
<
term><
errorcode>EAI_SERVICE</
errorcode></
term>
servname not supported for <
constant>ai_socktype</
constant>
<
term><
errorcode>EAI_SOCKTYPE</
errorcode></
term>
<
para><
constant>ai_socktype</
constant> not supported
<
term><
errorcode>EAI_SYSTEM</
errorcode></
term>
system error returned in errno
The message <
errorname>invalid error code</
errorname> is returned if
<
parameter>ecode</
parameter>
<
para><
constant>ai_flags</
constant>,
<
constant>ai_family</
constant>
<
constant>ai_socktype</
constant>
<
type>struct addrinfo</
type>
<
function>lwres_getaddrinfo()</
function>.
<
refentrytitle>strerror</
refentrytitle><
manvolnum>3</
manvolnum>
<
refentrytitle>lwres_getaddrinfo</
refentrytitle><
manvolnum>3</
manvolnum>
<
refentrytitle>getaddrinfo</
refentrytitle><
manvolnum>3</
manvolnum>
<
refentrytitle>RFC2133</
refentrytitle>