git: 6875767cf2e2 - stable/14 - recv.2: Improve style in RETURN VALUES
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 27 Feb 2025 01:45:24 UTC
The branch stable/14 has been updated by ziaee:
URL: https://cgit.FreeBSD.org/src/commit/?id=6875767cf2e21b49769d5d78e2dffaaf655ca8b4
commit 6875767cf2e21b49769d5d78e2dffaaf655ca8b4
Author: Alexander Ziaee <ziaee@FreeBSD.org>
AuthorDate: 2025-02-24 17:33:24 +0000
Commit: Alexander Ziaee <ziaee@FreeBSD.org>
CommitDate: 2025-02-27 01:44:37 +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
(cherry picked from commit 7c3c8605d62f5d27a5228a3787aae6e573f77d59)
---
lib/libc/sys/recv.2 | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/lib/libc/sys/recv.2 b/lib/libc/sys/recv.2
index 8d50086c3eb9..8caef85db812 100644
--- a/lib/libc/sys/recv.2
+++ b/lib/libc/sys/recv.2
@@ -318,14 +318,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