summaryrefslogtreecommitdiffstats
path: root/lib/libc/net
diff options
context:
space:
mode:
authorru <ru@FreeBSD.org>2005-06-15 19:04:04 +0000
committerru <ru@FreeBSD.org>2005-06-15 19:04:04 +0000
commit38fc91ca963def6ed6e416c706b47a96a211a4f6 (patch)
tree97fc4e4f3aa3a37fb93d81a61acfc80eec59bd98 /lib/libc/net
parent079805c17f57ca60fceff319c87ae1a9d5e032c5 (diff)
downloadFreeBSD-src-38fc91ca963def6ed6e416c706b47a96a211a4f6.zip
FreeBSD-src-38fc91ca963def6ed6e416c706b47a96a211a4f6.tar.gz
Assorted markup fixes.
Approved by: re
Diffstat (limited to 'lib/libc/net')
-rw-r--r--lib/libc/net/getaddrinfo.36
-rw-r--r--lib/libc/net/getnameinfo.36
-rw-r--r--lib/libc/net/getnetent.32
-rw-r--r--lib/libc/net/inet6_rth_space.326
4 files changed, 22 insertions, 18 deletions
diff --git a/lib/libc/net/getaddrinfo.3 b/lib/libc/net/getaddrinfo.3
index 3982bfe..9c5a8b6 100644
--- a/lib/libc/net/getaddrinfo.3
+++ b/lib/libc/net/getaddrinfo.3
@@ -30,8 +30,10 @@
.Fd #include <sys/socket.h>
.Fd #include <netdb.h>
.Ft int
-.Fn getaddrinfo "const char *hostname" "const char *servname" \
- "const struct addrinfo *hints" "struct addrinfo **res"
+.Fo getaddrinfo
+.Fa "const char *hostname" "const char *servname"
+.Fa "const struct addrinfo *hints" "struct addrinfo **res"
+.Fc
.Ft void
.Fn freeaddrinfo "struct addrinfo *ai"
.Sh DESCRIPTION
diff --git a/lib/libc/net/getnameinfo.3 b/lib/libc/net/getnameinfo.3
index 54dce39..61479cf 100644
--- a/lib/libc/net/getnameinfo.3
+++ b/lib/libc/net/getnameinfo.3
@@ -29,8 +29,10 @@
.Fd #include <sys/socket.h>
.Fd #include <netdb.h>
.Ft int
-.Fn getnameinfo "const struct sockaddr *sa" "socklen_t salen" "char *host" \
- "size_t hostlen" "char *serv" "size_t servlen" "int flags"
+.Fo getnameinfo
+.Fa "const struct sockaddr *sa" "socklen_t salen" "char *host"
+.Fa "size_t hostlen" "char *serv" "size_t servlen" "int flags"
+.Fc
.Sh DESCRIPTION
The
.Fn getnameinfo
diff --git a/lib/libc/net/getnetent.3 b/lib/libc/net/getnetent.3
index 978b25b..3c329a6 100644
--- a/lib/libc/net/getnetent.3
+++ b/lib/libc/net/getnetent.3
@@ -167,7 +167,7 @@ functions appeared in
.Bx 4.2 .
.Sh BUGS
The data space used by
-these functions is a thread-specific; if future use requires the data, it should be
+these functions is thread-specific; if future use requires the data, it should be
copied before any subsequent calls to these functions overwrite it.
Only Internet network
numbers are currently understood.
diff --git a/lib/libc/net/inet6_rth_space.3 b/lib/libc/net/inet6_rth_space.3
index b8110e1..3903485 100644
--- a/lib/libc/net/inet6_rth_space.3
+++ b/lib/libc/net/inet6_rth_space.3
@@ -61,7 +61,7 @@
The IPv6 Advanced API, RFC 3542, defines the functions that an
application calls to build and examine IPv6 Routing headers.
Routing headers are used to perform source routing in IPv6 networks.
-The RFC uses the word
+The RFC uses the word
.Dq segments
to describe addresses and that is the term used here as well.
All of the functions are defined in the
@@ -82,14 +82,14 @@ The
.Fn inet6_rth_space
function returns the number of bytes required to hold a Routing Header
of the type, specified in the
-.Fa type
+.Fa type
argument and containing the number of addresses specified in the
.Fa segments
argumment.
-When the type is
+When the type is
.Dv IPV6_RTHDR_TYPE_0
the number of segments must be from 0 through 127.
-Routing headers of type
+Routing headers of type
.Dv IPV6_RTHDR_TYPE_2
contain only one segment, and are only used with Mobile IPv6.
The return value from this function is the number of bytes required to
@@ -166,20 +166,25 @@ The
.Fa index
is the location in the routing header from which the application wants
to retrieve an address.
-The
-.Fa index
+The
+.Fa index
parameter must have a value between 0 and one less than the number of
segments present in the routing header.
The
-.Fn inet6_rth_segments
+.Fn inet6_rth_segments
function, described in the last section, should be used to determine
the total number of segments in the routing header.
The
.Fn inet6_rth_getaddr
-function returns a pointer to an IPv6 address on success or
+function returns a pointer to an IPv6 address on success or
.Dv NULL
when an error has occurred.
.\"
+.Sh EXAMPLES
+RFC 3542 gives extensive examples in Section 21, Appendix B.
+.Pp
+KAME also provides examples in the advapitest directory of its kit.
+.\"
.Sh DIAGNOSTICS
The
.Fn inet6_rth_space
@@ -198,11 +203,6 @@ and
.Fn inet6_rth_reverse
functions return 0 on success, or \-1 upon an error.
.\"
-.Sh EXAMPLES
-RFC 3542 gives extensive examples in Section 21, Appendix B.
-.Pp
-KAME also provides examples in the advapitest directory of its kit.
-.\"
.Sh SEE ALSO
.Rs
.%A W. Stevens
OpenPOWER on IntegriCloud