HomeFreeBSD

libc: Use musl's optimized strchr and strchrnul

Description

libc: Use musl's optimized strchr and strchrnul

Parentheses added to HASZERO macro to avoid a GCC warning, and formatted
with clang-format as we have adopted these and don't consider them
'contrib' code.

Obtained from: musl (snapshot at commit 4d0a82170a25)
Reviewed by: kib (libc integration), mjg (both earlier)
MFC after: 1 month
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D17630

Details

Provenance
emasteAuthored on Mar 2 2021, 1:57 AM
Reviewer
kib
Differential Revision
D17630: libc: Use musl's optimized strchr, strchrnul, strcspn
Parents
rG8742817ba62e: FFS extattr: fix handling of the tail
Branches
Unknown
Tags
Unknown