+ implemented SysUtils.FileSetDate for WASI

This commit is contained in:
Nikolay Nikolov 2021-10-11 15:51:13 +03:00
parent 38075ac30c
commit 94d8c22c6a

View File

@ -473,6 +473,11 @@ end;
Function FileSetDate (Handle : THandle; Age : Int64) : Longint;
begin
if __wasi_fd_filestat_set_times(Handle,Age*1000000000,Age*1000000000,
__WASI_FSTFLAGS_MTIM or __WASI_FSTFLAGS_ATIM)=__WASI_ERRNO_SUCCESS then
result:=0
else
result:=-1;
end;