From nobody Sun Sep 06 16:04:20 2026 X-Original-To: dev-commits-src-main@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 4hdFPw5xGjz6rKTk for ; Sun, 06 Sep 2026 16:04:20 +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 4hdFPw4xqkz4DYY for ; Sun, 06 Sep 2026 16:04:20 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1788710660; 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=y29Ueh+saCYfAvv3KS5xV7m4vtrHNW3p3vKPR5ZZNB0=; b=fy6MqP+M2UVOlajdpAkerDrszILOLdPzedIC+0W3oZHnKkOejSaz1g11trjMSLlhXbCQY+ y9Hn4730UDvCYDCPBIBrxEVFrxaneVRvAJEt/gSevOuv3phkhxy2Eyh+YpAPprfXt9+oh3 D7bfBnM7wXu3/6dBiGh7sUbkTZ9DN6bnjijsWacrtebOBGBS5FAOoWoR1dqLjbvV2iA33Y hzFKo5hsrk9jqLM5vx9lPxr+xzhxkmdjhbiH+KA17mIIhWNf6NBeS5w9nQpsUF9mrmIQXk 3S7U4cXqwe4tpOzNy7/SqN091faoKfb+8p9I7oUvBSoPn+Q6zPNFtBDHdzfXmw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1788710660; a=rsa-sha256; cv=none; b=AdxclvCT9kh59cnSlXlor15BQZRBxOeWacFpzr/UbOU04sZJue/faI/WLXHyV9M1hOdjMc BRSlKDrOoqo4jlWaJJz6+fApirfNkPEzpnf90gcZi5MGzV55ipe8E8twK2BxKsC9UIS5VN G1knjdUF4+ogE3mOSaZyihvs3WdaAsFuIsgM6tLEnXqXbcxkKBaZcUHTvdy4susFKd6viy Dyuyf1YSuaaOdAa4Yej6QqHsaeMOi7AYF5jaUDuCoXinEPvA4DJOTfBl40K4fikEiBTXwF ClTIJIdLHUv97cCdZBXu2g0mq2Xved9+q18Fw0aXNFC7eK6jruEhLeHeFoqpzQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1788710660; 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=y29Ueh+saCYfAvv3KS5xV7m4vtrHNW3p3vKPR5ZZNB0=; b=pzIP99d9z9737/WcAQjMGq5+zC5KGTQ7XhOWyRNlDfW9RddEM4ik/Z4jsdt75qFpgUpXCe jBrkMdZs3VIvPh3VYqfv8+9mp80zistHKUpjrO4FNi4n6L1OIynlyOY8f0iR8Hybm5RC6t KVQZb61SuZgyBgG/9FA8ig6nsWGpFjcXLMPAPYcgdhFPpAATwN+2CTubcFfB9sKEJ8sFga 2vjmj3Aio6McdJXwr3hhDPFLsWuCIdoAwpejJv+guD3DgiE8vdZvzzI2xxbXYyOWCmda8E j+jxcLD3SnRLZMsrM7gVMqJ+C0xw45kIdHUDz2bPIgCwsB35xeSv1ak6OTBreg== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4hdFPw3mNHzfHB for ; Sun, 06 Sep 2026 16:04:20 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 1e7d5 by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Sun, 06 Sep 2026 16:04:20 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Gleb Smirnoff Subject: git: e5bcf9883989 - main - recv(2): update description of MSG_WAITALL List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-main@freebsd.org Sender: owner-dev-commits-src-main@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/main X-Git-Reftype: branch X-Git-Commit: e5bcf988398924568015202bf853b3a9abd3845e Auto-Submitted: auto-generated Date: Sun, 06 Sep 2026 16:04:20 +0000 Message-Id: <6a9d8f04.1e7d5.51480eb5@gitrepo.freebsd.org> The branch main has been updated by glebius: URL: https://cgit.FreeBSD.org/src/commit/?id=e5bcf988398924568015202bf853b3a9abd3845e commit e5bcf988398924568015202bf853b3a9abd3845e Author: Gleb Smirnoff AuthorDate: 2026-09-06 15:59:48 +0000 Commit: Gleb Smirnoff CommitDate: 2026-09-06 16:03:45 +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. --- 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.