mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-20 17:49:27 +02:00
- removed the zero constants from the implementation of SysUtils.FileOpen for WASI
This commit is contained in:
parent
0bbc5a7528
commit
305393a9c1
@ -74,9 +74,7 @@ end;
|
||||
Function FileOpen (Const FileName : RawByteString; Mode : Integer) : THandle;
|
||||
Var
|
||||
SystemFileName: RawByteString;
|
||||
oflags : __wasi_oflags_t = 0;
|
||||
fs_rights_base: __wasi_rights_t = 0;
|
||||
fdflags: __wasi_fdflags_t = 0;
|
||||
ourfd: __wasi_fd_t;
|
||||
res: __wasi_errno_t;
|
||||
pr: RawByteString;
|
||||
@ -130,10 +128,10 @@ Begin
|
||||
0,
|
||||
PChar(pr),
|
||||
length(pr),
|
||||
oflags,
|
||||
0,
|
||||
fs_rights_base,
|
||||
fs_rights_base,
|
||||
fdflags,
|
||||
0,
|
||||
@ourfd);
|
||||
until (res=__WASI_ERRNO_SUCCESS) or (res<>__WASI_ERRNO_INTR);
|
||||
If res=__WASI_ERRNO_SUCCESS Then
|
||||
|
Loading…
Reference in New Issue
Block a user