Jakub Konka
3e94af81df
Add Rust impl of wasmtime_ssp_fd_prestat_dir_name
2019-05-07 13:20:55 -07:00
Jakub Konka
d6b2faeeb4
Modify fd_prestat to hold C-str together with its length
2019-05-01 15:32:28 -07:00
Jakub Konka
f7245f40a1
Port host::__wasi_preopentype_t to Rust
2019-05-01 15:32:28 -07:00
Jakub Konka
5c555406ca
Add Rust impl of wasmtime_ssp_fd_prestat_get
...
In more detail, this commit:
* makes fd_prestat_get safe
* rewrites fd_prestats_get_entry in (safe) Rust
* creates helper macros for rwlock read lock and unlock
2019-05-01 15:32:28 -07:00
Dan Gohman
b0eab7398d
Don't decode the incoming events to poll_oneoff. ( #113 )
...
The events array is an output-only array, so we don't need to decode its
contents.
2019-04-30 06:42:48 -07:00
Dan Gohman
e62607e552
When path_open fails, set the output fd to -1.
2019-04-29 23:34:13 -07:00
Jakub Konka
86b7a52009
Port host::__wasi_errno_t errors to Rust
...
They are now blacklisted in the bindgen.
2019-04-29 23:33:40 -07:00
Jakub Konka
a51ffb6b6d
Add Rust impl of wasmtime_ssp_sched_yield
...
Also, add Rust implementation of errno and convert_errno.
2019-04-29 23:33:40 -07:00
Jakub Konka
69e44caa29
Add Rust impl of wasmtime_ssp_proc_exit
2019-04-27 09:06:41 -07:00
Dan Gohman
f10cd2f4b1
Don't allow a preopened file descriptor to be renamed over.
...
This is consistent with fd_close's behavior, and is likely temporary
until other options are designed.
2019-04-26 13:06:42 -07:00
Dan Gohman
7813cc9d2d
Fix a trace logging message.
2019-04-23 12:08:06 -07:00
Dan Gohman
cc5efeb54d
WASI: Simplify byref translation.
...
Avoid needlessly copying data from wasm into the host for output
parameters, and factor out the `.unwrap()` for translating pointers
when writing to output parameters.
2019-04-01 15:55:40 -07:00
Dan Gohman
5b77f95284
WASI: Implement translation for events and subscriptions.
2019-04-01 15:55:40 -07:00
Dan Gohman
7151c110d7
Implement decode/encode for __wasi_filestat_t.
2019-04-01 13:35:43 -07:00
Dan Gohman
b2fefe7714
WASI prototype design, implementation, and documentation.
...
This adds documents describing the WASI Core API, and an implementation in
Wasmtime.
2019-03-27 10:58:43 -07:00