1 .\" $NetBSD: gai_strerror.3,v 1.3 2006/02/22 14:26:30 ginsbach Exp $
2 .\" $KAME: gai_strerror.3,v 1.1 2005/01/05 03:04:47 itojun Exp $
3 .\" $OpenBSD: gai_strerror.3,v 1.4 2004/12/20 23:04:53 millert Exp $
5 .\" Copyright (C) 2004 Internet Systems Consortium, Inc. ("ISC")
6 .\" Copyright (C) 2000, 2001 Internet Software Consortium.
8 .\" Permission to use, copy, modify, and distribute this software for any
9 .\" purpose with or without fee is hereby granted, provided that the above
10 .\" copyright notice and this permission notice appear in all copies.
12 .\" THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
13 .\" REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
14 .\" AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
15 .\" INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
16 .\" LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
17 .\" OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
18 .\" PERFORMANCE OF THIS SOFTWARE.
25 .Nd get error message string from EAI_xxx error code
31 .Fn gai_strerror "int ecode"
35 function returns an error message string corresponding to the error code
41 The following error codes and their meaning are defined in
44 .Bl -tag -width "EAI_ADDRFAMILYXX" -offset indent -compact
50 temporary failure in name resolution
58 non-recoverable failure in name resolution
63 memory allocation failure
65 no address associated with
71 not provided, or not known
73 argument buffer overflow
75 resolved protocol is unknown
84 system error returned in
89 returns a pointer to the error message string corresponding to
93 is out of range, an implementation-specific error message string is returned.