wasi-libc
wasi-libc copied to clipboard
WASI libc implementation for WebAssembly
With https://github.com/WebAssembly/wasi-libc/pull/162 and WASI `poll_oneoff` eliminating support for uninterruptable sleep, it may be useful to have WASI libc offer a `pause` function as an emulation feature, by having it execute...
I tried to compile the following code using wasi-sdk ``` clang hostname.c --target=wasm32-wasi --sysroot=/opt/wasi-sdk/wasi-sysroot ``` ``` #include #include #include int main(void) { char hostname[1024]; gethostname(hostname, 1024); puts(hostname); return EXIT_SUCCESS; }...
Few comments I wanted to make in regard to a potential design: * Each syscall should ideally have its own entry point. Contrast this with one big syscall entry point...
Hi, I'm working on packaging this in FreeBSD Ports. Ports has separate build stages, so I need to make `finish` and `install` separately. But because most targets are `.PHONY`, making...
It would good to have a explicit style guide for contributors of this repo (and maybe others in Cranelift). Because there are some divergences between different files (like comment style...
It'd be nice to provide alternative malloc implementations, with different code size vs performance tradeoffs. See the comment [here](https://github.com/CraneStation/wasi-libc/pull/89#issuecomment-513409067) about mimalloc.
The [WASI libc stat implementation](https://github.com/CraneStation/wasi-libc/blob/master/libc-bottom-half/cloudlibc/src/libc/sys/stat/stat_impl.h#L24) doesn't currently assign the following fields in struct stat: `st_uid`, `st_gid`, `st_rdev`, `st_blocks`, `st_blksize`. The current WASI API doesn't currently provide the information needed to...
I have Windows 10. I installed GNU make for Windows and tried to run the `make WASM_CC="C:/Program Files (x86)/LLVM/bin/clang" command but got this error from `make`: ``` File not found...
Currently, you can use `recv` and `send` to read from and write to WASIp2 sockets, respectively, but neither `read` nor `write` work. We should support those functions as well, using...
wasi-libc does not include fts(3) implementation now, and it prevents us from reusing other platforms' code while porting [swift-foundation](https://github.com/apple/swift-foundation) to WASI. Can we ship https://github.com/void-linux/musl-fts licensed under BSD 3-Clause as...