aboutsummaryrefslogtreecommitdiff
path: root/lib/libc/musl/src/string
AgeCommit message (Collapse)Author
2025-08-27Remove memcmp and memset from bundled musl and wasiYefeng Li
2025-05-15Introduce common `strcasecmp` and `strncasecmp` implementations (#23840)Bryson Miller
2025-05-10Introduce common `bzero` libc implementation. (#23812)David
* Introduce common `bzero` libc implementation. * Update test name according to review Co-authored-by: Linus Groh <mail@linusgroh.de> * address code review - import common implementation when musl or wasi is included - don't use `c_builtins`, use `@memset` * bzero calling conv to .c * Apply review Co-authored-by: Veikka Tuominen <git@vexu.eu> --------- Co-authored-by: Linus Groh <mail@linusgroh.de> Co-authored-by: Veikka Tuominen <git@vexu.eu>
2025-04-11Introduce libzigc for libc function implementations in Zig.Alex Rønne Petersen
This lays the groundwork for #2879. This library will be built and linked when a static libc is going to be linked into the compilation. Currently, that means musl, wasi-libc, and MinGW-w64. As a demonstration, this commit removes the musl C code for a few string functions and implements them in libzigc. This means that those libzigc functions are now load-bearing for musl and wasi-libc. Note that if a function has an implementation in compiler-rt already, libzigc should not implement it. Instead, as we recently did for memcpy/memmove, we should delete the libc copy and rely on the compiler-rt implementation. I repurposed the existing "universal libc" code to do this. That code hadn't seen development beyond basic string functions in years, and was only usable-ish on freestanding. I think that if we want to seriously pursue the idea of Zig providing a freestanding libc, we should do so only after defining clear goals (and non-goals) for it. See also #22240 for a similar case.
2025-01-17remove memcpy and memmove from bundled libcsAndrew Kelley
These are provided instead by compiler_rt. Part of #2879
2023-06-20musl: update src files to v1.2.4Andrew Kelley
2021-02-10musl: update to 1.2.2Isaac Freund
2020-11-06update musl sources to 1.2.1Andrew Kelley
2020-03-12update musl src files to v1.2.0Andrew Kelley
2019-07-15move lib dirs to lib subdirAndrew Kelley
also start prefering NtDll API. so far: * NtQueryInformationFile * NtClose adds a performance workaround for windows unicode conversion. but that should probably be removed before merging