|
2894 | 2894 | #define __WASI_ERRNO_TIMEDOUT (UINT16_C(73))
|
2895 | 2895 | #define __WASI_ERRNO_TXTBSY (UINT16_C(74))
|
2896 | 2896 | #define __WASI_ERRNO_XDEV (UINT16_C(75))
|
2897 |
| -#define __WASI_EVENTRWFLAGS_FD_READWRITE_HANGUP (UINT16_C(1)) |
| 2897 | +#define __WASI_EVENTRWFLAGS_FD_READWRITE_HANGUP ((__wasi_eventrwflags_t)(1 << 0)) |
2898 | 2898 | #define __WASI_EVENTTYPE_CLOCK (UINT8_C(0))
|
2899 | 2899 | #define __WASI_EVENTTYPE_FD_READ (UINT8_C(1))
|
2900 | 2900 | #define __WASI_EVENTTYPE_FD_WRITE (UINT8_C(2))
|
2901 |
| -#define __WASI_FDFLAGS_APPEND (UINT16_C(1)) |
2902 |
| -#define __WASI_FDFLAGS_DSYNC (UINT16_C(2)) |
2903 |
| -#define __WASI_FDFLAGS_NONBLOCK (UINT16_C(4)) |
2904 |
| -#define __WASI_FDFLAGS_RSYNC (UINT16_C(8)) |
2905 |
| -#define __WASI_FDFLAGS_SYNC (UINT16_C(16)) |
| 2901 | +#define __WASI_FDFLAGS_APPEND ((__wasi_fdflags_t)(1 << 0)) |
| 2902 | +#define __WASI_FDFLAGS_DSYNC ((__wasi_fdflags_t)(1 << 1)) |
| 2903 | +#define __WASI_FDFLAGS_NONBLOCK ((__wasi_fdflags_t)(1 << 2)) |
| 2904 | +#define __WASI_FDFLAGS_RSYNC ((__wasi_fdflags_t)(1 << 3)) |
| 2905 | +#define __WASI_FDFLAGS_SYNC ((__wasi_fdflags_t)(1 << 4)) |
2906 | 2906 | #define __WASI_FILETYPE_BLOCK_DEVICE (UINT8_C(1))
|
2907 | 2907 | #define __WASI_FILETYPE_CHARACTER_DEVICE (UINT8_C(2))
|
2908 | 2908 | #define __WASI_FILETYPE_DIRECTORY (UINT8_C(3))
|
|
2911 | 2911 | #define __WASI_FILETYPE_SOCKET_STREAM (UINT8_C(6))
|
2912 | 2912 | #define __WASI_FILETYPE_SYMBOLIC_LINK (UINT8_C(7))
|
2913 | 2913 | #define __WASI_FILETYPE_UNKNOWN (UINT8_C(0))
|
2914 |
| -#define __WASI_FSTFLAGS_ATIM (UINT16_C(1)) |
2915 |
| -#define __WASI_FSTFLAGS_ATIM_NOW (UINT16_C(2)) |
2916 |
| -#define __WASI_FSTFLAGS_MTIM (UINT16_C(4)) |
2917 |
| -#define __WASI_FSTFLAGS_MTIM_NOW (UINT16_C(8)) |
2918 |
| -#define __WASI_LOOKUPFLAGS_SYMLINK_FOLLOW (UINT32_C(1)) |
2919 |
| -#define __WASI_OFLAGS_CREAT (UINT16_C(1)) |
2920 |
| -#define __WASI_OFLAGS_DIRECTORY (UINT16_C(2)) |
2921 |
| -#define __WASI_OFLAGS_EXCL (UINT16_C(4)) |
2922 |
| -#define __WASI_OFLAGS_TRUNC (UINT16_C(8)) |
| 2914 | +#define __WASI_FSTFLAGS_ATIM ((__wasi_fstflags_t)(1 << 0)) |
| 2915 | +#define __WASI_FSTFLAGS_ATIM_NOW ((__wasi_fstflags_t)(1 << 1)) |
| 2916 | +#define __WASI_FSTFLAGS_MTIM ((__wasi_fstflags_t)(1 << 2)) |
| 2917 | +#define __WASI_FSTFLAGS_MTIM_NOW ((__wasi_fstflags_t)(1 << 3)) |
| 2918 | +#define __WASI_LOOKUPFLAGS_SYMLINK_FOLLOW ((__wasi_lookupflags_t)(1 << 0)) |
| 2919 | +#define __WASI_OFLAGS_CREAT ((__wasi_oflags_t)(1 << 0)) |
| 2920 | +#define __WASI_OFLAGS_DIRECTORY ((__wasi_oflags_t)(1 << 1)) |
| 2921 | +#define __WASI_OFLAGS_EXCL ((__wasi_oflags_t)(1 << 2)) |
| 2922 | +#define __WASI_OFLAGS_TRUNC ((__wasi_oflags_t)(1 << 3)) |
2923 | 2923 | #define __WASI_PREOPENTYPE_DIR (UINT8_C(0))
|
2924 |
| -#define __WASI_RIFLAGS_RECV_PEEK (UINT16_C(1)) |
2925 |
| -#define __WASI_RIFLAGS_RECV_WAITALL (UINT16_C(2)) |
2926 |
| -#define __WASI_RIGHTS_FD_ADVISE (UINT64_C(128)) |
2927 |
| -#define __WASI_RIGHTS_FD_ALLOCATE (UINT64_C(256)) |
2928 |
| -#define __WASI_RIGHTS_FD_DATASYNC (UINT64_C(1)) |
2929 |
| -#define __WASI_RIGHTS_FD_FDSTAT_SET_FLAGS (UINT64_C(8)) |
2930 |
| -#define __WASI_RIGHTS_FD_FILESTAT_GET (UINT64_C(2097152)) |
2931 |
| -#define __WASI_RIGHTS_FD_FILESTAT_SET_SIZE (UINT64_C(4194304)) |
2932 |
| -#define __WASI_RIGHTS_FD_FILESTAT_SET_TIMES (UINT64_C(8388608)) |
2933 |
| -#define __WASI_RIGHTS_FD_READ (UINT64_C(2)) |
2934 |
| -#define __WASI_RIGHTS_FD_READDIR (UINT64_C(16384)) |
2935 |
| -#define __WASI_RIGHTS_FD_SEEK (UINT64_C(4)) |
2936 |
| -#define __WASI_RIGHTS_FD_SYNC (UINT64_C(16)) |
2937 |
| -#define __WASI_RIGHTS_FD_TELL (UINT64_C(32)) |
2938 |
| -#define __WASI_RIGHTS_FD_WRITE (UINT64_C(64)) |
2939 |
| -#define __WASI_RIGHTS_PATH_CREATE_DIRECTORY (UINT64_C(512)) |
2940 |
| -#define __WASI_RIGHTS_PATH_CREATE_FILE (UINT64_C(1024)) |
2941 |
| -#define __WASI_RIGHTS_PATH_FILESTAT_GET (UINT64_C(262144)) |
2942 |
| -#define __WASI_RIGHTS_PATH_FILESTAT_SET_SIZE (UINT64_C(524288)) |
2943 |
| -#define __WASI_RIGHTS_PATH_FILESTAT_SET_TIMES (UINT64_C(1048576)) |
2944 |
| -#define __WASI_RIGHTS_PATH_LINK_SOURCE (UINT64_C(2048)) |
2945 |
| -#define __WASI_RIGHTS_PATH_LINK_TARGET (UINT64_C(4096)) |
2946 |
| -#define __WASI_RIGHTS_PATH_OPEN (UINT64_C(8192)) |
2947 |
| -#define __WASI_RIGHTS_PATH_READLINK (UINT64_C(32768)) |
2948 |
| -#define __WASI_RIGHTS_PATH_REMOVE_DIRECTORY (UINT64_C(33554432)) |
2949 |
| -#define __WASI_RIGHTS_PATH_RENAME_SOURCE (UINT64_C(65536)) |
2950 |
| -#define __WASI_RIGHTS_PATH_RENAME_TARGET (UINT64_C(131072)) |
2951 |
| -#define __WASI_RIGHTS_PATH_SYMLINK (UINT64_C(16777216)) |
2952 |
| -#define __WASI_RIGHTS_PATH_UNLINK_FILE (UINT64_C(67108864)) |
2953 |
| -#define __WASI_RIGHTS_POLL_FD_READWRITE (UINT64_C(134217728)) |
2954 |
| -#define __WASI_RIGHTS_SOCK_SHUTDOWN (UINT64_C(268435456)) |
2955 |
| -#define __WASI_ROFLAGS_RECV_DATA_TRUNCATED (UINT16_C(1)) |
2956 |
| -#define __WASI_SDFLAGS_RD (UINT8_C(1)) |
2957 |
| -#define __WASI_SDFLAGS_WR (UINT8_C(2)) |
| 2924 | +#define __WASI_RIFLAGS_RECV_PEEK ((__wasi_riflags_t)(1 << 0)) |
| 2925 | +#define __WASI_RIFLAGS_RECV_WAITALL ((__wasi_riflags_t)(1 << 1)) |
| 2926 | +#define __WASI_RIGHTS_FD_ADVISE ((__wasi_rights_t)(1 << 7)) |
| 2927 | +#define __WASI_RIGHTS_FD_ALLOCATE ((__wasi_rights_t)(1 << 8)) |
| 2928 | +#define __WASI_RIGHTS_FD_DATASYNC ((__wasi_rights_t)(1 << 0)) |
| 2929 | +#define __WASI_RIGHTS_FD_FDSTAT_SET_FLAGS ((__wasi_rights_t)(1 << 3)) |
| 2930 | +#define __WASI_RIGHTS_FD_FILESTAT_GET ((__wasi_rights_t)(1 << 21)) |
| 2931 | +#define __WASI_RIGHTS_FD_FILESTAT_SET_SIZE ((__wasi_rights_t)(1 << 22)) |
| 2932 | +#define __WASI_RIGHTS_FD_FILESTAT_SET_TIMES ((__wasi_rights_t)(1 << 23)) |
| 2933 | +#define __WASI_RIGHTS_FD_READ ((__wasi_rights_t)(1 << 1)) |
| 2934 | +#define __WASI_RIGHTS_FD_READDIR ((__wasi_rights_t)(1 << 14)) |
| 2935 | +#define __WASI_RIGHTS_FD_SEEK ((__wasi_rights_t)(1 << 2)) |
| 2936 | +#define __WASI_RIGHTS_FD_SYNC ((__wasi_rights_t)(1 << 4)) |
| 2937 | +#define __WASI_RIGHTS_FD_TELL ((__wasi_rights_t)(1 << 5)) |
| 2938 | +#define __WASI_RIGHTS_FD_WRITE ((__wasi_rights_t)(1 << 6)) |
| 2939 | +#define __WASI_RIGHTS_PATH_CREATE_DIRECTORY ((__wasi_rights_t)(1 << 9)) |
| 2940 | +#define __WASI_RIGHTS_PATH_CREATE_FILE ((__wasi_rights_t)(1 << 10)) |
| 2941 | +#define __WASI_RIGHTS_PATH_FILESTAT_GET ((__wasi_rights_t)(1 << 18)) |
| 2942 | +#define __WASI_RIGHTS_PATH_FILESTAT_SET_SIZE ((__wasi_rights_t)(1 << 19)) |
| 2943 | +#define __WASI_RIGHTS_PATH_FILESTAT_SET_TIMES ((__wasi_rights_t)(1 << 20)) |
| 2944 | +#define __WASI_RIGHTS_PATH_LINK_SOURCE ((__wasi_rights_t)(1 << 11)) |
| 2945 | +#define __WASI_RIGHTS_PATH_LINK_TARGET ((__wasi_rights_t)(1 << 12)) |
| 2946 | +#define __WASI_RIGHTS_PATH_OPEN ((__wasi_rights_t)(1 << 13)) |
| 2947 | +#define __WASI_RIGHTS_PATH_READLINK ((__wasi_rights_t)(1 << 15)) |
| 2948 | +#define __WASI_RIGHTS_PATH_REMOVE_DIRECTORY ((__wasi_rights_t)(1 << 25)) |
| 2949 | +#define __WASI_RIGHTS_PATH_RENAME_SOURCE ((__wasi_rights_t)(1 << 16)) |
| 2950 | +#define __WASI_RIGHTS_PATH_RENAME_TARGET ((__wasi_rights_t)(1 << 17)) |
| 2951 | +#define __WASI_RIGHTS_PATH_SYMLINK ((__wasi_rights_t)(1 << 24)) |
| 2952 | +#define __WASI_RIGHTS_PATH_UNLINK_FILE ((__wasi_rights_t)(1 << 26)) |
| 2953 | +#define __WASI_RIGHTS_POLL_FD_READWRITE ((__wasi_rights_t)(1 << 27)) |
| 2954 | +#define __WASI_RIGHTS_SOCK_SHUTDOWN ((__wasi_rights_t)(1 << 28)) |
| 2955 | +#define __WASI_ROFLAGS_RECV_DATA_TRUNCATED ((__wasi_roflags_t)(1 << 0)) |
| 2956 | +#define __WASI_SDFLAGS_RD ((__wasi_sdflags_t)(1 << 0)) |
| 2957 | +#define __WASI_SDFLAGS_WR ((__wasi_sdflags_t)(1 << 1)) |
2958 | 2958 | #define __WASI_SIGNAL_ABRT (UINT8_C(6))
|
2959 | 2959 | #define __WASI_SIGNAL_ALRM (UINT8_C(14))
|
2960 | 2960 | #define __WASI_SIGNAL_BUS (UINT8_C(7))
|
|
2986 | 2986 | #define __WASI_SIGNAL_WINCH (UINT8_C(27))
|
2987 | 2987 | #define __WASI_SIGNAL_XCPU (UINT8_C(23))
|
2988 | 2988 | #define __WASI_SIGNAL_XFSZ (UINT8_C(24))
|
2989 |
| -#define __WASI_SUBCLOCKFLAGS_SUBSCRIPTION_CLOCK_ABSTIME (UINT16_C(1)) |
| 2989 | +#define __WASI_SUBCLOCKFLAGS_SUBSCRIPTION_CLOCK_ABSTIME ((__wasi_subclockflags_t)(1 << 0)) |
2990 | 2990 | #define __WASI_WHENCE_CUR (UINT8_C(1))
|
2991 | 2991 | #define __WASI_WHENCE_END (UINT8_C(2))
|
2992 | 2992 | #define __WASI_WHENCE_SET (UINT8_C(0))
|
|
0 commit comments