amd64: make bcmp in libc just call memcmp

Preferably bcmp would just alias memcmp but there is build magic which
makes this problematic.

Reviewed by:	jhb
Differential Revision:		https://reviews.freebsd.org/D28846
This commit is contained in:
Mateusz Guzik 2022-03-12 12:27:25 +00:00
parent cf8880d52b
commit 5fc3cc2713
2 changed files with 16 additions and 1 deletions

View File

@ -1,7 +1,6 @@
# $FreeBSD$
MDSRCS+= \
bcmp.S \
memcmp.S \
memcpy.S \
memmove.S \

View File

@ -0,0 +1,16 @@
/*-
* Written by Mateusz Guzik <mjg@freebsd.org>
* Public domain.
*/
#include <sys/cdefs.h>
__FBSDID("$FreeBSD$");
#include <string.h>
int
bcmp(const void *b1, const void *b2, size_t len)
{
return (memcmp(b1, b2, len));
}