New strstr() implementation from musl libc by Rich Felker. This
authormillert <millert@openbsd.org>
Wed, 12 Apr 2017 16:06:12 +0000 (16:06 +0000)
committermillert <millert@openbsd.org>
Wed, 12 Apr 2017 16:06:12 +0000 (16:06 +0000)
commit5aeb15317cb3698ff8c2d30e4a0b925027b4938e
treef900d100bdf3fc3784cf8f525ca808592a0ad256
parent46e7f36feb8ac85925dcb01367a405d44c2fe952
New strstr() implementation from musl libc by Rich Felker.  This
version uses the two-way string matching algorithm and is faster
than the old implementation.  With this change, ports that check
for strstr having linear complexity time strstr will no longer
replace the libc strstr with a private version.
OK deraadt@ espie@
lib/libc/string/strstr.c