diff options
| author | cvs2svn <admin@example.com> | 2012-07-13 17:49:56 +0000 |
|---|---|---|
| committer | cvs2svn <admin@example.com> | 2012-07-13 17:49:56 +0000 |
| commit | ee04221ea8063435416c7e6369e6eae76843aa71 (patch) | |
| tree | 821921a1dd0a5a3cece91121e121cc63c4b68128 /src/lib/libc/net/gai_strerror.3 | |
| parent | adf6731f6e1d04718aee00cb93435143046aee9a (diff) | |
| download | openbsd-eric_g2k12.tar.gz openbsd-eric_g2k12.tar.bz2 openbsd-eric_g2k12.zip | |
This commit was manufactured by cvs2git to create tag 'eric_g2k12'.eric_g2k12
Diffstat (limited to '')
| -rw-r--r-- | src/lib/libc/net/gai_strerror.3 | 95 |
1 files changed, 0 insertions, 95 deletions
diff --git a/src/lib/libc/net/gai_strerror.3 b/src/lib/libc/net/gai_strerror.3 deleted file mode 100644 index 6ce94e30a1..0000000000 --- a/src/lib/libc/net/gai_strerror.3 +++ /dev/null | |||
| @@ -1,95 +0,0 @@ | |||
| 1 | .\" $OpenBSD: gai_strerror.3,v 1.7 2009/06/02 16:47:50 jasper Exp $ | ||
| 2 | .\" $KAME: gai_strerror.3,v 1.1 2005/01/05 03:04:47 itojun Exp $ | ||
| 3 | .\" | ||
| 4 | .\" Copyright (C) 2004 Internet Systems Consortium, Inc. ("ISC") | ||
| 5 | .\" Copyright (C) 2000, 2001 Internet Software Consortium. | ||
| 6 | .\" | ||
| 7 | .\" Permission to use, copy, modify, and distribute this software for any | ||
| 8 | .\" purpose with or without fee is hereby granted, provided that the above | ||
| 9 | .\" copyright notice and this permission notice appear in all copies. | ||
| 10 | .\" | ||
| 11 | .\" THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH | ||
| 12 | .\" REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY | ||
| 13 | .\" AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT, | ||
| 14 | .\" INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM | ||
| 15 | .\" LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE | ||
| 16 | .\" OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR | ||
| 17 | .\" PERFORMANCE OF THIS SOFTWARE. | ||
| 18 | .\" | ||
| 19 | .Dd $Mdocdate: June 2 2009 $ | ||
| 20 | .Dt GAI_STRERROR 3 | ||
| 21 | .Os | ||
| 22 | .Sh NAME | ||
| 23 | .Nm gai_strerror | ||
| 24 | .Nd get error message string from EAI_xxx error code | ||
| 25 | .Sh SYNOPSIS | ||
| 26 | .Fd #include <sys/types.h> | ||
| 27 | .Fd #include <sys/socket.h> | ||
| 28 | .Fd #include <netdb.h> | ||
| 29 | .Ft "const char *" | ||
| 30 | .Fn gai_strerror "int ecode" | ||
| 31 | .Sh DESCRIPTION | ||
| 32 | The | ||
| 33 | .Fn gai_strerror | ||
| 34 | function returns an error message string corresponding to the error code | ||
| 35 | returned by | ||
| 36 | .Xr getaddrinfo 3 | ||
| 37 | or | ||
| 38 | .Xr getnameinfo 3 . | ||
| 39 | .Pp | ||
| 40 | The following error codes and their meaning are defined in | ||
| 41 | .Aq Pa netdb.h : | ||
| 42 | .Pp | ||
| 43 | .Bl -tag -width "EAI_ADDRFAMILYXX" -offset indent -compact | ||
| 44 | .It Dv EAI_ADDRFAMILY | ||
| 45 | address family for | ||
| 46 | .Fa hostname | ||
| 47 | not supported | ||
| 48 | .It Dv EAI_AGAIN | ||
| 49 | temporary failure in name resolution | ||
| 50 | .It Dv EAI_BADFLAGS | ||
| 51 | invalid value for | ||
| 52 | .Fa ai_flags | ||
| 53 | .It Dv EAI_BADHINTS | ||
| 54 | invalid value for | ||
| 55 | .Fa hints | ||
| 56 | .It Dv EAI_FAIL | ||
| 57 | non-recoverable failure in name resolution | ||
| 58 | .It Dv EAI_FAMILY | ||
| 59 | .Fa ai_family | ||
| 60 | not supported. | ||
| 61 | .It Dv EAI_MEMORY | ||
| 62 | memory allocation failure | ||
| 63 | .It Dv EAI_NODATA | ||
| 64 | no address associated with | ||
| 65 | .Fa hostname | ||
| 66 | .It Dv EAI_NONAME | ||
| 67 | .Fa hostname | ||
| 68 | or | ||
| 69 | .Fa servname | ||
| 70 | not provided, or not known | ||
| 71 | .It Dv EAI_OVERFLOW | ||
| 72 | argument buffer overflow | ||
| 73 | .It Dv EAI_PROTOCOL | ||
| 74 | resolved protocol is unknown | ||
| 75 | .It Dv EAI_SERVICE | ||
| 76 | .Fa servname | ||
| 77 | not supported for | ||
| 78 | .Fa ai_socktype | ||
| 79 | .It Dv EAI_SOCKTYPE | ||
| 80 | .Fa ai_socktype | ||
| 81 | not supported | ||
| 82 | .It Dv EAI_SYSTEM | ||
| 83 | system error returned in | ||
| 84 | .Va errno | ||
| 85 | .El | ||
| 86 | .Sh RETURN VALUES | ||
| 87 | .Fn gai_strerror | ||
| 88 | returns a pointer to the error message string corresponding to | ||
| 89 | .Fa ecode . | ||
| 90 | If | ||
| 91 | .Fa ecode | ||
| 92 | is out of range, an implementation-specific error message string is returned. | ||
| 93 | .Sh SEE ALSO | ||
| 94 | .Xr getaddrinfo 3 , | ||
| 95 | .Xr getnameinfo 3 | ||
