summaryrefslogtreecommitdiff
path: root/src/wasi.rs
Commit message (Collapse)AuthorAgeFilesLines
* Formattinggnzlbg2019-09-121-3/+3
|
* Auto merge of #1461 - newpavlov:patch-4, r=gnzlbgbors2019-09-071-679/+91
|\ | | | | | | | | | | | | | | | | | | | | | | 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
| * add __wasi_rights_tnewpavlov2019-08-211-0/+2
| |
| * remove types and constantsArtyom Pavlov2019-08-131-404/+91
| |
| * remove WASI Core APIArtyom Pavlov2019-08-091-277/+0
| |
* | Fix style error in wasi.rsLuke Petre2019-08-181-1/+0
| |
* | Adding UTIME_NOW and UTIME_OMIT to OSes which support utimensatLuke Petre2019-08-171-0/+3
|/
* wasi: add c_schar definitionTravis Finkenauer2019-06-251-0/+1
|
* Refactor fixed-width integer types into its own modulegnzlbg2019-05-291-8/+0
|
* Update to the latest wasi-sysroot.Dan Gohman2019-05-161-0/+18
| | | | | | - Rename `wasm32-unknown-wasi` to `wasm32-wasi`. - `__wasilibc_rmfileat` was renamed to `__wasilibc_unlinkat` - Add bindings for a few more functions and typedefs.
* Rename _wasi_rmfileat to _wasi_unlinkatgnzlbg2019-05-161-1/+1
|
* Remove utsname and uname for now too.Dan Gohman2019-04-241-10/+0
|
* Remove fd_set, select, and pselect entirely for now.Dan Gohman2019-04-241-20/+0
| | | | | 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.
* Remove the definition of ULONG_SIZE which is no longer needed.Dan Gohman2019-04-241-11/+0
|
* Use the WASI layout for fd_set.Dan Gohman2019-04-241-1/+2
|
* Remove FD_SET and related functions for now.Dan Gohman2019-04-231-5/+0
|
* Fix dirent to match WASI libc's definition.Dan Gohman2019-04-231-6/+14
| | | | | 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.
* Make FD_ISSET's argument a pointer to const, to match the libc declaration.Dan Gohman2019-04-231-1/+1
|
* Don't make opaque types like FILE and DIR copyable.Dan Gohman2019-04-231-19/+6
| | | | | Also, locale_t is a typedef for a pointer to an opaque struct, so represent it that way explicitly.
* Define WASI libc errno constants.Dan Gohman2019-04-231-0/+79
|
* Add more WASI libc bindings.Dan Gohman2019-04-231-0/+502
|
* Add binding for new `__wasilibc_find_relpath` APIAlex Crichton2019-04-081-4/+10
| | | | Added recently and will be used in libstd!
* Enable the wasi target on CIAlex Crichton2019-04-051-9/+12
| | | | Now that wasi is in nightlies, we can run it on PRs!
* Touch up style of wasi.rsAlex Crichton2019-03-271-144/+144
|
* Address some PR feedbackAlex Crichton2019-03-271-65/+51
|
* Add intiial support for wasm32-unknown-wasiAlex Crichton2019-03-271-0/+792
This target is [being proposed][LINK] int he rust-lang/rust repository and this is intended to get coupled with that proposal. The definitions here all match the upstream reference-sysroot definitions and the functions all match the reference sysroot as well. The linkage here is described more in detail on the Rust PR itself, but in general it's similar to musl. Automatic verification has been implemented in the same manner as other targets, and it's been used locally to develop this PR and catch errors in the bindings already written (also to help match the evolving sysroot of wasi). The verification isn't hooked up to CI yet though because there is no wasi target distributed via rustup just yet, but once that's done I'll file a follow-up PR to execute verification on CI. [LINK]: