wasmer_wasix/syscalls/journal/actions/
path_set_times.rs

1use super::*;
2
3impl<'a> JournalSyscallPlayer<'a, '_> {
4    #[allow(clippy::result_large_err)]
5    pub(crate) unsafe fn action_path_set_times(
6        &mut self,
7        fd: Fd,
8        flags: LookupFlags,
9        path: Cow<'a, str>,
10        st_atim: Timestamp,
11        st_mtim: Timestamp,
12        fst_flags: Fstflags,
13    ) -> Result<(), WasiRuntimeError> {
14        tracing::trace!(%fd, "Replay journal - PathSetTimes");
15        JournalEffector::apply_path_set_times(
16            &mut self.ctx,
17            fd,
18            flags,
19            &path,
20            st_atim,
21            st_mtim,
22            fst_flags,
23        )
24        .map_err(anyhow_err_to_runtime_err)?;
25        Ok(())
26    }
27}