]> git.ipfire.org Git - thirdparty/man-pages.git/commitdiff
accept.2: Simplify the discussion of 'socklen_t'
authorMichael Kerrisk <mtk.manpages@gmail.com>
Fri, 9 Dec 2016 12:00:46 +0000 (13:00 +0100)
committerMichael Kerrisk <mtk.manpages@gmail.com>
Fri, 9 Dec 2016 12:21:55 +0000 (13:21 +0100)
We don't really need to list the old OSes in this discussion.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
man2/accept.2

index 6fb5f723c64c7be619307ccec88e4f5bd7a12411..8fede047f8d7fb21bdf9810044fa4d77ae6702f5 100644 (file)
@@ -353,13 +353,15 @@ implied by closing the new socket.
 Currently, only DECnet has these semantics on Linux.
 .\"
 .SS The socklen_t type
-The third argument of
+In the original BSD sockets implementation (and on other older systems)
+.\" such as Linux libc4 and libc5, SunOS 4, SGI
+the third argument of
 .BR accept ()
-was originally declared as an \fIint\ *\fP (and is that under libc4 and libc5
-and on many other systems like 4.x BSD, SunOS 4, SGI); a POSIX.1g draft
-standard wanted to change it into a \fIsize_t\ *\fP, and that is what it is
-for SunOS 5.
-Later POSIX standards and glibc 2.x have
+was declared as an \fIint\ *\fP.
+A POSIX.1g draft
+standard wanted to change it into a \fIsize_t\ *\fPC;
+.\" SunOS 5 has 'size_t *'
+later POSIX standards and glibc 2.x have
 .IR "socklen_t\ * ".
 .SH EXAMPLE
 See