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