git: 7b0bd7ed881e - stable/15 - recv(2): update description of MSG_WAITALL

From: Gleb Smirnoff <glebius_at_FreeBSD.org>
Date: Thu, 24 Sep 2026 03:33:32 UTC
The branch stable/15 has been updated by glebius:

URL: https://cgit.FreeBSD.org/src/commit/?id=7b0bd7ed881e8dca28c82b7834364625c3ba494c

commit 7b0bd7ed881e8dca28c82b7834364625c3ba494c
Author:     Gleb Smirnoff <glebius@FreeBSD.org>
AuthorDate: 2026-09-06 15:59:48 +0000
Commit:     Gleb Smirnoff <glebius@FreeBSD.org>
CommitDate: 2026-09-24 03:32:26 +0000

    recv(2): update description of MSG_WAITALL
    
    Remove a note about "data of a different type".  This was a bug that was
    fixed in FreeBSD 15.  Instead put an exact quote from SUS that lists
    allowed cases of a short read with MSG_WAITALL.  See discussion in D57511.
    
    (cherry picked from commit e5bcf988398924568015202bf853b3a9abd3845e)
---
 lib/libsys/recv.2 | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/lib/libsys/recv.2 b/lib/libsys/recv.2
index b78cd70b8a1d..0f982df1e646 100644
--- a/lib/libsys/recv.2
+++ b/lib/libsys/recv.2
@@ -25,7 +25,7 @@
 .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
 .\" SUCH DAMAGE.
 .\"
-.Dd May 17, 2025
+.Dd September 6, 2026
 .Dt RECV 2
 .Os
 .Sh NAME
@@ -199,8 +199,10 @@ The
 flag requests that the operation block until
 the full request is satisfied.
 However, the call may still return less data than requested
-if a signal is caught, an error or disconnect occurs,
-or the next data to be received is of a different type than that returned.
+if the socket is a message-based socket, if a signal is caught,
+if the connection is terminated, if
+.Dv MSG_PEEK
+was specified, or if an error is pending for the socket.
 The
 .Dv MSG_DONTWAIT
 flag requests the call to return when it would block otherwise.