Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/sys bcopy() is documented as allowing overlapping memory...



details:   https://anonhg.NetBSD.org/src/rev/4375d91737f0
branches:  trunk
changeset: 512113:4375d91737f0
user:      tv <tv%NetBSD.org@localhost>
date:      Thu Jul 05 21:51:10 2001 +0000

description:
bcopy() is documented as allowing overlapping memory regions.  Define it
in terms of the standard name memmove() to account for this.
Fixes kern/13369 and the redundant lib/13370.

diffstat:

 sys/sys/systm.h |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r 3c09fc10c44a -r 4375d91737f0 sys/sys/systm.h
--- a/sys/sys/systm.h   Thu Jul 05 21:27:31 2001 +0000
+++ b/sys/sys/systm.h   Thu Jul 05 21:51:10 2001 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: systm.h,v 1.128 2001/05/30 12:07:05 mrg Exp $  */
+/*     $NetBSD: systm.h,v 1.129 2001/07/05 21:51:10 tv Exp $   */
 
 /*-
  * Copyright (c) 1982, 1988, 1991, 1993
@@ -210,7 +210,7 @@
 
 int    kcopy __P((const void *, void *, size_t));
 
-#define bcopy(src, dst, len)   memcpy(dst, src, len)
+#define bcopy(src, dst, len)   memmove(dst, src, len)
 #define bzero(src, len)                memset(src, 0, len)
 #define bcmp(a, b, len)                memcmp(a, b, len)
 



Home | Main Index | Thread Index | Old Index