OSDN Git Service

LDP: Update original to LDP v3.76
[linuxjm/LDP_man-pages.git] / original / man2 / recv.2
index 9972643..9ddcc30 100644 (file)
@@ -38,7 +38,7 @@
 .\" Modified 1998,1999 by Andi Kleen
 .\" 2001-06-19 corrected SO_EE_OFFENDER, bug report by James Hawtin
 .\"
-.TH RECV 2 2014-05-10 "Linux" "Linux Programmer's Manual"
+.TH RECV 2 2014-08-19 "Linux" "Linux Programmer's Manual"
 .SH NAME
 recv, recvfrom, recvmsg \- receive a message from a socket
 .SH SYNOPSIS
@@ -279,9 +279,9 @@ will return a value greater than was supplied to the call.
 
 If the caller is not interested in the source address,
 .I src_addr
-should be specified as NULL and
+and
 .I addrlen
-should be specified as 0.
+should be specified as NULL.
 .\"
 .SS recv()
 The
@@ -484,19 +484,9 @@ and
 .B MSG_WAITALL
 flags.
 .SH NOTES
-The prototypes given above follow glibc2.
-The Single UNIX Specification agrees, except that it has return values
-of type \fIssize_t\fP (while 4.x BSD and libc4 and libc5 all have \fIint\fP).
-The
-.I flags
-argument is \fIint\fP in 4.x BSD, but \fIunsigned int\fP in libc4 and libc5.
 The
-.I len
-argument is \fIint\fP in 4.x BSD, but \fIsize_t\fP in libc4 and libc5.
-The
-.I addrlen
-argument is \fIint\ *\fP in 4.x BSD, libc4 and libc5.
-The present  \fIsocklen_t\ *\fP was invented by POSIX.
+.I socklen_t
+type was invented by POSIX.
 See also
 .BR accept (2).
 
@@ -535,7 +525,7 @@ is shown in
 .BR sockatmark (3),
 .BR socket (7)
 .SH COLOPHON
-This page is part of release 3.67 of the Linux
+This page is part of release 3.76 of the Linux
 .I man-pages
 project.
 A description of the project,