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
This commit is contained in:
@@ -380,7 +380,7 @@ syscalls! {
|
||||
return return_encoded_errno(e);
|
||||
}
|
||||
|
||||
let e = host::wasmtime_ssp_fd_prestat_get(prestats, fd, &mut host_buf);
|
||||
let e = host_impls::wasmtime_ssp_fd_prestat_get(&mut *prestats, fd, &mut host_buf);
|
||||
|
||||
encode_prestat_byref(vmctx, buf, host_buf);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user