+ implemented SysUtils.FileClose for WASI

This commit is contained in:
Nikolay Nikolov 2021-10-11 09:52:09 +03:00
parent 27df4e98d2
commit aa4070ca8a

View File

@ -112,7 +112,12 @@ end;
Procedure FileClose (Handle : THandle);
var
res: __wasi_errno_t;
begin
repeat
res:=__wasi_fd_close(Handle);
until (res=__WASI_ERRNO_SUCCESS) or (res<>__WASI_ERRNO_INTR);
end;