@@ -358,15 +358,6 @@ _Static_assert(
358358_Static_assert (sizeof (__wasi_filestat_t ) == 56 , "non-wasi data layout" );
359359_Static_assert (_Alignof(__wasi_filestat_t ) == 8 , "non-wasi data layout" );
360360
361- typedef struct __wasi_lookup_t {
362- __wasi_fd_t fd ;
363- __wasi_lookupflags_t flags ;
364- } __wasi_lookup_t ;
365- _Static_assert (offsetof(__wasi_lookup_t , fd ) == 0 , "non-wasi data layout" );
366- _Static_assert (offsetof(__wasi_lookup_t , flags ) == 4 , "non-wasi data layout" );
367- _Static_assert (sizeof (__wasi_lookup_t ) == 8 , "non-wasi data layout" );
368- _Static_assert (_Alignof(__wasi_lookup_t ) == 4 , "non-wasi data layout" );
369-
370361typedef struct __wasi_ciovec_t {
371362 const void * buf ;
372363 size_t buf_len ;
@@ -656,7 +647,8 @@ __wasi_errno_t __wasi_file_create(
656647) __WASI_SYSCALL_NAME (file_create ) __attribute__((__warn_unused_result__ ));
657648
658649__wasi_errno_t __wasi_file_link (
659- __wasi_lookup_t old_fd ,
650+ __wasi_fd_t old_fd ,
651+ __wasi_lookupflags_t old_flags ,
660652 const char * old_path ,
661653 size_t old_path_len ,
662654 __wasi_fd_t new_fd ,
@@ -665,7 +657,8 @@ __wasi_errno_t __wasi_file_link(
665657) __WASI_SYSCALL_NAME (file_link ) __attribute__((__warn_unused_result__ ));
666658
667659__wasi_errno_t __wasi_file_open (
668- __wasi_lookup_t dirfd ,
660+ __wasi_fd_t dirfd ,
661+ __wasi_lookupflags_t dirflags ,
669662 const char * path ,
670663 size_t path_len ,
671664 __wasi_oflags_t oflags ,
@@ -707,22 +700,24 @@ __wasi_errno_t __wasi_file_stat_fget(
707700__wasi_errno_t __wasi_file_stat_fput (
708701 __wasi_fd_t fd ,
709702 const __wasi_filestat_t * buf ,
710- __wasi_fsflags_t flags
703+ __wasi_fsflags_t fsflags
711704) __WASI_SYSCALL_NAME (file_stat_fput ) __attribute__((__warn_unused_result__ ));
712705
713706__wasi_errno_t __wasi_file_stat_get (
714- __wasi_lookup_t fd ,
707+ __wasi_fd_t fd ,
708+ __wasi_lookupflags_t flags ,
715709 const char * path ,
716710 size_t path_len ,
717711 __wasi_filestat_t * buf
718712) __WASI_SYSCALL_NAME (file_stat_get ) __attribute__((__warn_unused_result__ ));
719713
720714__wasi_errno_t __wasi_file_stat_put (
721- __wasi_lookup_t fd ,
715+ __wasi_fd_t fd ,
716+ __wasi_lookupflags_t flags ,
722717 const char * path ,
723718 size_t path_len ,
724719 const __wasi_filestat_t * buf ,
725- __wasi_fsflags_t flags
720+ __wasi_fsflags_t fsflags
726721) __WASI_SYSCALL_NAME (file_stat_put ) __attribute__((__warn_unused_result__ ));
727722
728723__wasi_errno_t __wasi_file_symlink (
0 commit comments