summaryrefslogtreecommitdiffstats
path: root/lib/libc/net/gai_strerror.3
diff options
context:
space:
mode:
authorru <ru@FreeBSD.org>2005-06-16 19:01:07 +0000
committerru <ru@FreeBSD.org>2005-06-16 19:01:07 +0000
commit7cec11495247676e23c6a9186b2eeba3b5032c61 (patch)
treefa5a6835c488fd780a02d169e0e2d982514ba7f6 /lib/libc/net/gai_strerror.3
parent1c089d8fdd238e9f1ab38b6ae03954ac3dd01d48 (diff)
downloadFreeBSD-src-7cec11495247676e23c6a9186b2eeba3b5032c61.zip
FreeBSD-src-7cec11495247676e23c6a9186b2eeba3b5032c61.tar.gz
Markup fixes.
Approved by: re
Diffstat (limited to 'lib/libc/net/gai_strerror.3')
-rw-r--r--lib/libc/net/gai_strerror.317
1 files changed, 10 insertions, 7 deletions
diff --git a/lib/libc/net/gai_strerror.3 b/lib/libc/net/gai_strerror.3
index 2af665a..7c55030 100644
--- a/lib/libc/net/gai_strerror.3
+++ b/lib/libc/net/gai_strerror.3
@@ -1,6 +1,5 @@
.\" $KAME: gai_strerror.3,v 1.1 2005/01/05 03:04:47 itojun Exp $
.\" $OpenBSD: gai_strerror.3,v 1.4 2004/12/20 23:04:53 millert Exp $
-.\" $FreeBSD$
.\"
.\" Copyright (C) 2004 Internet Systems Consortium, Inc. ("ISC")
.\" Copyright (C) 2000, 2001 Internet Software Consortium.
@@ -17,6 +16,8 @@
.\" OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
.\" PERFORMANCE OF THIS SOFTWARE.
.\"
+.\" $FreeBSD$
+.\"
.Dd December 20, 2004
.Dt GAI_STRERROR 3
.Os
@@ -24,9 +25,9 @@
.Nm gai_strerror
.Nd get error message string from EAI_xxx error code
.Sh SYNOPSIS
-.Fd #include <sys/types.h>
-.Fd #include <sys/socket.h>
-.Fd #include <netdb.h>
+.In sys/types.h
+.In sys/socket.h
+.In netdb.h
.Ft "const char *"
.Fn gai_strerror "int ecode"
.Sh DESCRIPTION
@@ -39,9 +40,9 @@ or
.Xr getnameinfo 3 .
.Pp
The following error codes and their meaning are defined in
-.Aq Pa netdb.h :
+.In netdb.h :
.Pp
-.Bl -tag -width "EAI_ADDRFAMILYXX" -offset indent -compact
+.Bl -tag -width ".Dv EAI_BADFLAGS" -offset indent -compact
.It Dv EAI_AGAIN
temporary failure in name resolution
.It Dv EAI_BADFLAGS
@@ -54,7 +55,7 @@ invalid value for
non-recoverable failure in name resolution
.It Dv EAI_FAMILY
.Fa ai_family
-not supported.
+not supported
.It Dv EAI_MEMORY
memory allocation failure
.It Dv EAI_NONAME
@@ -76,7 +77,9 @@ system error returned in
.Va errno
.El
.Sh RETURN VALUES
+The
.Fn gai_strerror
+function
returns a pointer to the error message string corresponding to
.Fa ecode .
If
OpenPOWER on IntegriCloud