git: 015b890e28b8 - main - mem*.3: stop refering to strings
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sun, 21 Jun 2026 16:50:02 UTC
The branch main has been updated by brooks:
URL: https://cgit.FreeBSD.org/src/commit/?id=015b890e28b87f182212230de35c9b061ff71258
commit 015b890e28b87f182212230de35c9b061ff71258
Author: Brooks Davis <brooks@FreeBSD.org>
AuthorDate: 2026-06-21 16:43:48 +0000
Commit: Brooks Davis <brooks@FreeBSD.org>
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 ,