opnsense-src/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 /* -> /*- for copyright notices, minor format tweaks as necessary 2005-01-07 00:24:33 +00:00
arc4random.c Return arc4_i = arc4_j = 0; line from previous backing out since 2008-07-26 16:42:45 +00:00
ashldi3.c Remove advertising clause from University of California Regent's 2004-04-07 20:46:16 +00:00
ashrdi3.c Remove advertising clause from University of California Regent's 2004-04-07 20:46:16 +00:00
bcd.c /* -> /*- for copyright notices, minor format tweaks as necessary 2005-01-07 00:24:33 +00:00
bcmp.c /* -> /*- for copyright notices, minor format tweaks as necessary 2005-01-07 00:24:33 +00:00
bsearch.c /* -> /*- for copyright notices, minor format tweaks as necessary 2005-01-07 00:24:33 +00:00
cmpdi2.c Bring back (without advertising clause) cmpdi2.c. It's needed on PowerPC 2008-02-23 20:10:49 +00:00
crc32.c Update comment to direct the reader to libkern.h instead of systm.h. 2005-04-28 05:50:18 +00:00
divdi3.c Remove advertising clause from University of California Regent's 2004-04-07 20:46:16 +00:00
ffs.c Remove advertising clause from University of California Regent's 2004-04-07 20:46:16 +00:00
ffsl.c Remove advertising clause from University of California Regent's 2004-04-07 20:46:16 +00:00
fls.c Remove advertising clause from University of California Regent's 2004-04-07 20:46:16 +00:00
flsl.c Remove advertising clause from University of California Regent's 2004-04-07 20:46:16 +00:00
fnmatch.c Convert function declarations to ANSI C. 2006-01-22 00:46:40 +00:00
gets.c Ignore spurious '\0' first character read on a serial console. 2006-01-14 20:45:02 +00:00
iconv.c Normalize a significant number of kernel malloc type names: 2005-10-31 15:41:29 +00:00
iconv_converter_if.m /* -> /*- for copyright notices, minor format tweaks as necessary 2005-01-07 00:24:33 +00:00
iconv_xlat.c
iconv_xlat16.c Fix kiconv on the 64bit plathomes. 2005-05-24 15:38:08 +00:00
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 /* -> /*- for copyright notices, minor format tweaks as necessary 2005-01-07 00:24:33 +00:00
lshrdi3.c Remove advertising clause from University of California Regent's 2004-04-07 20:46:16 +00:00
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 Remove advertising clause from University of California Regent's 2004-04-07 20:46:16 +00:00
qdivrem.c Remove advertising clause from University of California Regent's 2004-04-07 20:46:16 +00:00
qsort.c Copy qsort_r(3) from libc to libkern. 2004-07-15 23:58:23 +00:00
qsort_r.c /* -> /*- for copyright notices, minor format tweaks as necessary 2005-01-07 00:24:33 +00:00
quad.h Add prototype for __cmpd2(). 2008-02-23 22:40:05 +00:00
random.c Remove advertising clause from University of California Regent's 2004-04-07 20:46:16 +00:00
rindex.c strchr() and strrchr() are already present in the kernel, but with less 2007-04-10 21:42:12 +00:00
scanc.c Remove advertising clause from University of California Regent's 2004-04-07 20:46:16 +00:00
skpc.c Remove advertising clause from University of California Regent's 2004-04-07 20:46:16 +00:00
strcasecmp.c Ha! This is a very interesting bug. 2005-08-08 19:38:00 +00:00
strcat.c /* -> /*- for copyright notices, minor format tweaks as necessary 2005-01-07 00:24:33 +00:00
strcmp.c Remove advertising clause from University of California Regent's 2004-04-07 20:46:16 +00:00
strcpy.c /* -> /*- for copyright notices, minor format tweaks as necessary 2005-01-07 00:24:33 +00:00
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 MFlibc: Remove extra closing parenthesis. 2005-02-03 15:51:39 +00:00
strlcpy.c MFlibc: Remove extra closing parenthesis. 2005-02-03 15:51:39 +00:00
strlen.c Remove advertising clause from University of California Regent's 2004-04-07 20:46:16 +00:00
strncmp.c /* -> /*- for copyright notices, minor format tweaks as necessary 2005-01-07 00:24:33 +00:00
strncpy.c Remove advertising clause from University of California Regent's 2004-04-07 20:46:16 +00:00
strsep.c Remove advertising clause from University of California Regent's 2004-04-07 20:46:16 +00:00
strspn.c Replace the current strspn() and strcspn() with significantly faster 2005-04-02 18:52:44 +00:00
strstr.c Add strstr() function to the libkern. 2006-08-12 15:28:39 +00:00
strtol.c Remove advertising clause from University of California Regent's 2004-04-07 20:46:16 +00:00
strtoq.c Remove advertising clause from University of California Regent's 2004-04-07 20:46:16 +00:00
strtoul.c Remove advertising clause from University of California Regent's 2004-04-07 20:46:16 +00:00
strtouq.c Remove advertising clause from University of California Regent's 2004-04-07 20:46:16 +00:00
strvalid.c Because the argument to strvalid() is a size_t, use a size_t to iterate 2005-01-29 13:34:22 +00:00
ucmpdi2.c Remove advertising clause from University of California Regent's 2004-04-07 20:46:16 +00:00
udivdi3.c Remove advertising clause from University of California Regent's 2004-04-07 20:46:16 +00:00
umoddi3.c Remove advertising clause from University of California Regent's 2004-04-07 20:46:16 +00:00