]> git.ipfire.org Git - thirdparty/linux.git/commit
tools/nolibc: add missing memchr() to string.h
authorWilly Tarreau <w@1wt.eu>
Sun, 2 Nov 2025 10:46:10 +0000 (11:46 +0100)
committerThomas Weißschuh <linux@weissschuh.net>
Sun, 2 Nov 2025 11:11:48 +0000 (12:11 +0100)
commitdb75042e93cfb0bb1ecd55771cc873917074f565
tree0cd836d20dccdfaf4bf862b78d2527e1f9998a6d
parent09c873c91fc10eeff5f7aecb408e1ac06ffbf83b
tools/nolibc: add missing memchr() to string.h

Surprisingly we forgot to add this common one. It was added with a
per-arch guard allowing to later implement it in arch-specific asm
code like was done for a few other ones.

The test verifies that we don't search past the indicated length.

Signed-off-by: Willy Tarreau <w@1wt.eu>
Signed-off-by: Thomas Weißschuh <linux@weissschuh.net>
tools/include/nolibc/string.h
tools/testing/selftests/nolibc/nolibc-test.c