@@ -163,11 +163,10 @@ typedef uint8_t __wasi_filetype_t;
163163#define __WASI_FILETYPE_SYMBOLIC_LINK (UINT8_C(7))
164164
165165typedef uint16_t __wasi_fstflags_t ;
166- #define __WASI_FILE_STAT_ATIM (UINT16_C(0x0001))
167- #define __WASI_FILE_STAT_ATIM_NOW (UINT16_C(0x0002))
168- #define __WASI_FILE_STAT_MTIM (UINT16_C(0x0004))
169- #define __WASI_FILE_STAT_MTIM_NOW (UINT16_C(0x0008))
170- #define __WASI_FILE_STAT_SIZE (UINT16_C(0x0010))
166+ #define __WASI_FILE_STAT_SET_ATIM (UINT16_C(0x0001))
167+ #define __WASI_FILE_STAT_SET_ATIM_NOW (UINT16_C(0x0002))
168+ #define __WASI_FILE_STAT_SET_MTIM (UINT16_C(0x0004))
169+ #define __WASI_FILE_STAT_SET_MTIM_NOW (UINT16_C(0x0008))
171170
172171typedef uint64_t __wasi_inode_t ;
173172
@@ -190,7 +189,7 @@ typedef uint64_t __wasi_rights_t;
190189#define __WASI_RIGHT_FD_DATASYNC (UINT64_C(0x0000000000000001))
191190#define __WASI_RIGHT_FD_READ (UINT64_C(0x0000000000000002))
192191#define __WASI_RIGHT_FD_SEEK (UINT64_C(0x0000000000000004))
193- #define __WASI_RIGHT_FD_STAT_PUT_FLAGS (UINT64_C(0x0000000000000008))
192+ #define __WASI_RIGHT_FD_STAT_SET_FLAGS (UINT64_C(0x0000000000000008))
194193#define __WASI_RIGHT_FD_SYNC (UINT64_C(0x0000000000000010))
195194#define __WASI_RIGHT_FD_TELL (UINT64_C(0x0000000000000020))
196195#define __WASI_RIGHT_FD_WRITE (UINT64_C(0x0000000000000040))
@@ -258,9 +257,6 @@ typedef uint8_t __wasi_signal_t;
258257typedef uint16_t __wasi_subclockflags_t ;
259258#define __WASI_SUBSCRIPTION_CLOCK_ABSTIME (UINT16_C(0x0001))
260259
261- typedef uint16_t __wasi_subrwflags_t ;
262- #define __WASI_SUBSCRIPTION_FD_READWRITE_POLL (UINT16_C(0x0001))
263-
264260typedef uint64_t __wasi_timestamp_t ;
265261
266262typedef uint8_t __wasi_ulflags_t ;
@@ -400,7 +396,6 @@ typedef struct __wasi_subscription_t {
400396 } clock ;
401397 struct __wasi_subscription_u_fd_readwrite_t {
402398 __wasi_fd_t fd ;
403- __wasi_subrwflags_t flags ;
404399 } fd_readwrite ;
405400 } u ;
406401} __wasi_subscription_t ;
@@ -424,9 +419,6 @@ _Static_assert(
424419_Static_assert (
425420 offsetof (__wasi_subscription_t , u .fd_readwrite .fd ) == 16 ,
426421 "non-wasi data layout" );
427- _Static_assert (
428- offsetof (__wasi_subscription_t , u .fd_readwrite .flags ) == 20 ,
429- "non-wasi data layout" );
430422_Static_assert (sizeof (__wasi_subscription_t ) == 56 , "non-wasi data layout" );
431423_Static_assert (_Alignof(__wasi_subscription_t ) == 8 , "non-wasi data layout" );
432424
@@ -504,7 +496,8 @@ __wasi_errno_t __wasi_fd_stat_set_flags(
504496
505497__wasi_errno_t __wasi_fd_stat_set_rights (
506498 __wasi_fd_t fd ,
507- __wasi_rights_t rights
499+ __wasi_rights_t fs_rights_base ,
500+ __wasi_rights_t fs_rights_inheriting
508501) __WASI_SYSCALL_NAME (fd_stat_set_rights ) __attribute__((__warn_unused_result__ ));
509502
510503__wasi_errno_t __wasi_fd_sync (
0 commit comments