You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Possible values:
__WASI_FILESTAT_SET_ATIM
Adjust the last data access timestamp to the value stored in __wasi_filestat_t::st_atim.
__WASI_FILESTAT_SET_ATIM_NOW
Adjust the last data access timestamp to the time of clock __WASI_CLOCK_REALTIME.
__WASI_FILESTAT_SET_MTIM
Adjust the last data modification timestamp to the value stored in __wasi_filestat_t::st_mtim.
__WASI_FILESTAT_SET_MTIM_NOW
Adjust the last data modification timestamp to the time of clock __WASI_CLOCK_REALTIME.
It is unclear what the behavior is, when the both flags __WASI_FILESTAT_SET_MTIM and __WASI_FILESTAT_SET_MTIM_NOW are set. Should whichever of them take precedence or should one return EINVAL? This should be clarified in the API docs.
As originally reported in bytecodealliance/wasmtime#270:
It is unclear what the behavior is, when the both flags
__WASI_FILESTAT_SET_MTIM
and__WASI_FILESTAT_SET_MTIM_NOW
are set. Should whichever of them take precedence or should one returnEINVAL
? This should be clarified in the API docs.I suggest we return
EINVAL
, which is the behavior implemented in CraneStation/wasi-common#54The text was updated successfully, but these errors were encountered: