diff --git a/lib/libc/amd64/string/Makefile.inc b/lib/libc/amd64/string/Makefile.inc index cb370bc6be1c..b77079afc933 100644 --- a/lib/libc/amd64/string/Makefile.inc +++ b/lib/libc/amd64/string/Makefile.inc @@ -1,12 +1,11 @@ # $FreeBSD$ MDSRCS+= \ - bcmp.S \ memcmp.S \ memcpy.S \ memmove.S \ memset.S \ strcat.S \ strcmp.S \ strlen.S \ stpcpy.S diff --git a/lib/libc/amd64/string/bcmp.c b/lib/libc/amd64/string/bcmp.c new file mode 100644 index 000000000000..b45176dc2d56 --- /dev/null +++ b/lib/libc/amd64/string/bcmp.c @@ -0,0 +1,16 @@ +/*- + * Written by Mateusz Guzik + * Public domain. + */ + +#include +__FBSDID("$FreeBSD$"); + +#include + +int +bcmp(const void *b1, const void *b2, size_t len) +{ + + return (memcmp(b1, b2, len)); +}