aboutsummaryrefslogtreecommitdiff
path: root/core/sys
diff options
context:
space:
mode:
authorLaytan Laats <laytanlaats@hotmail.com>2024-08-10 23:01:31 +0200
committerLaytan Laats <laytanlaats@hotmail.com>2024-08-10 23:01:31 +0200
commita2cd763dbbab113882dd2cfb771907203a1ea148 (patch)
tree2299f1664c741e61fdd62f8d0aef6e37f9285206 /core/sys
parent6918d8aaa6e13fb7529884a436aa20a87e6b6f10 (diff)
time: wasi implementation
Diffstat (limited to 'core/sys')
-rw-r--r--core/sys/wasm/wasi/wasi_api.odin8
1 files changed, 4 insertions, 4 deletions
diff --git a/core/sys/wasm/wasi/wasi_api.odin b/core/sys/wasm/wasi/wasi_api.odin
index 6ae6c9151..38d95e754 100644
--- a/core/sys/wasm/wasi/wasi_api.odin
+++ b/core/sys/wasm/wasi/wasi_api.odin
@@ -10,9 +10,9 @@ filesize_t :: distinct u64
timestamp_t :: distinct u64
clockid_t :: distinct u32
-CLOCK_MONOTONIC :: clockid_t(0)
-CLOCK_PROCESS_CPUTIME_ID :: clockid_t(1)
-CLOCK_REALTIME :: clockid_t(2)
+CLOCK_REALTIME :: clockid_t(0)
+CLOCK_MONOTONIC :: clockid_t(1)
+CLOCK_PROCESS_CPUTIME_ID :: clockid_t(2)
CLOCK_THREAD_CPUTIME_ID :: clockid_t(3)
errno_t :: enum u16 {
@@ -715,7 +715,7 @@ subscription_t :: struct {
* The type of the event to which to subscribe, and its contents
*/
using contents: struct {
- tag: u8,
+ tag: eventtype_t,
using u: struct #raw_union {
clock: subscription_clock_t,
fd_read: subscription_fd_readwrite_t,