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

Function trace_datasync

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

Source from the content-addressed store, hash-verified

286#[ensures(trace_safe(trace, ctx))]
287#[ensures(effects!(old(trace), trace, effect!(FdAccess)))]
288pub fn trace_datasync(ctx: &VmCtx, fd: HostFd) -> RuntimeResult<usize> {
289 let os_fd: usize = fd.to_raw();
290 let r = os_fdatasync(os_fd);
291 RuntimeError::from_syscall_ret(r)
292}
293
294#[with_ghost_var(trace: &mut Trace)]
295#[requires(ctx_safe(ctx))]

Callers 1

wasi_fd_datasyncFunction · 0.85

Calls 1

to_rawMethod · 0.80

Tested by

no test coverage detected