aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrooks Davis <brooks@FreeBSD.org>2026-06-21 16:43:48 +0000
committerBrooks Davis <brooks@FreeBSD.org>2026-06-21 16:48:49 +0000
commit015b890e28b87f182212230de35c9b061ff71258 (patch)
treeefe534d774e44c6545ff89b41971e9401b876dc9
parent8b47939b952248e68c3ee64b8577c636bc90ca53 (diff)
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
-rw-r--r--lib/libc/string/bcopy.310
-rw-r--r--lib/libc/string/bzero.36
-rw-r--r--lib/libc/string/memccpy.312
-rw-r--r--lib/libc/string/memcpy.38
-rw-r--r--lib/libc/string/memmem.38
-rw-r--r--lib/libc/string/memmove.310
-rw-r--r--lib/libc/string/memset.36
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 ,