]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - 6/contrib/bind9/lib/lwres/man/lwres_gai_strerror.html
merge fix for boot-time hang on centos' xen
[FreeBSD/FreeBSD.git] / 6 / contrib / bind9 / lib / lwres / man / lwres_gai_strerror.html
1 <!--
2  - Copyright (C) 2004, 2005, 2007 Internet Systems Consortium, Inc. ("ISC")
3  - Copyright (C) 2000, 2001 Internet Software Consortium.
4  - 
5  - Permission to use, copy, modify, and distribute this software for any
6  - purpose with or without fee is hereby granted, provided that the above
7  - copyright notice and this permission notice appear in all copies.
8  - 
9  - THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
10  - REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
11  - AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
12  - INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
13  - LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
14  - OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
15  - PERFORMANCE OF THIS SOFTWARE.
16 -->
17 <!-- $Id: lwres_gai_strerror.html,v 1.5.2.1.4.15 2007/01/30 00:11:48 marka Exp $ -->
18 <html>
19 <head>
20 <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
21 <title>lwres_gai_strerror</title>
22 <meta name="generator" content="DocBook XSL Stylesheets V1.71.1">
23 </head>
24 <body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="refentry" lang="en">
25 <a name="id2476275"></a><div class="titlepage"></div>
26 <div class="refnamediv">
27 <h2>Name</h2>
28 <p>gai_strerror &#8212; print suitable error string</p>
29 </div>
30 <div class="refsynopsisdiv">
31 <h2>Synopsis</h2>
32 <div class="funcsynopsis">
33 <pre class="funcsynopsisinfo">#include &lt;lwres/netdb.h&gt;</pre>
34 <table border="0" summary="Function synopsis" cellspacing="0" cellpadding="0"><tr>
35 <td><code class="funcdef">
36 char *
37 <b class="fsfunc">gai_strerror</b>(</code></td>
38 <td> </td>
39 <td>
40 <code>)</code>;</td>
41 </tr></table>
42 </div>
43 </div>
44 <div class="refsect1" lang="en">
45 <a name="id2543349"></a><h2>DESCRIPTION</h2>
46 <p>
47 <code class="function">lwres_gai_strerror()</code>
48 returns an error message corresponding to an error code returned by
49 <code class="function">getaddrinfo()</code>.
50 The following error codes and their meaning are defined in
51 <code class="filename">include/lwres/netdb.h</code>.
52 </p>
53 <div class="variablelist"><dl>
54 <dt><span class="term"><span class="errorcode">EAI_ADDRFAMILY</span></span></dt>
55 <dd><p>
56 address family for hostname not supported
57 </p></dd>
58 <dt><span class="term"><span class="errorcode">EAI_AGAIN</span></span></dt>
59 <dd><p>
60 temporary failure in name resolution
61 </p></dd>
62 <dt><span class="term"><span class="errorcode">EAI_BADFLAGS</span></span></dt>
63 <dd><p>
64 invalid value for
65 <code class="constant">ai_flags</code>
66 </p></dd>
67 <dt><span class="term"><span class="errorcode">EAI_FAIL</span></span></dt>
68 <dd><p>
69 non-recoverable failure in name resolution
70 </p></dd>
71 <dt><span class="term"><span class="errorcode">EAI_FAMILY</span></span></dt>
72 <dd><p>
73 <code class="constant">ai_family</code> not supported
74 </p></dd>
75 <dt><span class="term"><span class="errorcode">EAI_MEMORY</span></span></dt>
76 <dd><p>
77 memory allocation failure
78 </p></dd>
79 <dt><span class="term"><span class="errorcode">EAI_NODATA</span></span></dt>
80 <dd><p>
81 no address associated with hostname
82 </p></dd>
83 <dt><span class="term"><span class="errorcode">EAI_NONAME</span></span></dt>
84 <dd><p>
85 hostname or servname not provided, or not known
86 </p></dd>
87 <dt><span class="term"><span class="errorcode">EAI_SERVICE</span></span></dt>
88 <dd><p>
89 servname not supported for <code class="constant">ai_socktype</code>
90 </p></dd>
91 <dt><span class="term"><span class="errorcode">EAI_SOCKTYPE</span></span></dt>
92 <dd><p>
93 <code class="constant">ai_socktype</code> not supported
94 </p></dd>
95 <dt><span class="term"><span class="errorcode">EAI_SYSTEM</span></span></dt>
96 <dd><p>
97 system error returned in errno
98 </p></dd>
99 </dl></div>
100 <p>
101 The message <span class="errorname">invalid error code</span> is returned if
102 <em class="parameter"><code>ecode</code></em>
103 is out of range.
104 </p>
105 <p>
106 <code class="constant">ai_flags</code>,
107 <code class="constant">ai_family</code>
108 and
109 <code class="constant">ai_socktype</code>
110 are elements of the
111 <span class="type">struct  addrinfo</span>
112 used by
113 <code class="function">lwres_getaddrinfo()</code>.
114 </p>
115 </div>
116 <div class="refsect1" lang="en">
117 <a name="id2543546"></a><h2>SEE ALSO</h2>
118 <p>
119 <span class="citerefentry"><span class="refentrytitle">strerror</span>(3)</span>,
120
121 <span class="citerefentry"><span class="refentrytitle">lwres_getaddrinfo</span>(3)</span>,
122
123 <span class="citerefentry"><span class="refentrytitle">getaddrinfo</span>(3)</span>,
124
125 <span class="citerefentry"><span class="refentrytitle">RFC2133</span></span>.
126 </p>
127 </div>
128 </div></body>
129 </html>