d6fa26d0adaec6c910115be34fe7a5a5f402c14fMark Andrews<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
5347c0fcb04eaea19d9f39795646239f487c6207Tinderbox User - Copyright (C) 2000, 2001, 2004, 2005, 2007, 2014-2016 Internet Systems Consortium, Inc. ("ISC")
5347c0fcb04eaea19d9f39795646239f487c6207Tinderbox User - This Source Code Form is subject to the terms of the Mozilla Public
5347c0fcb04eaea19d9f39795646239f487c6207Tinderbox User - License, v. 2.0. If a copy of the MPL was not distributed with this
5347c0fcb04eaea19d9f39795646239f487c6207Tinderbox User - file, You can obtain one at http://mozilla.org/MPL/2.0/.
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User<meta name="generator" content="DocBook XSL Stylesheets V1.78.1">
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="refentry">
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User<a name="id-1"></a><div class="titlepage"></div>
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User lwres_gai_strerror
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User — print suitable error string
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein<pre class="funcsynopsisinfo">#include <lwres/netdb.h></pre>
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User<table border="0" class="funcprototype-table" summary="Function synopsis" style="cellspacing: 0; cellpadding: 0;"><tr>
2eeb74d1cf5355dd98f6d507a10086e16bb08c4bTinderbox User<td>int <var class="pdparam">ecode</var><code>)</code>;</td>
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User <p><code class="function">lwres_gai_strerror()</code>
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein returns an error message corresponding to an error code returned by
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein The following error codes and their meaning are defined in
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein <code class="filename">include/lwres/netdb.h</code>.
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User<div class="variablelist"><dl class="variablelist">
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein<dt><span class="term"><span class="errorcode">EAI_ADDRFAMILY</span></span></dt>
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein address family for hostname not supported
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein<dt><span class="term"><span class="errorcode">EAI_AGAIN</span></span></dt>
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein temporary failure in name resolution
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein<dt><span class="term"><span class="errorcode">EAI_BADFLAGS</span></span></dt>
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein invalid value for
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein<dt><span class="term"><span class="errorcode">EAI_FAIL</span></span></dt>
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein non-recoverable failure in name resolution
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein<dt><span class="term"><span class="errorcode">EAI_FAMILY</span></span></dt>
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User <p><code class="constant">ai_family</code> not supported
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein<dt><span class="term"><span class="errorcode">EAI_MEMORY</span></span></dt>
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein memory allocation failure
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein<dt><span class="term"><span class="errorcode">EAI_NODATA</span></span></dt>
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein no address associated with hostname
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein<dt><span class="term"><span class="errorcode">EAI_NONAME</span></span></dt>
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein hostname or servname not provided, or not known
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein<dt><span class="term"><span class="errorcode">EAI_SERVICE</span></span></dt>
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein servname not supported for <code class="constant">ai_socktype</code>
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein<dt><span class="term"><span class="errorcode">EAI_SOCKTYPE</span></span></dt>
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User <p><code class="constant">ai_socktype</code> not supported
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein<dt><span class="term"><span class="errorcode">EAI_SYSTEM</span></span></dt>
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein system error returned in errno
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein The message <span class="errorname">invalid error code</span> is returned if
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein is out of range.
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein are elements of the
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein <code class="function">lwres_getaddrinfo()</code>.
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User <span class="refentrytitle">strerror</span>(3)
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User <span class="refentrytitle">lwres_getaddrinfo</span>(3)
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User <span class="refentrytitle">getaddrinfo</span>(3)