git: 7ec4365671e3 - main - libkern: remove bcopy

Mateusz Guzik mjg at FreeBSD.org
Tue Aug 24 11:24:15 UTC 2021


The branch main has been updated by mjg:

URL: https://cgit.FreeBSD.org/src/commit/?id=7ec4365671e395f99e32f954e2f83b735aca4ac7

commit 7ec4365671e395f99e32f954e2f83b735aca4ac7
Author:     Mateusz Guzik <mjg at FreeBSD.org>
AuthorDate: 2021-08-24 11:21:52 +0000
Commit:     Mateusz Guzik <mjg at FreeBSD.org>
CommitDate: 2021-08-24 11:24:07 +0000

    libkern: remove bcopy
    
    Unused since ba96f37758412151 ("Use __builtin for various mem* and b* (e.g. bzero)
    routines.")
    
    File name remains to reduce churn.
    
    Sponsored by:   Rubicon Communications, LLC ("Netgate")
---
 sys/libkern/bcopy.c | 8 --------
 1 file changed, 8 deletions(-)

diff --git a/sys/libkern/bcopy.c b/sys/libkern/bcopy.c
index 8e34ad0daa53..833a9854f181 100644
--- a/sys/libkern/bcopy.c
+++ b/sys/libkern/bcopy.c
@@ -52,7 +52,6 @@ __FBSDID("$FreeBSD$");
 
 #undef memcpy
 #undef memmove
-#undef bcopy
 
 /*
  * sizeof(word) MUST BE A POWER OF TWO
@@ -147,10 +146,3 @@ done:
 }
 
 __strong_reference(memcpy, memmove);
-
-void
-(bcopy)(const void *src0, void *dst0, size_t length)
-{
-
-	memcpy(dst0, src0, length);
-}


More information about the dev-commits-src-all mailing list