mirror of
https://github.com/freebsd/freebsd-src.git
synced 2026-10-28 11:25:21 +01:00
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
This commit is contained in:
1 parent
8b47939b95
commit
015b890e28
7 files changed
+30
-30
No files matched your search
@@ -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.
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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 ,
|
||||
|
||||
Reference in new issue
Block a user