mirror of
https://github.com/opnsense/src.git
synced 2026-06-08 16:22:46 -04:00
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:
parent
cf8880d52b
commit
5fc3cc2713
2 changed files with 16 additions and 1 deletions
|
|
@ -1,7 +1,6 @@
|
||||||
# $FreeBSD$
|
# $FreeBSD$
|
||||||
|
|
||||||
MDSRCS+= \
|
MDSRCS+= \
|
||||||
bcmp.S \
|
|
||||||
memcmp.S \
|
memcmp.S \
|
||||||
memcpy.S \
|
memcpy.S \
|
||||||
memmove.S \
|
memmove.S \
|
||||||
|
|
|
||||||
16
lib/libc/amd64/string/bcmp.c
Normal file
16
lib/libc/amd64/string/bcmp.c
Normal 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));
|
||||||
|
}
|
||||||
Loading…
Reference in a new issue