freebsd-dev/sys/libkern
David E. O'Brien ae72afe0f2 The kernel implemented 'memcmp' is an alias for 'bcmp'. However, memcmp
and bcmp are not the same thing.  'man bcmp' states that the return is
"non-zero" if the two byte strings are not identical.  Where as,
'man memcmp' states that the return is the "difference between the
first two differing bytes (treated as unsigned char values" if the
two byte strings are not identical.

So provide a proper memcmp(9), but it is a C implementation not a tuned
assembly implementation.  Therefore bcmp(9) should be preferred over memcmp(9).
2008-09-23 14:45:10 +00:00
..
arm Do not use __XSCALE__ to detect if clz is available, use _ARM_ARCH_5 instead. 2007-10-13 12:05:36 +00:00
ia64
arc4random.c Return arc4_i = arc4_j = 0; line from previous backing out since 2008-07-26 16:42:45 +00:00
ashldi3.c
ashrdi3.c
bcd.c
bcmp.c
bsearch.c
cmpdi2.c Bring back (without advertising clause) cmpdi2.c. It's needed on PowerPC 2008-02-23 20:10:49 +00:00
crc32.c
divdi3.c
ffs.c
ffsl.c
fls.c
flsl.c
fnmatch.c
gets.c
iconv_converter_if.m
iconv_xlat16.c
iconv_xlat.c
iconv.c
index.c strchr() and strrchr() are already present in the kernel, but with less 2007-04-10 21:42:12 +00:00
inet_ntoa.c
lshrdi3.c
mcount.c Unbreak high resolution profiling a little: use dummy asms to prevent 2007-06-13 06:17:48 +00:00
memcmp.c The kernel implemented 'memcmp' is an alias for 'bcmp'. However, memcmp 2008-09-23 14:45:10 +00:00
memset.c Match the implementation of the inline function from libkern.h. 2008-07-14 21:36:02 +00:00
moddi3.c
qdivrem.c
qsort_r.c
qsort.c
quad.h Add prototype for __cmpd2(). 2008-02-23 22:40:05 +00:00
random.c
rindex.c strchr() and strrchr() are already present in the kernel, but with less 2007-04-10 21:42:12 +00:00
scanc.c
skpc.c
strcasecmp.c
strcat.c
strcmp.c
strcpy.c
strcspn.c Add strcspn to libkern for use by xenbus routines. Will add to build 2008-08-15 04:07:22 +00:00
strdup.c
strlcat.c
strlcpy.c
strlen.c
strncmp.c
strncpy.c
strsep.c
strspn.c
strstr.c Add strstr() function to the libkern. 2006-08-12 15:28:39 +00:00
strtol.c
strtoq.c
strtoul.c
strtouq.c
strvalid.c
ucmpdi2.c
udivdi3.c
umoddi3.c