summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorAnil Madhavapeddy <avsm@cvs.openbsd.org>2003-06-21 12:04:02 +0000
committerAnil Madhavapeddy <avsm@cvs.openbsd.org>2003-06-21 12:04:02 +0000
commit0da4f09a8e22ebda958b598cb6467226fab04431 (patch)
treecc77c81184066625f93f8cc0aa521bfbc9f5c179 /lib
parent51a63ca04b2b6de892c5f29a93e543514527f667 (diff)
clarify these functions by changing references from strings to buffers
ok deraadt@, millert@, jmc@, suggested by espie@
Diffstat (limited to 'lib')
-rw-r--r--lib/libc/string/bcopy.310
-rw-r--r--lib/libc/string/memcpy.312
-rw-r--r--lib/libc/string/memmove.310
3 files changed, 16 insertions, 16 deletions
diff --git a/lib/libc/string/bcopy.3 b/lib/libc/string/bcopy.3
index 526b08a7381..7b55bcbf434 100644
--- a/lib/libc/string/bcopy.3
+++ b/lib/libc/string/bcopy.3
@@ -28,14 +28,14 @@
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
-.\" $OpenBSD: bcopy.3,v 1.7 2003/06/02 20:18:38 millert Exp $
+.\" $OpenBSD: bcopy.3,v 1.8 2003/06/21 12:04:01 avsm Exp $
.\"
.Dd April 19, 1991
.Dt BCOPY 3
.Os
.Sh NAME
.Nm bcopy
-.Nd copy byte string
+.Nd copy bytes
.Sh SYNOPSIS
.Fd #include <string.h>
.Ft void
@@ -45,11 +45,11 @@ The
.Fn bcopy
function copies
.Fa len
-bytes from string
+bytes from buffer
.Fa src
-to string
+to buffer
.Fa dst .
-The two strings may overlap.
+The two buffers may overlap.
If
.Fa len
is zero, no bytes are copied.
diff --git a/lib/libc/string/memcpy.3 b/lib/libc/string/memcpy.3
index 7e9e5e4cf1e..c8265d94a6f 100644
--- a/lib/libc/string/memcpy.3
+++ b/lib/libc/string/memcpy.3
@@ -29,14 +29,14 @@
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
-.\" $OpenBSD: memcpy.3,v 1.5 2003/06/02 20:18:38 millert Exp $
+.\" $OpenBSD: memcpy.3,v 1.6 2003/06/21 12:04:01 avsm Exp $
.\"
.Dd June 29, 1991
.Dt MEMCPY 3
.Os
.Sh NAME
.Nm memcpy
-.Nd copy byte string
+.Nd copy bytes
.Sh SYNOPSIS
.Fd #include <string.h>
.Ft void *
@@ -46,9 +46,9 @@ The
.Fn memcpy
function copies
.Fa len
-bytes from string
+bytes from buffer
.Fa src
-to string
+to buffer
.Fa dst .
.Sh RETURN VALUES
The
@@ -71,7 +71,7 @@ In this implementation
.Fn memcpy
is implemented using
.Xr bcopy 3 ,
-and therefore the strings may overlap.
-On other systems, copying overlapping strings may produce surprises.
+and therefore the buffers may overlap.
+On other systems, copying overlapping buffers may produce surprises.
A simpler solution is to not use
.Fn memcpy .
diff --git a/lib/libc/string/memmove.3 b/lib/libc/string/memmove.3
index 64d491c69c9..d4a364eb36a 100644
--- a/lib/libc/string/memmove.3
+++ b/lib/libc/string/memmove.3
@@ -29,14 +29,14 @@
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
-.\" $OpenBSD: memmove.3,v 1.5 2003/06/02 20:18:38 millert Exp $
+.\" $OpenBSD: memmove.3,v 1.6 2003/06/21 12:04:01 avsm Exp $
.\"
.Dd June 29, 1991
.Dt MEMMOVE 3
.Os
.Sh NAME
.Nm memmove
-.Nd copy byte string
+.Nd copy bytes
.Sh SYNOPSIS
.Fd #include <string.h>
.Ft void *
@@ -46,11 +46,11 @@ The
.Fn memmove
function copies
.Fa len
-bytes from string
+bytes from buffer
.Fa src
-to string
+to buffer
.Fa dst .
-The two strings may overlap;
+The two buffers may overlap;
the copy is always done in a non-destructive manner.
.Sh RETURN VALUES
The