wasi-libc
wasi-libc copied to clipboard
WASI libc implementation for WebAssembly
Seems WASI is going to upgrade to preview2.
When attempting to build wasm-libc, I get the following error: ``` $ make [...] diff -wur /Users/jmg/wasm/wasi-libc/expected/wasm32-wasi/defined-symbols.txt /Users/jmg/wasm/wasi-libc/sysroot/share/wasm32-wasi/defined-symbols.txt --- /Users/jmg/wasm/wasi-libc/expected/wasm32-wasi/defined-symbols.txt 2022-12-20 11:19:59 +++ /Users/jmg/wasm/wasi-libc/sysroot/share/wasm32-wasi/defined-symbols.txt 2022-12-20 11:26:07 @@ -37,6 +37,7 @@...
- it would allow us to test both projects more easily - it would less coordination for creating a release (minor issue)
Avoid using sbrk(0) in emmalloc too.
Transferred from https://github.com/bytecodealliance/wasmtime/issues/6396 --- wasi-libc's behavior (and hence Wasmtime's behavior) for directory listings (via the WASI `fd_readdir` API?) is surprising and is inconsistent with Wasmer. If there is a preopen...
This is a work-in-progress PR and still require a few actions. I open the PR to get early feedback. Some of the changes are clone from the other attempt of...
This way, if an application doesn't otherwise use malloc, they don't need to link in malloc. Idea from https://github.com/CraneStation/wasi-libc/pull/118#discussion_r337596386! One thing I'm somewhat concerned by is the lack of error...
Build and install an LTO version of libc.a and the startup files, alongside the non-LTO versions. This also adds support for the proposed `__main_argc_argv` convention, supporting compilers both with and...
S_IFIFO currently has the same value as S_IFSOCK which breaks code that does things like "switch (mode & S_IFMT)" as we end up with duplicate labels. Move S_IFIFO to a...
Note: a return from main() is an equivalent of exit(), which should terminate sibling threads.