1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-20 11:11:24 +00:00
freebsd/lib/libc
Ed Maste 16150352f5 memmem(3): empty little string matches the beginning of the big string
This function originated in glibc, and this matches their behaviour
(and NetBSD, OpenBSD, and musl).

An empty big string (arg "l") is handled by the existing
l_len < s_len test.

Reviewed by:	bapt, ngie
Sponsored by:	The FreeBSD Foundation
Differential Revision:	https://reviews.freebsd.org/D2657
2015-05-26 21:16:07 +00:00
..
aarch64 Add fabs() to arm64 libc 2015-05-14 17:12:45 +00:00
amd64 The lseek(2), mmap(2), truncate(2), ftruncate(2), pread(2), and 2015-04-18 21:50:13 +00:00
arm Teach bits of libc about Thumb. This adds the if-then instructions needed 2015-05-12 10:03:14 +00:00
capability use .Mt to mark up email addresses consistently (part4) 2014-06-23 08:25:03 +00:00
compat-43 Reduce the size of the interposing table and amount of 2015-01-11 22:16:31 +00:00
db Drop some unnecessary casts. 2015-05-18 16:28:13 +00:00
gdtoa Replace use of ${.CURDIR} by ${LIBC_SRCTOP} and define ${LIBC_SRCTOP} 2014-03-04 02:19:39 +00:00
gen Remove clause 3 and 4 from the license 2015-05-21 08:38:25 +00:00
gmon Replace use of ${.CURDIR} by ${LIBC_SRCTOP} and define ${LIBC_SRCTOP} 2014-03-04 02:19:39 +00:00
i386 The lseek(2), mmap(2), truncate(2), ftruncate(2), pread(2), and 2015-04-18 21:50:13 +00:00
iconv Fix improbable memory leak in _citrus_prop_read_str(). 2015-04-20 22:09:50 +00:00
include Reassign copyright statements on several files from Advanced 2015-04-23 14:22:20 +00:00
inet Update our stub resolver to final version of libbind. 2014-08-12 12:36:06 +00:00
isc Update our stub resolver to final version of libbind. 2014-08-12 12:36:06 +00:00
locale __xlocale_C_ctype should not be const. It contains a reference count that is modified by newlocale / duplocale / freelocale. 2015-04-24 10:21:20 +00:00
md Bring the md5 functions into libc for internal use only. 2014-08-12 12:25:56 +00:00
mips The lseek(2), mmap(2), truncate(2), ftruncate(2), pread(2), and 2015-04-18 21:50:13 +00:00
nameser Add missing break. 2014-08-20 14:58:25 +00:00
net recv(),send(): Directly call interposing entry instead of going through PLT. 2015-05-10 14:50:50 +00:00
nls Use mdoc(7) macros to handle parenthesis 2015-04-26 10:54:52 +00:00
posix1e libc: plug memory leaks in edge cases for the posix1e code. 2015-03-13 18:42:43 +00:00
powerpc The lseek(2), mmap(2), truncate(2), ftruncate(2), pread(2), and 2015-04-18 21:50:13 +00:00
powerpc64 The lseek(2), mmap(2), truncate(2), ftruncate(2), pread(2), and 2015-04-18 21:50:13 +00:00
quad Remove MK_ARM_EABI, the armeb issues have been fixed. The code to support 2014-10-01 08:26:51 +00:00
regex mdoc: rendering fixes 2015-04-26 10:55:39 +00:00
resolv Update our stub resolver to final version of libbind. 2014-08-12 12:36:06 +00:00
rpc mdoc: fix functions declarations 2015-04-26 10:53:50 +00:00
softfloat Replace use of ${.CURDIR} by ${LIBC_SRCTOP} and define ${LIBC_SRCTOP} 2014-03-04 02:19:39 +00:00
sparc64 The lseek(2), mmap(2), truncate(2), ftruncate(2), pread(2), and 2015-04-18 21:50:13 +00:00
stdio Reassign copyright statements on several files from Advanced 2015-04-23 14:22:20 +00:00
stdlib Fix major copy/paste and other style errors. 2015-05-05 10:44:17 +00:00
stdtime 1) Fix the case we have less arguments for format string than we expected. 2014-10-07 06:34:05 +00:00
string memmem(3): empty little string matches the beginning of the big string 2015-05-26 21:16:07 +00:00
sys Various updates to the ftruncate(2) documentation: 2015-05-04 14:47:00 +00:00
tests Disable the tests that use makecontext on arm64, it still needs to be 2015-04-27 13:56:20 +00:00
uuid Replace use of ${.CURDIR} by ${LIBC_SRCTOP} and define ${LIBC_SRCTOP} 2014-03-04 02:19:39 +00:00
xdr Add the start of libc and libstand for arm64. Not all of the machine 2015-04-07 09:52:14 +00:00
yp Replace use of ${.CURDIR} by ${LIBC_SRCTOP} and define ${LIBC_SRCTOP} 2014-03-04 02:19:39 +00:00
libc.ldscript Attempt to move the POSIX iconv* symbols out of runtime linker space. 2013-11-17 22:52:17 +00:00
Makefile Build/install libc, librt, libthr, and msun NetBSD test suites on all 2015-04-27 06:49:27 +00:00
Versions.def Fix the inheritance of the FBSDprivate_1.0 namespace. 2014-04-03 17:31:38 +00:00