Source-Changes-HG archive

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

[src/trunk]: src/sys/kern bcopy -> memcpy



details:   https://anonhg.NetBSD.org/src/rev/8c9ac8422dca
branches:  trunk
changeset: 512844:8c9ac8422dca
user:      thorpej <thorpej%NetBSD.org@localhost>
date:      Wed Jul 18 06:51:38 2001 +0000

description:
bcopy -> memcpy

diffstat:

 sys/kern/subr_userconf.c |  6 +++---
 sys/kern/sys_pipe.c      |  6 +++---
 sys/kern/uipc_mbuf2.c    |  6 +++---
 3 files changed, 9 insertions(+), 9 deletions(-)

diffs (67 lines):

diff -r cb817c660f93 -r 8c9ac8422dca sys/kern/subr_userconf.c
--- a/sys/kern/subr_userconf.c  Wed Jul 18 06:48:27 2001 +0000
+++ b/sys/kern/subr_userconf.c  Wed Jul 18 06:51:38 2001 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: subr_userconf.c,v 1.3 2001/07/03 08:06:40 itojun Exp $ */
+/*     $NetBSD: subr_userconf.c,v 1.4 2001/07/18 06:51:38 thorpej Exp $        */
 
 /*
  * Copyright (c) 1996 Mats O Jansson <moj%stacken.kth.se@localhost>
@@ -154,8 +154,8 @@
 {
        sprintf(userconf_histbuf," %d",val);
        if ((userconf_histcur + strlen(userconf_histbuf)) < userconf_histsz) {
-               bcopy(userconf_histbuf,
-                     &userconf_history[userconf_histcur],
+               memcpy(&userconf_history[userconf_histcur],
+                     userconf_histbuf,
                      strlen(userconf_histbuf));
                userconf_histcur = userconf_histcur + strlen(userconf_histbuf);
        }
diff -r cb817c660f93 -r 8c9ac8422dca sys/kern/sys_pipe.c
--- a/sys/kern/sys_pipe.c       Wed Jul 18 06:48:27 2001 +0000
+++ b/sys/kern/sys_pipe.c       Wed Jul 18 06:51:38 2001 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: sys_pipe.c,v 1.9 2001/07/18 06:48:27 thorpej Exp $     */
+/*     $NetBSD: sys_pipe.c,v 1.10 2001/07/18 06:51:38 thorpej Exp $    */
 
 /*
  * Copyright (c) 1996 John S. Dyson
@@ -840,8 +840,8 @@
 
        size = wpipe->pipe_map.cnt;
        pos = wpipe->pipe_map.pos;
-       bcopy((caddr_t) wpipe->pipe_map.kva + pos,
-           (caddr_t) wpipe->pipe_buffer.buffer, size);
+       memcpy((caddr_t) wpipe->pipe_buffer.buffer,
+           (caddr_t) wpipe->pipe_map.kva + pos, size);
 
        wpipe->pipe_buffer.in = size;
        wpipe->pipe_buffer.out = 0;
diff -r cb817c660f93 -r 8c9ac8422dca sys/kern/uipc_mbuf2.c
--- a/sys/kern/uipc_mbuf2.c     Wed Jul 18 06:48:27 2001 +0000
+++ b/sys/kern/uipc_mbuf2.c     Wed Jul 18 06:51:38 2001 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: uipc_mbuf2.c,v 1.6 2001/02/14 17:09:19 itojun Exp $    */
+/*     $NetBSD: uipc_mbuf2.c,v 1.7 2001/07/18 06:51:38 thorpej Exp $   */
 /*     $KAME: uipc_mbuf2.c,v 1.29 2001/02/14 13:42:10 itojun Exp $     */
 
 /*
@@ -182,7 +182,7 @@
            !sharedcluster) {
                n->m_next->m_data -= hlen;
                n->m_next->m_len += hlen;
-               bcopy(mtod(n, caddr_t) + off, mtod(n->m_next, caddr_t), hlen);
+               memcpy(mtod(n->m_next, caddr_t), mtod(n, caddr_t) + off, hlen);
                n->m_len -= hlen;
                n = n->m_next;
                off = 0;
@@ -207,7 +207,7 @@
        }
        /* get hlen from <n, off> into <o, 0> */
        o->m_len = hlen;
-       bcopy(mtod(n, caddr_t) + off, mtod(o, caddr_t), hlen);
+       memcpy(mtod(o, caddr_t), mtod(n, caddr_t) + off, hlen);
        n->m_len -= hlen;
        /* get tlen from <n->m_next, 0> into <o, hlen> */
        m_copydata(n->m_next, 0, tlen, mtod(o, caddr_t) + o->m_len);



Home | Main Index | Thread Index | Old Index