mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-19 23:19:24 +02:00
+ implemented SysUtils.FileSetDate for WASI
This commit is contained in:
parent
38075ac30c
commit
94d8c22c6a
@ -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;
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user