mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-09-03 02:50:42 +02:00
+ implemented SysUtils.FileClose for WASI
This commit is contained in:
parent
27df4e98d2
commit
aa4070ca8a
@ -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;
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user