1117N/A - Copyright (C) 2000, 2001, 2004, 2005, 2007, 2014-2016 Internet Systems Consortium, Inc. ("ISC") 1515N/A - This Source Code Form is subject to the terms of the Mozilla Public 1117N/A - License, v. 2.0. If a copy of the MPL was not distributed with this 1117N/A<
meta http-
equiv="Content-Type" content="text/html; charset=ISO-8859-1">
1117N/A<
title>lwres_gai_strerror</
title>
1117N/A<
meta name="generator" content="DocBook XSL Stylesheets V1.78.1">
1117N/A<
body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><
div class="refentry">
1117N/A<
a name="id-1"></
a><
div class="titlepage"></
div>
1117N/A<
p>lwres_gai_strerror — print suitable error string</
p>
1117N/A<
div class="refsynopsisdiv">
1117N/A<
table border="0" class="funcprototype-table" summary="Function synopsis" style="cellspacing: 0; cellpadding: 0;"><
tr>
1117N/A<
b class="fsfunc">gai_strerror</
b>(</
code></
td>
1117N/A<
td>int <
var class="pdparam">ecode</
var><
code>)</
code>;</
td>
1117N/A<
div class="funcprototype-spacer">�</
div>
1392N/A<
a name="id-1.7"></
a><
h2>DESCRIPTION</
h2>
1392N/A<
p><
code class="function">lwres_gai_strerror()</
code>
1392N/A returns an error message corresponding to an error code returned by
1392N/A <
code class="function">getaddrinfo()</
code>.
1392N/A The following error codes and their meaning are defined in
1392N/A<
div class="variablelist"><
dl class="variablelist">
1117N/A<
dt><
span class="term"><
span class="errorcode">EAI_ADDRFAMILY</
span></
span></
dt>
1117N/A address family for hostname not supported
1117N/A<
dt><
span class="term"><
span class="errorcode">EAI_AGAIN</
span></
span></
dt>
1117N/A temporary failure in name resolution
1117N/A<
dt><
span class="term"><
span class="errorcode">EAI_BADFLAGS</
span></
span></
dt>
1466N/A <
code class="constant">ai_flags</
code>
1466N/A<
dt><
span class="term"><
span class="errorcode">EAI_FAIL</
span></
span></
dt>
1117N/A non-recoverable failure in name resolution
1117N/A<
dt><
span class="term"><
span class="errorcode">EAI_FAMILY</
span></
span></
dt>
1466N/A<
dd><
p><
code class="constant">ai_family</
code> not supported
1117N/A<
dt><
span class="term"><
span class="errorcode">EAI_MEMORY</
span></
span></
dt>
1476N/A<
dt><
span class="term"><
span class="errorcode">EAI_NODATA</
span></
span></
dt>
1425N/A no address associated with hostname
1425N/A<
dt><
span class="term"><
span class="errorcode">EAI_NONAME</
span></
span></
dt>
1117N/A hostname or servname not provided, or not known
1269N/A<
dt><
span class="term"><
span class="errorcode">EAI_SERVICE</
span></
span></
dt>
1117N/A servname not supported for <
code class="constant">ai_socktype</
code>
1117N/A<
dt><
span class="term"><
span class="errorcode">EAI_SOCKTYPE</
span></
span></
dt>
1117N/A<
dd><
p><
code class="constant">ai_socktype</
code> not supported
1117N/A<
dt><
span class="term"><
span class="errorcode">EAI_SYSTEM</
span></
span></
dt>
1117N/A system error returned in errno
1117N/A The message <
span class="errorname">invalid error code</
span> is returned if
1117N/A <
em class="parameter"><
code>ecode</
code></
em>
1117N/A<
p><
code class="constant">ai_flags</
code>,
1117N/A <
code class="constant">ai_family</
code>
1269N/A <
code class="constant">ai_socktype</
code>
1392N/A <
span class="type">struct addrinfo</
span>
1392N/A <
code class="function">lwres_getaddrinfo()</
code>.
1394N/A<
a name="id-1.8"></
a><
h2>SEE ALSO</
h2>
1392N/A<
p><
span class="citerefentry"><
span class="refentrytitle">strerror</
span>(3)</
span>,
1392N/A <
span class="citerefentry"><
span class="refentrytitle">lwres_getaddrinfo</
span>(3)</
span>,
1515N/A <
span class="citerefentry"><
span class="refentrytitle">getaddrinfo</
span>(3)</
span>,
1392N/A <
span class="citerefentry"><
span class="refentrytitle">RFC2133</
span></
span>.