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

Function trace_sync

src/os/mod.rs:276–280  ·  view source on GitHub ↗
(ctx: &VmCtx, fd: HostFd)

Source from the content-addressed store, hash-verified

274#[ensures(trace_safe(trace, ctx))]
275#[ensures(effects!(old(trace), trace, effect!(FdAccess)))]
276pub fn trace_sync(ctx: &VmCtx, fd: HostFd) -> RuntimeResult<usize> {
277 let os_fd: usize = fd.to_raw();
278 let r = os_sync(os_fd);
279 RuntimeError::from_syscall_ret(r)
280}
281
282#[with_ghost_var(trace: &mut Trace)]
283#[requires(ctx_safe(ctx))]

Callers 1

wasi_fd_syncFunction · 0.85

Calls 1

to_rawMethod · 0.80

Tested by

no test coverage detected