forked from bytecodealliance/wasmtime
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implement WASI "preview0" in
wasmtime-wasi
This commit implements the `wasi_unstable` module, sometimes referred to as "preview0", in the `wasmtime-wasi` crate. Previously this was only implemented by the `wasi-common` crate but now this is implemented for both meaning that the switch to preview2 won't lose this functionality. The preview0 WITX files are vendored like the preview1 files and the implementation of preview0 is exclusively implemented by delegating to the preview1 implementation.
- Loading branch information
1 parent
bba4ee7
commit af3dbce
Showing
12 changed files
with
2,208 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
--- witx/preview0/typenames.witx 2023-11-15 13:25:21 | ||
+++ witx/preview1/typenames.witx 2023-10-19 15:44:01 | ||
@@ -270,6 +270,8 @@ | ||
$poll_fd_readwrite | ||
;;; The right to invoke `sock_shutdown`. | ||
$sock_shutdown | ||
+ ;;; The right to invoke `sock_accept`. | ||
+ $sock_accept | ||
) | ||
) | ||
|
||
@@ -545,8 +549,6 @@ | ||
;;; The contents of a `subscription` when type is `eventtype::clock`. | ||
(typename $subscription_clock | ||
(record | ||
- ;;; The user-defined unique identifier of the clock. | ||
- (field $identifier $userdata) | ||
;;; The clock against which to compare the timestamp. | ||
(field $id $clockid) | ||
;;; The absolute or relative timestamp. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.