summaryrefslogtreecommitdiff
path: root/lib/libc/sys/getsockname.2
diff options
context:
space:
mode:
authorAaron Campbell <aaron@cvs.openbsd.org>2000-10-18 05:12:14 +0000
committerAaron Campbell <aaron@cvs.openbsd.org>2000-10-18 05:12:14 +0000
commitf29d8bd9c9c901b81d8fadc341786c43528e63c1 (patch)
treea5fc4e4696d058bee8f5a8c5498044c06a963bda /lib/libc/sys/getsockname.2
parent906e3d9014b754421b64647e705b3cca2e9a7c01 (diff)
Another round of man page cleanup, this time to remove more hard sentence
breaks and getting rid of short lines, making these files easier to work with.
Diffstat (limited to 'lib/libc/sys/getsockname.2')
-rw-r--r--lib/libc/sys/getsockname.223
1 files changed, 15 insertions, 8 deletions
diff --git a/lib/libc/sys/getsockname.2 b/lib/libc/sys/getsockname.2
index 8251bbbd80d..c960ed77f6a 100644
--- a/lib/libc/sys/getsockname.2
+++ b/lib/libc/sys/getsockname.2
@@ -1,4 +1,4 @@
-.\" $OpenBSD: getsockname.2,v 1.13 2000/01/22 12:00:43 aaron Exp $
+.\" $OpenBSD: getsockname.2,v 1.14 2000/10/18 05:12:09 aaron Exp $
.\" $NetBSD: getsockname.2,v 1.6 1995/10/12 15:41:00 jtc Exp $
.\"
.\" Copyright (c) 1983, 1991, 1993
@@ -77,21 +77,28 @@ takes three parameters:
Contains the file desriptor for the socket to be looked up.
.Pp
.Fa name
-points to a sockaddr structure which will hold the resulting
-address information. Normal use requires one to use a structure
-specific to the protocol family in use, such as sockaddr_in (IPv4)
-or sockaddr_in6 (IPv6), cast to a (struct sockaddr *).
+points to a
+.Li sockaddr
+structure which will hold the resulting address information.
+Normal use requires one to use a structure
+specific to the protocol family in use, such as
+.Li sockaddr_in
+(IPv4) or
+.Li sockaddr_in6
+(IPv6), cast to a (struct sockaddr *).
.Pp
For greater portability (such as newer protocol families) the new
-structure sockaddr_storage exists. sockaddr_storage is
-large enough to hold any of the other sockaddr_* variants.
+structure sockaddr_storage exists.
+.Li sockaddr_storage
+is large enough to hold any of the other sockaddr_* variants.
On return, it should be cast to the correct sockaddr type,
according to the current protocol family.
.Pp
.Fa namelen
Indicates the amount of space pointed to by
.Fa name ,
-in bytes. Upon return,
+in bytes.
+Upon return,
.Fa namelen
is set to the actual size of the returned address information.
.Pp