From nobody Thu Sep 24 03:33:32 2026 X-Original-To: dev-commits-src-branches@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4hqzvK09Rjz6tSRc for ; Thu, 24 Sep 2026 03:33:33 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "YR2" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4hqzvJ5qTxz4mcp for ; Thu, 24 Sep 2026 03:33:32 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1790220812; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=JYyKi6X5OC3NPXYryrBnJQUiUO+6e++uSEI6JUkr0GI=; b=q38JGKGpfvLya+o/1q01R+uxwamdjuSTZ2gpNNt6BxfvcSoOc5K1xSS5SW00+6toCkdUvb sDUZl9XT50OpJWx2U5NEt52aRP1JTidS0nkEKuDB45YosRMocqLUB+6yzuo11wr0dtmwBQ liCx3b0jJJVIw/NQo9M+/3Ec7nqZnhz8c8FoBm/npY9nnDg9R6Nw72rLd9oaqmObCG9lZw n1uX8Lhv5EcmGoa0J4YFBanKLmgGguj/CzaBtTgfiI/W2MQt7CYsfLBQQasnSDSkVm/c11 wVo6qF4vvtlhRWNBoXP6VFZ71IDkgcqVVj6ChpqWUz2ulmf8UMRp4n4mOyC+0A== ARC-Seal: i=1; a=rsa-sha256; d=freebsd.org; s=dkim; cv=none; t=1790220812; b=rHMToU2iBawCeq1zQgh5fJv65lYVRahmKJAIF9afuqV7aeuYs1Q1Ugu4yQnTGH1xnKyQb9 7zUOdV7w5oNS3XVkje3bhVsMC+Zjj+tJHoMjd/Il4moinJiPALafKok4M9EbfEQSrEZCst uDmAjoEVHerqL8A8Bfbw83ghhj0uUp23ftM//YmM978GBJQicduPbNXIy3aCINMUIUR3pA Dq9dUwULJjsLul8yJTbHFHxSPvhz43qZ4POF8nONstZ4ziAhm+NGyYC77iX6CaHtj2uJ19 RrVSIMG3Wo2IL0Of6cqykU/vuRL2qMY+JskxPLe/HwJkbTTckyT/YWm1IUZQPg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1790220812; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=JYyKi6X5OC3NPXYryrBnJQUiUO+6e++uSEI6JUkr0GI=; b=Jz8VBnzSxP8lDDA9QmLeT65hEzihSXnfV2SpNk/m5CmarE7fcHObAHhndaBgUkMkwqFgHO gAGaZbuPnxQXPZKwQ52NC7gBKhpMLoltni0bzly1QmWhmgYkWtSogEmg3L9LWsh44IIMtf M/sWqW6rgqi5Z+wTt9FlZdn74dDajH0SEc80jAxKZ58nIn1550QlNMs1+21fCzmFY2i0Lq FV1Ij4NOmNrDr1d7iPrzUY9TAOrIMrNkGomgCWn5Vxjlaf5342ZbSRKEGS+wf7gyQPQ1dF yedYcrBqN/q6IOWbH3GOeSsUR2AoHPnS/ckGUnSUabz70jHPKajB4kC+0yt60g== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4hqzvJ4bRTz1L79 for ; Thu, 24 Sep 2026 03:33:32 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 3b6fa by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Thu, 24 Sep 2026 03:33:32 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Gleb Smirnoff Subject: git: 7b0bd7ed881e - stable/15 - recv(2): update description of MSG_WAITALL List-Id: Commits to the stable branches of the FreeBSD src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-branches List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-branches@freebsd.org Sender: owner-dev-commits-src-branches@FreeBSD.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: glebius X-Git-Repository: src X-Git-Refname: refs/heads/stable/15 X-Git-Reftype: branch X-Git-Commit: 7b0bd7ed881e8dca28c82b7834364625c3ba494c Auto-Submitted: auto-generated Date: Thu, 24 Sep 2026 03:33:32 +0000 Message-Id: <6ab49a0c.3b6fa.61c6599c@gitrepo.freebsd.org> The branch stable/15 has been updated by glebius: URL: https://cgit.FreeBSD.org/src/commit/?id=7b0bd7ed881e8dca28c82b7834364625c3ba494c commit 7b0bd7ed881e8dca28c82b7834364625c3ba494c Author: Gleb Smirnoff AuthorDate: 2026-09-06 15:59:48 +0000 Commit: Gleb Smirnoff 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.