| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
This was also missing from wasi's .rs
|
| |
|
| |
|
| |
|
| |
|
|\
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Update to the latest released wasi-libc and declare `getcwd`/`chdir`
Update to the latest version of wasi-libc which corresponds to the
version in the wasi-sdk 14.0 release.
And, add declarations for `getcwd` and `chdir`, which are now provided
by wasi-libc.
|
| |
| |
| |
| |
| |
| |
| |
| | |
Update to the latest version of wasi-libc which corresponds to the
version in the wasi-sdk 14.0 release.
And, add declarations for `getcwd` and `chdir`, which are now provided
by wasi-libc.
|
| | |
|
|/
|
|
| |
WASI has a normal max_align_t.
|
| |
|
|\
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Use link modifiers -bundle on musl and wasi target
Implement https://github.com/rust-lang/rust/issues/72274
Fix:
- https://github.com/rust-lang/wg-cargo-std-aware/issues/66
- https://github.com/rust-lang/rust/issues/89626
TODO:
- [x] Implement rustbuild side change: https://github.com/rust-lang/rust/pull/90527
|
| | |
|
| | |
|
|/ |
|
|
|
|
|
|
|
| |
All platforms that have `strtod` very likely also have `strtof`. Having
`strtof` allows for fuzzing of `hexf-parse::parse_hexf32` comparing
against `strtof`, which can't (easily) be done with `strtod`, due to
float rounding and over-/underflow behavior.
|
|
|
|
|
|
| |
WASI doesn't have full permissions setting, but it's gaining some
support, so define the POSIX names that wasi-libc defines, and let
WASI libc and WASI sort out what to do with them.
|
|
|
|
|
|
|
|
| |
`O_CLOEXEC` is defined to be 0 in WASI libc:
https://github.com/WebAssembly/wasi-libc/blob/659ff414560721b1660a19685110e484a081c3d4/libc-bottom-half/headers/public/__header_fcntl.h#L24
so define it accordingly in Rust's `libc` bindings.
|
| |
|
|
|
|
|
|
| |
Update to the latest WASI libc, define `AT_FDCWD`, update the signature
for __wasilibc_find_relpath, and add declarations for various
`__wasilibc_` utility functions.
|
| |
|
| |
|
|
|
|
|
| |
Define `O_NOCTTY`, `R_OK`, `POLLIN`, and related constants using the
current values from WASI libc.
|
|
|
|
|
|
|
|
|
| |
This adds various WASI libc definitions to the Rust libc bindings that I
needed while porting some applications to WASI.
It also removes the `pause` binding since newer versions of WASI libc
have removed this function as well. (WASI currently has no syscall with
this functionality.)
|
|
|
|
| |
These declarations are the same as those for other platforms.
|
|
|
|
|
|
|
|
|
|
|
|
| |
This commit performs a number of updates for libc with the `wasm32-wasi`
target:
* Updates the `wasi-libc` repository commit used (previously known as
`wasi-sysroot`)
* Updates the container to Ubuntu 19.10 which has Clang 9 packaged which
is all we need.
* Avoids building `wasmtime` and instead downloads a precompiled binary.
* Updates bindings in `src/wasi.rs` to match the current upstream state.
|
| |
|
|\
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Remove WASI Core API
Closes #1434
This change does not break the backwards compatibility promise since WASI Core API is unstable right now. If applications or libraries want to use Core API directly they should use [`wasi`](https://crates.io/crates/wasi) instead of `libc`.
Blocked by: rust-lang/rust#63676
cc @sunfishcode
|
| | |
|
| | |
|
| | |
|
| | |
|
|/ |
|
| |
|
| |
|
|
|
|
|
|
| |
- Rename `wasm32-unknown-wasi` to `wasm32-wasi`.
- `__wasilibc_rmfileat` was renamed to `__wasilibc_unlinkat`
- Add bindings for a few more functions and typedefs.
|
| |
|
| |
|
|
|
|
|
| |
fd_set isn't automatically copyable. While it will be possible to fix
that, for now just remove these so that they don't block other changes.
|
| |
|
| |
|
| |
|
|
|
|
|
| |
dirent contains a flexible array member, so don't test its sizeof, don't
allow it to be copied, and don't represent it with an artificial size.
|
| |
|
|
|
|
|
| |
Also, locale_t is a typedef for a pointer to an opaque struct, so
represent it that way explicitly.
|
| |
|
| |
|
|
|
|
| |
Added recently and will be used in libstd!
|
|
|
|
| |
Now that wasi is in nightlies, we can run it on PRs!
|
| |
|
| |
|