(ctx: &VmCtx, fd: HostFd)
| 330 | #[ensures(trace_safe(trace, ctx))] |
| 331 | #[ensures(effects!(old(trace), trace, effect!(FdAccess)))] |
| 332 | pub 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))] |
no test coverage detected