ISARef Multi-ISA & Silicon Reference
45,419 ISA items · 105,907 timings · 913 microarchs · 15,555 chips · 105 sources
Arch:
Tier:

wasi:path_filestat_set_times

T1 wasm syscall syscall
WASI Preview 1 Syscall: path_filestat_set_times
SourceWASI Snapshot Preview 1 System Call Interface (WebAssembly/WASI) (wasi_syscalls)
Reliability TierT1 — Official Specification
ISA / Silicon ScopeWASI Preview 1 (wasip1)
WebAssembly WASI Preview 1 (Wasmtime, WasmEdge, Wasmer, WAMR, Node.js)
License & VersionW3C Community CLA
wasi_snapshot_preview1
Upstreamhttps://github.com/WebAssembly/WASI/blob/wasi-0.1/preview1/witx/wasi_snapshot_preview1.witx
Privilegeguest->host
ExtensionsWASI, wasip1, wasi_snapshot_preview1

Summary

WASI wasi_snapshot_preview1 host syscall path_filestat_set_times. Adjust the timestamps of a file or directory. Note: This is similar to utimensat in POSIX.

Syntax / Encoding

wasi_snapshot_preview1::path_filestat_set_times(fd: $fd, flags: $lookupflags, path: string, atim: $timestamp, mtim: $timestamp, fst_flags: $fstflags) -> (expected (error $errno))

Operands

NameDescription
fdWASI parameter `fd` of type `$fd`
flagsFlags determining the method of how the path is resolved.
pathThe path of the file or directory to operate on.
atimThe desired values of the data access timestamp.
mtimThe desired values of the data modification timestamp.
fst_flagsA bitmask indicating which timestamps to adjust.
errorWASI result `error`: `(expected (error $errno))`