]> git.ipfire.org Git - thirdparty/man-pages.git/commitdiff
accept.2: Remove editorializing comments about 'socklen_t'
authorMichael Kerrisk <mtk.manpages@gmail.com>
Fri, 18 Nov 2016 09:22:40 +0000 (10:22 +0100)
committerMichael Kerrisk <mtk.manpages@gmail.com>
Fri, 18 Nov 2016 09:22:40 +0000 (10:22 +0100)
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
man2/accept.2

index d267bcbfef8fc45d426334a08ca1e190cb8bf4b7..67b5f0effc3e45b667140435f13692499670e993 100644 (file)
@@ -361,24 +361,6 @@ standard wanted to change it into a \fIsize_t *\fP, and that is what it is
 for SunOS 5.
 Later POSIX drafts have \fIsocklen_t *\fP,
 and so do the Single UNIX Specification and glibc2.
-Quoting Linus Torvalds:
-
-.\" .I fails: only italicizes a single line
-"_Any_ sane library _must_ have "socklen_t" be the same size
-as int.
-Anything else breaks any BSD socket layer stuff.
-POSIX initially \fIdid\fP make it a size_t, and I (and hopefully others, but
-obviously not too many) complained to them very loudly indeed.
-Making it a size_t is completely broken, exactly because size_t very
-seldom is the same size as "int" on 64-bit architectures, for example.
-And it
-\fIhas\fP to be the same size as "int" because that's what the BSD socket
-interface is.
-Anyway, the POSIX people eventually got a clue, and created "socklen_t".
-They shouldn't have touched it in the first place, but once they did
-they felt it had to have a named type for some unfathomable reason
-(probably somebody didn't like losing face over having done the original
-stupid thing, so they silently just renamed their blunder)."
 .SH EXAMPLE
 See
 .BR bind (2).