git: 7c3c8605d62f - main - recv.2: Improve style in RETURN VALUES
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 24 Feb 2025 17:35:01 UTC
The branch main has been updated by ziaee:
URL: https://cgit.FreeBSD.org/src/commit/?id=7c3c8605d62f5d27a5228a3787aae6e573f77d59
commit 7c3c8605d62f5d27a5228a3787aae6e573f77d59
Author: Alexander Ziaee <ziaee@FreeBSD.org>
AuthorDate: 2025-02-24 17:33:24 +0000
Commit: Alexander Ziaee <ziaee@FreeBSD.org>
CommitDate: 2025-02-24 17:33:38 +0000
recv.2: Improve style in RETURN VALUES
Reported by: des
MFC after: 3 days
Fixes: 571df2c64a3c1 (Explain how recv functions can)
Reviewed by: mhorne, des
Approved by: mhorne (mentor)
Differential Revision: https://reviews.freebsd.org/D48995
---
lib/libsys/recv.2 | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/lib/libsys/recv.2 b/lib/libsys/recv.2
index 9dc1f3cc84ca..f3ee60b75663 100644
--- a/lib/libsys/recv.2
+++ b/lib/libsys/recv.2
@@ -316,14 +316,14 @@ On data reception the
.Fa msg_len
field is updated to the length of the received message.
.Sh RETURN VALUES
-On successful completion,
+On successful completion, the
.Fn recv ,
.Fn recvfrom ,
and
.Fn recvmsg
-return the number of bytes received.
+functions return the number of bytes received, while the
.Fn recvmmsg
-returns the number of messages received.
+function returns the number of messages received.
If no messages are available to be received and the peer has
performed an orderly shutdown, 0 is returned.
Otherwise, -1 is returned and