Refactor clock functions to use WASI types (#2666)
Refactoring the clock functions to use WASI types so we can simplify the code and remove some unnecessary boilerplate. See https://github.com/bytecodealliance/wasm-micro-runtime/pull/2637#discussion_r1362202879 for details.
This commit is contained in:
@ -41,17 +41,6 @@ wasmtime_ssp_args_sizes_get(struct argv_environ_values *arg_environ,
|
||||
size_t *argc, size_t *argv_buf_size)
|
||||
WASMTIME_SSP_SYSCALL_NAME(args_sizes_get) WARN_UNUSED;
|
||||
|
||||
__wasi_errno_t
|
||||
wasmtime_ssp_clock_res_get(__wasi_clockid_t clock_id,
|
||||
__wasi_timestamp_t *resolution)
|
||||
WASMTIME_SSP_SYSCALL_NAME(clock_res_get) WARN_UNUSED;
|
||||
|
||||
__wasi_errno_t
|
||||
wasmtime_ssp_clock_time_get(__wasi_clockid_t clock_id,
|
||||
__wasi_timestamp_t precision,
|
||||
__wasi_timestamp_t *time)
|
||||
WASMTIME_SSP_SYSCALL_NAME(clock_time_get) WARN_UNUSED;
|
||||
|
||||
__wasi_errno_t
|
||||
wasmtime_ssp_environ_get(struct argv_environ_values *arg_environ,
|
||||
char **environs, char *environ_buf)
|
||||
|
||||
Reference in New Issue
Block a user