Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F148384597
D48955.1786570901.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
695 B
Referenced Files
None
Subscribers
None
D48955.1786570901.diff
View Options
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
Details
Attached
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)
Attached To
Mode
D48955: PR174581: Clarify recv functions can return 0 if no messages are waiting and the peer has closed the connection.
Attached
Detach File
Event Timeline
Log In to Comment