From 339c056f856313e215baab8ddc4bc0ce064b4571 Mon Sep 17 00:00:00 2001 From: schwarze <> Date: Mon, 25 Jul 2011 00:38:53 +0000 Subject: update HISTORY and SEE ALSO for all of string(3), together with various smaller improvements; jmc@ and nicm@ both ask me to get this in because further tweaking will be easier in-tree --- src/lib/libc/string/memcpy.3 | 22 +++++++++++++++------- 1 file changed, 15 insertions(+), 7 deletions(-) (limited to 'src/lib/libc/string/memcpy.3') diff --git a/src/lib/libc/string/memcpy.3 b/src/lib/libc/string/memcpy.3 index 1deb03631b..e95d670ad9 100644 --- a/src/lib/libc/string/memcpy.3 +++ b/src/lib/libc/string/memcpy.3 @@ -1,3 +1,5 @@ +.\" $OpenBSD: memcpy.3,v 1.8 2011/07/25 00:38:52 schwarze Exp $ +.\" .\" Copyright (c) 1990, 1991 The Regents of the University of California. .\" All rights reserved. .\" @@ -29,9 +31,7 @@ .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF .\" SUCH DAMAGE. .\" -.\" $OpenBSD: memcpy.3,v 1.7 2007/05/31 19:19:32 jmc Exp $ -.\" -.Dd $Mdocdate: May 31 2007 $ +.Dd $Mdocdate: July 25 2011 $ .Dt MEMCPY 3 .Os .Sh NAME @@ -60,18 +60,26 @@ function returns the original value of .Xr memccpy 3 , .Xr memmove 3 , .Xr strcpy 3 , -.Xr strlcpy 3 +.Xr strlcpy 3 , +.Xr wmemcpy 3 .Sh STANDARDS The .Fn memcpy function conforms to .St -ansiC . -.Sh BUGS +.Sh HISTORY +The +.Fn memcpy +function first appeared in +.At V +and was reimplemented for +.Bx 4.3 Tahoe . +.Sh CAVEATS In this implementation .Fn memcpy is implemented using .Xr bcopy 3 , and therefore the buffers may overlap. On other systems, copying overlapping buffers may produce surprises. -A simpler solution is to not use -.Fn memcpy . +A portable, safe solution is to use +.Xr memmove 3 . -- cgit v1.2.3-55-g6feb