summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlejandro Colomar <alx@kernel.org>2023-04-03 01:11:40 +0200
committerAlejandro Colomar <alx@kernel.org>2023-04-03 01:13:33 +0200
commit81d1a21bf358519b3ba5c8bb958a2b9f3e4bbccd (patch)
tree79dc97d97523c7574660676556ea3ee0495b66a7
parent0e1ec9195b8deb30c01aa1dfd358f57ab4048777 (diff)
man2/, sockaddr.3type: Move text to sockaddr.3type
Move text about socklen_t to its own page, and remove repetitive references to read accept(2) (except from the type page itself). Signed-off-by: Alejandro Colomar <alx@kernel.org>
-rw-r--r--man2/getpeername.25
-rw-r--r--man2/getsockname.25
-rw-r--r--man2/getsockopt.25
-rw-r--r--man2/recv.26
-rw-r--r--man3type/sockaddr.3type5
5 files changed, 5 insertions, 21 deletions
diff --git a/man2/getpeername.2 b/man2/getpeername.2
index 2e7917719..a33e6ebea 100644
--- a/man2/getpeername.2
+++ b/man2/getpeername.2
@@ -81,11 +81,6 @@ POSIX.1-2008.
POSIX.1-2001, SVr4, 4.4BSD
(first appeared in 4.2BSD).
.SH NOTES
-For background on the
-.I socklen_t
-type, see
-.BR accept (2).
-.PP
For stream sockets, once a
.BR connect (2)
has been performed, either socket can call
diff --git a/man2/getsockname.2 b/man2/getsockname.2
index f21f43cb5..7ac223676 100644
--- a/man2/getsockname.2
+++ b/man2/getsockname.2
@@ -76,11 +76,6 @@ POSIX.1-2001, SVr4, 4.4BSD
(first appeared in 4.2BSD).
.\" SVr4 documents additional ENOMEM
.\" and ENOSR error codes.
-.SH NOTES
-For background on the
-.I socklen_t
-type, see
-.BR accept (2).
.SH SEE ALSO
.BR bind (2),
.BR socket (2),
diff --git a/man2/getsockopt.2 b/man2/getsockopt.2
index 503101296..a0cda8e87 100644
--- a/man2/getsockopt.2
+++ b/man2/getsockopt.2
@@ -156,11 +156,6 @@ SVr4, 4.4BSD (first appeared in 4.2BSD).
.\" not document the
.\" .BR SO_SNDLOWAT ", " SO_RCVLOWAT ", " SO_SNDTIMEO ", " SO_RCVTIMEO
.\" options
-.SH NOTES
-For background on the
-.I socklen_t
-type, see
-.BR accept (2).
.SH BUGS
Several of the socket options should be handled at lower levels of the
system.
diff --git a/man2/recv.2 b/man2/recv.2
index 31899df82..a81d6e290 100644
--- a/man2/recv.2
+++ b/man2/recv.2
@@ -527,12 +527,6 @@ has no effect (the datagram remains pending), while
.BR recv ()
consumes the pending datagram.
.PP
-The
-.I socklen_t
-type was invented by POSIX.
-See also
-.BR accept (2).
-.PP
See
.BR recvmmsg (2)
for information about a Linux-specific system call
diff --git a/man3type/sockaddr.3type b/man3type/sockaddr.3type
index 32c3c5bd0..2fdf56c59 100644
--- a/man3type/sockaddr.3type
+++ b/man3type/sockaddr.3type
@@ -112,6 +112,11 @@ Describes a UNIX domain socket address.
POSIX.1-2008.
.SH HISTORY
POSIX.1-2001.
+.PP
+.I socklen_t
+was invented by POSIX.
+See also
+.BR accept (2).
.SH NOTES
.I socklen_t
is also defined in