aboutsummaryrefslogtreecommitdiff
path: root/lib/libc/wasi
AgeCommit message (Collapse)Author
2025-08-27Remove memcmp and memset from bundled musl and wasiYefeng Li
2025-08-20wasi-libc: update to c89896107d7b57aef69dcadede47409ee4f702eeAlex Rønne Petersen
2025-04-11wasi-libc: Remove pointless alltypes.h.in file.Alex Rønne Petersen
2025-02-21wasi-libc: Deduplicate sources and headers with regards to upstream musl.Alex Rønne Petersen
Unfortunately some duplicate files must remain in lib/libc/wasi/libc-top-half because they include internal headers *in the same directory* which have edits relative to upstream musl. Because C is an amazing language, there is no way to make it so that e.g. upstream musl's src/stdio/fputc.c includes wasi-libc's src/stdio/putc.h instead of the upstream putc.h. The preprocessor always searches the current directory first for quote includes. Anyway, this still takes us from 2.9M to 1.4M for the combination of lib/libc/wasi and lib/libc/include/wasm-wasi-musl, so I still call it a win.
2025-01-29Add libdl shims from wasi-libcFrank Denis
2025-01-29Re-add lazy preopen changesFrank Denis
2025-01-29Update wasi-libc to d03829489904d38c624f6de9983190f1e5e7c9c5Frank Denis
2025-01-17delete asm files from wasi libcAndrew Kelley
why the hell are there asm files in wasi libc to begin with?
2025-01-17remove memcpy and memmove from bundled libcsAndrew Kelley
These are provided instead by compiler_rt. Part of #2879
2023-05-23Update wasi-libc to 3189cd1ceec8771e8f27faab58ad05d4d6c369ef (#15817)Frank Denis
Also remove all the wasi-libc files we used to ship, but never compile. The latest wasi-libc HEAD has an extra commit (a6f871343313220b76009827ed0153586361c0d5), which makes preopen initialization lazy. Unfortunately, that breaks quite a lot of things on our end. Applications now need to explicitly call __wasilibc_populate_preopens() everywhere when the libc is linked. That can wait after 0.11.
2023-01-12wasi-libc: use __heap_end if available (#14273)Frank Denis
The symbol was introduced in LLD 15.0.7, as a way to know how much memory can be allocated: https://github.com/llvm/llvm-project/commit/1095870e8ceddc5371f446f4e7c3473f89a461cd https://github.com/WebAssembly/wasi-libc/pull/377
2023-01-10Update wasi-libc to a1c7c2c7a4b2813c6f67bd2ef6e0f430d31cebadFrank Denis
Some notable changes: - `ENOENT` is returned instead of `ENOTCAPABLE` when a path has not be pre-opened (https://github.com/WebAssembly/wasi-libc/pull/370) - `fd_readdir()`: some implementations may not set the inode number, so an additional call to `fstatat()` is now done in order to get it when that happens.
2022-12-06Update wasi-libc to 8b7148f69ae241a2749b3defe4606da8143b72e0 (#13793)Frank Denis
2022-11-28Update wasi-libc to a00bf321eeeca836ee2a0d2d25aeb8524107b8cc (#13626)Frank Denis
* Update wasi-libc to a00bf321eeeca836ee2a0d2d25aeb8524107b8cc It includes a port of emscripten's allocator that performs performs much better than the old one. Most importantly, it includes the prerequisites to later add support for POSIX threads.
2022-06-14Update the WASI libcFrank Denis
Update our copy of wasi-libc up to the commit 30094b6ed05f19cee102115215863d185f2db4f0 from the upstream repository.
2021-07-11wasi-libc: remove crt1.o as it's not WASI ABI compatibleTakeshi Yoneda
Signed-off-by: Takeshi Yoneda <takeshi@tetrate.io>
2021-05-20cc,wasi: remove unused headers and sourcesJakub Konka
2021-05-20cc,wasi: add source file paths to wasi_libc.zigJakub Konka
2021-05-20cc,wasi: add wasi-libc sourceJakub Konka