Page MenuHomeFreeBSD

D48955.1786570901.diff
No OneTemporary

Size
695 B
Referenced Files
None
Subscribers
None

D48955.1786570901.diff

diff --git a/lib/libsys/recv.2 b/lib/libsys/recv.2
--- a/lib/libsys/recv.2
+++ b/lib/libsys/recv.2
@@ -316,12 +316,19 @@
.Fa msg_len
field is updated to the length of the received message.
.Sh RETURN VALUES
-These calls except
-.Fn recvmmsg
+On successful completion,
+.Fn recv ,
+.Fn recvfrom ,
+and
+.Fn recvmsg
return the number of bytes received.
.Fn recvmmsg
returns the number of messages received.
-A value of -1 is returned if an error occurred.
+If no messages are available to be received and the peer has
+performed an orderly shutdown, 0 is returned.
+Otherwise, -1 is returned and
+.Va errno
+is set to indicate the error.
.Sh ERRORS
The calls fail if:
.Bl -tag -width Er

File Metadata

Mime Type
text/plain
Expires
Wed, Aug 12, 9:41 PM (22 h, 48 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
29400109
Default Alt Text
D48955.1786570901.diff (695 B)

Event Timeline