MCPcopy Create free account
hub / github.com/PLSysSec/wave / wasi_fd_sync

Function wasi_fd_sync

src/wrappers.rs:213–217  ·  view source on GitHub ↗
(ctx: &VmCtx, v_fd: u32)

Source from the content-addressed store, hash-verified

211#[ensures(ctx_safe(ctx))]
212#[ensures(trace_safe(trace, ctx))]
213pub fn wasi_fd_sync(ctx: &VmCtx, v_fd: u32) -> RuntimeResult<()> {
214 let fd = ctx.fdmap.fd_to_native(v_fd)?;
215 let ret = trace_sync(ctx, fd)?;
216 Ok(())
217}
218
219// https://github.com/WebAssembly/WASI/blob/main/phases/snapshot/docs.md#fd_datasync
220// modifies: None

Callers 1

Calls 2

trace_syncFunction · 0.85
fd_to_nativeMethod · 0.80

Tested by

no test coverage detected