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

Function trace_fgetfl

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

Source from the content-addressed store, hash-verified

330#[ensures(trace_safe(trace, ctx))]
331#[ensures(effects!(old(trace), trace, effect!(FdAccess)))]
332pub fn trace_fgetfl(ctx: &VmCtx, fd: HostFd) -> RuntimeResult<usize> {
333 let os_fd: usize = fd.to_raw();
334 let r = os_fcntl(os_fd, libc::F_GETFL, 0);
335 RuntimeError::from_syscall_ret(r)
336}
337
338#[with_ghost_var(trace: &mut Trace)]
339#[requires(ctx_safe(ctx))]

Callers 1

wasi_fd_fdstat_getFunction · 0.85

Calls 1

to_rawMethod · 0.80

Tested by

no test coverage detected