Skip to content

Commit 9e7667f

Browse files
rvolosatovsdeadprogram
authored andcommitted
syscall: add WASI {D,R}SYNC, NONBLOCK FD flags
Signed-off-by: Roman Volosatovs <[email protected]>
1 parent b86467f commit 9e7667f

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/syscall/syscall_libc_wasi.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,9 @@ const (
5555
__WASI_OFLAGS_TRUNC = 8
5656

5757
__WASI_FDFLAGS_APPEND = 1
58+
__WASI_FDFLAGS_DSYNC = 2
59+
__WASI_FDFLAGS_NONBLOCK = 4
60+
__WASI_FDFLAGS_RSYNC = 8
5861
__WASI_FDFLAGS_SYNC = 16
5962

6063
O_RDONLY = 0x04000000
@@ -66,6 +69,9 @@ const (
6669
O_EXCL = __WASI_OFLAGS_EXCL << 12
6770

6871
O_APPEND = __WASI_FDFLAGS_APPEND
72+
O_DSYNC = __WASI_FDFLAGS_DSYNC
73+
O_NONBLOCK = __WASI_FDFLAGS_NONBLOCK
74+
O_RSYNC = __WASI_FDFLAGS_RSYNC
6975
O_SYNC = __WASI_FDFLAGS_SYNC
7076

7177
O_CLOEXEC = 0

0 commit comments

Comments
 (0)