lwres_gai_strerror.html revision 4a14ce5ba00ab7bc55c99ffdcf59c7a4ab902721
792N/A<!--
792N/A - Copyright (C) 2004, 2005, 2007 Internet Systems Consortium, Inc. ("ISC")
792N/A - Copyright (C) 2000, 2001 Internet Software Consortium.
792N/A -
792N/A - Permission to use, copy, modify, and/or distribute this software for any
792N/A - purpose with or without fee is hereby granted, provided that the above
792N/A - copyright notice and this permission notice appear in all copies.
792N/A -
792N/A - THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
792N/A - REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
792N/A - AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
792N/A - INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
792N/A - LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
792N/A - OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
792N/A - PERFORMANCE OF THIS SOFTWARE.
792N/A-->
792N/A<!-- $Id: lwres_gai_strerror.html,v 1.25 2009/07/11 01:12:46 tbox Exp $ -->
792N/A<html>
792N/A<head>
792N/A<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
792N/A<title>lwres_gai_strerror</title>
792N/A<meta name="generator" content="DocBook XSL Stylesheets V1.71.1">
792N/A</head>
792N/A<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="refentry" lang="en">
792N/A<a name="id2476275"></a><div class="titlepage"></div>
792N/A<div class="refnamediv">
792N/A<h2>Name</h2>
792N/A<p>lwres_gai_strerror &#8212; print suitable error string</p>
792N/A</div>
792N/A<div class="refsynopsisdiv">
792N/A<h2>Synopsis</h2>
792N/A<div class="funcsynopsis">
792N/A<pre class="funcsynopsisinfo">#include &lt;lwres/netdb.h&gt;</pre>
792N/A<table border="0" summary="Function synopsis" cellspacing="0" cellpadding="0"><tr>
792N/A<td><code class="funcdef">
792N/Achar *
792N/A<b class="fsfunc">gai_strerror</b>(</code></td>
792N/A<td>int �</td>
792N/A<td>
792N/A<var class="pdparam">ecode</var><code>)</code>;</td>
792N/A</tr></table>
792N/A</div>
792N/A</div>
792N/A<div class="refsect1" lang="en">
792N/A<a name="id2543361"></a><h2>DESCRIPTION</h2>
792N/A<p><code class="function">lwres_gai_strerror()</code>
792N/A returns an error message corresponding to an error code returned by
792N/A <code class="function">getaddrinfo()</code>.
792N/A The following error codes and their meaning are defined in
792N/A <code class="filename">include/lwres/netdb.h</code>.
792N/A </p>
792N/A<div class="variablelist"><dl>
792N/A<dt><span class="term"><span class="errorcode">EAI_ADDRFAMILY</span></span></dt>
792N/A<dd><p>
792N/A address family for hostname not supported
792N/A </p></dd>
792N/A<dt><span class="term"><span class="errorcode">EAI_AGAIN</span></span></dt>
792N/A<dd><p>
792N/A temporary failure in name resolution
792N/A </p></dd>
792N/A<dt><span class="term"><span class="errorcode">EAI_BADFLAGS</span></span></dt>
792N/A<dd><p>
792N/A invalid value for
792N/A <code class="constant">ai_flags</code>
792N/A </p></dd>
792N/A<dt><span class="term"><span class="errorcode">EAI_FAIL</span></span></dt>
792N/A<dd><p>
792N/A non-recoverable failure in name resolution
792N/A </p></dd>
792N/A<dt><span class="term"><span class="errorcode">EAI_FAMILY</span></span></dt>
792N/A<dd><p><code class="constant">ai_family</code> not supported
792N/A </p></dd>
792N/A<dt><span class="term"><span class="errorcode">EAI_MEMORY</span></span></dt>
851N/A<dd><p>
851N/A memory allocation failure
792N/A </p></dd>
792N/A<dt><span class="term"><span class="errorcode">EAI_NODATA</span></span></dt>
792N/A<dd><p>
792N/A no address associated with hostname
792N/A </p></dd>
792N/A<dt><span class="term"><span class="errorcode">EAI_NONAME</span></span></dt>
792N/A<dd><p>
792N/A hostname or servname not provided, or not known
792N/A </p></dd>
792N/A<dt><span class="term"><span class="errorcode">EAI_SERVICE</span></span></dt>
792N/A<dd><p>
792N/A servname not supported for <code class="constant">ai_socktype</code>
792N/A </p></dd>
792N/A<dt><span class="term"><span class="errorcode">EAI_SOCKTYPE</span></span></dt>
792N/A<dd><p><code class="constant">ai_socktype</code> not supported
792N/A </p></dd>
792N/A<dt><span class="term"><span class="errorcode">EAI_SYSTEM</span></span></dt>
792N/A<dd><p>
792N/A system error returned in errno
792N/A </p></dd>
792N/A</dl></div>
792N/A<p>
792N/A The message <span class="errorname">invalid error code</span> is returned if
792N/A <em class="parameter"><code>ecode</code></em>
792N/A is out of range.
792N/A </p>
792N/A<p><code class="constant">ai_flags</code>,
792N/A <code class="constant">ai_family</code>
792N/A and
792N/A <code class="constant">ai_socktype</code>
792N/A are elements of the
792N/A <span class="type">struct addrinfo</span>
792N/A used by
792N/A <code class="function">lwres_getaddrinfo()</code>.
792N/A </p>
792N/A</div>
792N/A<div class="refsect1" lang="en">
792N/A<a name="id2543576"></a><h2>SEE ALSO</h2>
792N/A<p><span class="citerefentry"><span class="refentrytitle">strerror</span>(3)</span>,
792N/A
792N/A <span class="citerefentry"><span class="refentrytitle">lwres_getaddrinfo</span>(3)</span>,
851N/A
792N/A <span class="citerefentry"><span class="refentrytitle">getaddrinfo</span>(3)</span>,
792N/A
792N/A <span class="citerefentry"><span class="refentrytitle">RFC2133</span></span>.
792N/A </p>
792N/A</div>
792N/A</div></body>
792N/A</html>
792N/A