306N/A - Copyright (C) 2004, 2005, 2007, 2014, 2015 Internet Systems Consortium, Inc. ("ISC") 306N/A - Copyright (C) 2000, 2001 Internet Software Consortium. 306N/A - Permission to use, copy, modify, and/or distribute this software for any 306N/A - purpose with or without fee is hereby granted, provided that the above 306N/A - copyright notice and this permission notice appear in all copies. 306N/A - THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH 306N/A - REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY 306N/A - AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT, 306N/A - INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM 306N/A - LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE 306N/A - OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR 306N/A - PERFORMANCE OF THIS SOFTWARE. 306N/A<!-- Converted by db4-upgrade version 1.0 --> 306N/A <
date>2007-06-18</
date>
306N/A <
corpname>ISC</
corpname>
306N/A <
corpauthor>Internet Systems Consortium, Inc.</
corpauthor>
708N/A <
refentrytitle>lwres_gai_strerror</
refentrytitle>
306N/A <
manvolnum>3</
manvolnum>
306N/A <
refmiscinfo>BIND9</
refmiscinfo>
3996N/A <
holder>Internet Systems Consortium, Inc. ("ISC")</
holder>
306N/A <
holder>Internet Software Consortium.</
holder>
306N/A <
refname>lwres_gai_strerror</
refname>
306N/A <
refpurpose>print suitable error string</
refpurpose>
306N/A<
function>gai_strerror</
function></
funcdef>
306N/A <
paramdef>int <
parameter>ecode</
parameter></
paramdef>
<
refsection><
info><
title>DESCRIPTION</
title></
info>
<
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>.
<
refsection><
info><
title>SEE ALSO</
title></
info>
<
refentrytitle>strerror</
refentrytitle><
manvolnum>3</
manvolnum>
<
refentrytitle>lwres_getaddrinfo</
refentrytitle><
manvolnum>3</
manvolnum>
<
refentrytitle>getaddrinfo</
refentrytitle><
manvolnum>3</
manvolnum>
<
refentrytitle>RFC2133</
refentrytitle>