From nobody Sun Jun 21 16:50:02 2026 X-Original-To: dev-commits-src-all@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 4gjy4H32XMz6hL70 for ; Sun, 21 Jun 2026 16:50:07 +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 "YR1" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4gjy4H21Ghz3JZp for ; Sun, 21 Jun 2026 16:50:07 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1782060607; 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=79kHFsfRT10fNhUfz3UM+C592Mw9LZclgH8+dSBtE4o=; b=YoIatyV+E3YWpQIDCs/aUwDs8pE0TAhXIudpPOqFwz/9yiKfVng9TBrQ4rq9PlPjab0n4A AioXQrTheeHtwItBWmAAeaYNa9CZx16tDD/kuuPQX0PMKTUo60p6V+t8fp2Ie6jWhICd4M uUAMcxV8UWB5Acpdnsq3niwzPvBBWXeOZ7joJHJ9j8FIkpSStx0whOw50VSBgTUfHvwmxn /OOH68z80wp2xCNpoiDgYox0Zukykbg8wTo5b0Mog5jGUSTkY2XNXPj0COvIxExsnIV75D UOf7efVgQCu01vLU11MBDlHt5KUZP9j9fLT1w5IoepXcEqpGAw+HMnHZBi5uLQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1782060607; a=rsa-sha256; cv=none; b=P4Lw69+ta75Gonw92UGYQxR5oL/oPHiKpNPlbVt5XZJRdl+TO7UT+8YbnVYNCBegY3KH42 kNueTFsyco0UBJr82ZKgSkwEFEKyOJ86Wxvx4w5YxHzNvczFphd7v9cAmmNutLLjkSZZuz KQyTPPknJ1ibFELVLfMR5rZFLJwjQpEjMWLNhNFr343cdUVL/JQ2Hnk0U5s9ipb0i47QtK meDqhqEp92ncnaI0fppznxOZhOVIOeBpRiZd14iT/jgpWqou62VRrA3GicAKuO4R5FEI5C CufXkQw5BYhIZFAsghiYxpk04wuQriZSeCq9EN6Jy6XCsbq1G/VV/toRkx+xsg== 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=1782060607; 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=79kHFsfRT10fNhUfz3UM+C592Mw9LZclgH8+dSBtE4o=; b=ZM8oFviqCdy+Gwfw6t0A5gkxwDb1g4BwMDgimb2x6SQzXPe7ZSvVo04RBR/uNpo8PuooPx Uk073Mxs0bN51C+4/JtOOK1UEFDPije9Z8ynkIwZhFOjV658fy8lml1eVlv8yqk7helHzS 2RfaopAJevxtP43hT/D5cJrVvTVIXzApC9FgJ/aqclckbA1w+at6vdcw58oxyzeulDZUth HnMziXHjlK4Jwp1IR+8ewbpTmotszvbW4CBhY6pG+9xmx8/kV87lpnIm7/i9TSaq52KBWL qlKCPxBKUz6JBwBykH/raqdYmBkm784HsL7cF5JLVjv3yxTg3kEs0PRc3dh9Gw== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4gjy4H0Ml7z1NsM for ; Sun, 21 Jun 2026 16:50:07 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 1c25b by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Sun, 21 Jun 2026 16:50:02 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Brooks Davis Subject: git: 015b890e28b8 - main - mem*.3: stop refering to strings List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@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: brooks X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 015b890e28b87f182212230de35c9b061ff71258 Auto-Submitted: auto-generated Date: Sun, 21 Jun 2026 16:50:02 +0000 Message-Id: <6a38163a.1c25b.3b655320@gitrepo.freebsd.org> The branch main has been updated by brooks: URL: https://cgit.FreeBSD.org/src/commit/?id=015b890e28b87f182212230de35c9b061ff71258 commit 015b890e28b87f182212230de35c9b061ff71258 Author: Brooks Davis AuthorDate: 2026-06-21 16:43:48 +0000 Commit: Brooks Davis CommitDate: 2026-06-21 16:48:49 +0000 mem*.3: stop refering to strings POSIX and the C standard now refer to objects and sequences rather than confusingly revering to strings. Also update bcopy(3) and bzero(3). Reviewed by: emaste Sponsored by: Innovate UK Differential Revision: https://reviews.freebsd.org/D57680 --- lib/libc/string/bcopy.3 | 10 +++++----- lib/libc/string/bzero.3 | 6 +++--- lib/libc/string/memccpy.3 | 12 ++++++------ lib/libc/string/memcpy.3 | 8 ++++---- lib/libc/string/memmem.3 | 8 ++++---- lib/libc/string/memmove.3 | 10 +++++----- lib/libc/string/memset.3 | 6 +++--- 7 files changed, 30 insertions(+), 30 deletions(-) diff --git a/lib/libc/string/bcopy.3 b/lib/libc/string/bcopy.3 index 230ca2eea89a..48c21fbdde06 100644 --- a/lib/libc/string/bcopy.3 +++ b/lib/libc/string/bcopy.3 @@ -28,12 +28,12 @@ .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF .\" SUCH DAMAGE. .\" -.Dd August 24, 2015 +.Dd June 21, 2026 .Dt BCOPY 3 .Os .Sh NAME .Nm bcopy -.Nd copy byte string +.Nd copy bytes in memory .Sh LIBRARY .Lb libc .Sh SYNOPSIS @@ -46,11 +46,11 @@ The function copies .Fa len -bytes from string +bytes from object .Fa src -to string +to object .Fa dst . -The two strings may overlap. +The two objects may overlap. If .Fa len is zero, no bytes are copied. diff --git a/lib/libc/string/bzero.3 b/lib/libc/string/bzero.3 index 2c791c497d8c..054031660a0d 100644 --- a/lib/libc/string/bzero.3 +++ b/lib/libc/string/bzero.3 @@ -28,13 +28,13 @@ .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF .\" SUCH DAMAGE. .\" -.Dd August 24, 2015 +.Dd June 21, 2026 .Dt BZERO 3 .Os .Sh NAME .Nm bzero , .Nm explicit_bzero -.Nd write zeroes to a byte string +.Nd write zeroes to memory .Sh LIBRARY .Lb libc .Sh SYNOPSIS @@ -49,7 +49,7 @@ The function writes .Fa len -zero bytes to the string +zero bytes to the object .Fa b . If .Fa len diff --git a/lib/libc/string/memccpy.3 b/lib/libc/string/memccpy.3 index 0d35a68fce67..5a4305afb743 100644 --- a/lib/libc/string/memccpy.3 +++ b/lib/libc/string/memccpy.3 @@ -25,12 +25,12 @@ .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF .\" SUCH DAMAGE. .\" -.Dd December 5, 2023 +.Dd June 21, 2026 .Dt MEMCCPY 3 .Os .Sh NAME .Nm memccpy -.Nd copy string until character found +.Nd copy bytes until character found .Sh LIBRARY .Lb libc .Sh SYNOPSIS @@ -46,19 +46,19 @@ The .Fn memccpy function -copies bytes from string +copies bytes from object .Fa src -to string +to object .Fa dst . If the character .Fa c (as converted to an .Vt "unsigned char" ) -occurs in the string +occurs in the object .Fa src , the copy stops and a pointer to the byte after the copy of .Fa c -in the string +in the object .Fa dst is returned. Otherwise, diff --git a/lib/libc/string/memcpy.3 b/lib/libc/string/memcpy.3 index c1cf93af1cdc..5dfa18b9e67f 100644 --- a/lib/libc/string/memcpy.3 +++ b/lib/libc/string/memcpy.3 @@ -29,12 +29,12 @@ .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF .\" SUCH DAMAGE. .\" -.Dd November 18, 2023 +.Dd June 21, 2026 .Dt MEMCPY 3 .Os .Sh NAME .Nm memcpy -.Nd copy byte string +.Nd copy bytes in memory .Sh LIBRARY .Lb libc .Sh SYNOPSIS @@ -51,9 +51,9 @@ and functions copy .Fa len -bytes from string +bytes from object .Fa src -to string +to object .Fa dst . If .Fa src diff --git a/lib/libc/string/memmem.3 b/lib/libc/string/memmem.3 index e301a0bd1e0f..8e8aa6dafa99 100644 --- a/lib/libc/string/memmem.3 +++ b/lib/libc/string/memmem.3 @@ -24,12 +24,12 @@ .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF .\" SUCH DAMAGE. .\" -.Dd June 29, 2023 +.Dd June 21, 2026 .Dt MEMMEM 3 .Os .Sh NAME .Nm memmem -.Nd "locate a byte substring in a byte string" +.Nd "locate a byte subsequence in a byte sequence" .Sh LIBRARY .Lb libc .Sh SYNOPSIS @@ -43,9 +43,9 @@ The .Fn memmem function -locates the first occurrence of the byte string +locates the first occurrence of the byte sequence .Fa little -in the byte string +in the byte sequence .Fa big . .Sh RETURN VALUES If diff --git a/lib/libc/string/memmove.3 b/lib/libc/string/memmove.3 index 4fd190610388..b92b611b9ff5 100644 --- a/lib/libc/string/memmove.3 +++ b/lib/libc/string/memmove.3 @@ -29,12 +29,12 @@ .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF .\" SUCH DAMAGE. .\" -.Dd June 4, 1993 +.Dd June 21, 2026 .Dt MEMMOVE 3 .Os .Sh NAME .Nm memmove -.Nd copy byte string +.Nd copy bytes in memory .Sh LIBRARY .Lb libc .Sh SYNOPSIS @@ -47,11 +47,11 @@ The function copies .Fa len -bytes from string +bytes from object .Fa src -to string +to object .Fa dst . -The two strings may overlap; +The two objects may overlap; the copy is always done in a non-destructive manner. .Sh RETURN VALUES The diff --git a/lib/libc/string/memset.3 b/lib/libc/string/memset.3 index f6ab9dacb516..b9e09169cc38 100644 --- a/lib/libc/string/memset.3 +++ b/lib/libc/string/memset.3 @@ -29,12 +29,12 @@ .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF .\" SUCH DAMAGE. .\" -.Dd October 24, 2024 +.Dd June 21, 2026 .Dt MEMSET 3 .Os .Sh NAME .Nm memset -.Nd write a byte to byte string +.Nd set bytes in memory .Sh LIBRARY .Lb libc .Sh SYNOPSIS @@ -56,7 +56,7 @@ bytes of value .Fa c (converted to an .Vt "unsigned char" ) -to the string +to the object .Fa dest . Undefined behaviour from .Fn memset ,