|
|
@@ -264,37 +264,6 @@ typedef uint8_t __wasi_sdflags_t;
|
|
|
typedef uint16_t __wasi_siflags_t;
|
|
|
|
|
|
typedef uint8_t __wasi_signal_t;
|
|
|
-// 0 is reserved; POSIX has special semantics for kill(pid, 0).
|
|
|
-#define __WASI_SIGHUP (1)
|
|
|
-#define __WASI_SIGINT (2)
|
|
|
-#define __WASI_SIGQUIT (3)
|
|
|
-#define __WASI_SIGILL (4)
|
|
|
-#define __WASI_SIGTRAP (5)
|
|
|
-#define __WASI_SIGABRT (6)
|
|
|
-#define __WASI_SIGBUS (7)
|
|
|
-#define __WASI_SIGFPE (8)
|
|
|
-#define __WASI_SIGKILL (9)
|
|
|
-#define __WASI_SIGUSR1 (10)
|
|
|
-#define __WASI_SIGSEGV (11)
|
|
|
-#define __WASI_SIGUSR2 (12)
|
|
|
-#define __WASI_SIGPIPE (13)
|
|
|
-#define __WASI_SIGALRM (14)
|
|
|
-#define __WASI_SIGTERM (15)
|
|
|
-#define __WASI_SIGCHLD (16)
|
|
|
-#define __WASI_SIGCONT (17)
|
|
|
-#define __WASI_SIGSTOP (18)
|
|
|
-#define __WASI_SIGTSTP (19)
|
|
|
-#define __WASI_SIGTTIN (20)
|
|
|
-#define __WASI_SIGTTOU (21)
|
|
|
-#define __WASI_SIGURG (22)
|
|
|
-#define __WASI_SIGXCPU (23)
|
|
|
-#define __WASI_SIGXFSZ (24)
|
|
|
-#define __WASI_SIGVTALRM (25)
|
|
|
-#define __WASI_SIGPROF (26)
|
|
|
-#define __WASI_SIGWINCH (27)
|
|
|
-#define __WASI_SIGPOLL (28)
|
|
|
-#define __WASI_SIGPWR (29)
|
|
|
-#define __WASI_SIGSYS (30)
|
|
|
|
|
|
typedef uint16_t __wasi_subclockflags_t;
|
|
|
#define __WASI_SUBSCRIPTION_CLOCK_ABSTIME (0x0001)
|
|
|
@@ -629,17 +598,13 @@ typedef struct __wasi_addr_info_hints_t {
|
|
|
#endif
|
|
|
|
|
|
__wasi_errno_t wasmtime_ssp_args_get(
|
|
|
-#if !defined(WASMTIME_SSP_STATIC_CURFDS)
|
|
|
struct argv_environ_values *arg_environ,
|
|
|
-#endif
|
|
|
char **argv,
|
|
|
char *argv_buf
|
|
|
) WASMTIME_SSP_SYSCALL_NAME(args_get) __attribute__((__warn_unused_result__));
|
|
|
|
|
|
__wasi_errno_t wasmtime_ssp_args_sizes_get(
|
|
|
-#if !defined(WASMTIME_SSP_STATIC_CURFDS)
|
|
|
struct argv_environ_values *arg_environ,
|
|
|
-#endif
|
|
|
size_t *argc,
|
|
|
size_t *argv_buf_size
|
|
|
) WASMTIME_SSP_SYSCALL_NAME(args_sizes_get) __attribute__((__warn_unused_result__));
|
|
|
@@ -656,57 +621,43 @@ __wasi_errno_t wasmtime_ssp_clock_time_get(
|
|
|
) WASMTIME_SSP_SYSCALL_NAME(clock_time_get) __attribute__((__warn_unused_result__));
|
|
|
|
|
|
__wasi_errno_t wasmtime_ssp_environ_get(
|
|
|
-#if !defined(WASMTIME_SSP_STATIC_CURFDS)
|
|
|
struct argv_environ_values *arg_environ,
|
|
|
-#endif
|
|
|
char **environ,
|
|
|
char *environ_buf
|
|
|
) WASMTIME_SSP_SYSCALL_NAME(environ_get) __attribute__((__warn_unused_result__));
|
|
|
|
|
|
__wasi_errno_t wasmtime_ssp_environ_sizes_get(
|
|
|
-#if !defined(WASMTIME_SSP_STATIC_CURFDS)
|
|
|
struct argv_environ_values *arg_environ,
|
|
|
-#endif
|
|
|
size_t *environ_count,
|
|
|
size_t *environ_buf_size
|
|
|
) WASMTIME_SSP_SYSCALL_NAME(environ_sizes_get) __attribute__((__warn_unused_result__));
|
|
|
|
|
|
__wasi_errno_t wasmtime_ssp_fd_prestat_get(
|
|
|
-#if !defined(WASMTIME_SSP_STATIC_CURFDS)
|
|
|
struct fd_prestats *prestats,
|
|
|
-#endif
|
|
|
__wasi_fd_t fd,
|
|
|
__wasi_prestat_t *buf
|
|
|
) WASMTIME_SSP_SYSCALL_NAME(fd_prestat_get) __attribute__((__warn_unused_result__));
|
|
|
|
|
|
__wasi_errno_t wasmtime_ssp_fd_prestat_dir_name(
|
|
|
-#if !defined(WASMTIME_SSP_STATIC_CURFDS)
|
|
|
struct fd_prestats *prestats,
|
|
|
-#endif
|
|
|
__wasi_fd_t fd,
|
|
|
char *path,
|
|
|
size_t path_len
|
|
|
) WASMTIME_SSP_SYSCALL_NAME(fd_prestat_dir_name) __attribute__((__warn_unused_result__));
|
|
|
|
|
|
__wasi_errno_t wasmtime_ssp_fd_close(
|
|
|
-#if !defined(WASMTIME_SSP_STATIC_CURFDS)
|
|
|
struct fd_table *curfds,
|
|
|
struct fd_prestats *prestats,
|
|
|
-#endif
|
|
|
__wasi_fd_t fd
|
|
|
) WASMTIME_SSP_SYSCALL_NAME(fd_close) __attribute__((__warn_unused_result__));
|
|
|
|
|
|
__wasi_errno_t wasmtime_ssp_fd_datasync(
|
|
|
-#if !defined(WASMTIME_SSP_STATIC_CURFDS)
|
|
|
struct fd_table *curfds,
|
|
|
-#endif
|
|
|
__wasi_fd_t fd
|
|
|
) WASMTIME_SSP_SYSCALL_NAME(fd_datasync) __attribute__((__warn_unused_result__));
|
|
|
|
|
|
__wasi_errno_t wasmtime_ssp_fd_pread(
|
|
|
-#if !defined(WASMTIME_SSP_STATIC_CURFDS)
|
|
|
struct fd_table *curfds,
|
|
|
-#endif
|
|
|
__wasi_fd_t fd,
|
|
|
const __wasi_iovec_t *iovs,
|
|
|
size_t iovs_len,
|
|
|
@@ -715,9 +666,7 @@ __wasi_errno_t wasmtime_ssp_fd_pread(
|
|
|
) WASMTIME_SSP_SYSCALL_NAME(fd_pread) __attribute__((__warn_unused_result__));
|
|
|
|
|
|
__wasi_errno_t wasmtime_ssp_fd_pwrite(
|
|
|
-#if !defined(WASMTIME_SSP_STATIC_CURFDS)
|
|
|
struct fd_table *curfds,
|
|
|
-#endif
|
|
|
__wasi_fd_t fd,
|
|
|
const __wasi_ciovec_t *iovs,
|
|
|
size_t iovs_len,
|
|
|
@@ -726,9 +675,7 @@ __wasi_errno_t wasmtime_ssp_fd_pwrite(
|
|
|
) WASMTIME_SSP_SYSCALL_NAME(fd_pwrite) __attribute__((__warn_unused_result__));
|
|
|
|
|
|
__wasi_errno_t wasmtime_ssp_fd_read(
|
|
|
-#if !defined(WASMTIME_SSP_STATIC_CURFDS)
|
|
|
struct fd_table *curfds,
|
|
|
-#endif
|
|
|
__wasi_fd_t fd,
|
|
|
const __wasi_iovec_t *iovs,
|
|
|
size_t iovs_len,
|
|
|
@@ -736,18 +683,14 @@ __wasi_errno_t wasmtime_ssp_fd_read(
|
|
|
) WASMTIME_SSP_SYSCALL_NAME(fd_read) __attribute__((__warn_unused_result__));
|
|
|
|
|
|
__wasi_errno_t wasmtime_ssp_fd_renumber(
|
|
|
-#if !defined(WASMTIME_SSP_STATIC_CURFDS)
|
|
|
struct fd_table *curfds,
|
|
|
struct fd_prestats *prestats,
|
|
|
-#endif
|
|
|
__wasi_fd_t from,
|
|
|
__wasi_fd_t to
|
|
|
) WASMTIME_SSP_SYSCALL_NAME(fd_renumber) __attribute__((__warn_unused_result__));
|
|
|
|
|
|
__wasi_errno_t wasmtime_ssp_fd_seek(
|
|
|
-#if !defined(WASMTIME_SSP_STATIC_CURFDS)
|
|
|
struct fd_table *curfds,
|
|
|
-#endif
|
|
|
__wasi_fd_t fd,
|
|
|
__wasi_filedelta_t offset,
|
|
|
__wasi_whence_t whence,
|
|
|
@@ -755,49 +698,37 @@ __wasi_errno_t wasmtime_ssp_fd_seek(
|
|
|
) WASMTIME_SSP_SYSCALL_NAME(fd_seek) __attribute__((__warn_unused_result__));
|
|
|
|
|
|
__wasi_errno_t wasmtime_ssp_fd_tell(
|
|
|
-#if !defined(WASMTIME_SSP_STATIC_CURFDS)
|
|
|
struct fd_table *curfds,
|
|
|
-#endif
|
|
|
__wasi_fd_t fd,
|
|
|
__wasi_filesize_t *newoffset
|
|
|
) WASMTIME_SSP_SYSCALL_NAME(fd_tell) __attribute__((__warn_unused_result__));
|
|
|
|
|
|
__wasi_errno_t wasmtime_ssp_fd_fdstat_get(
|
|
|
-#if !defined(WASMTIME_SSP_STATIC_CURFDS)
|
|
|
struct fd_table *curfds,
|
|
|
-#endif
|
|
|
__wasi_fd_t fd,
|
|
|
__wasi_fdstat_t *buf
|
|
|
) WASMTIME_SSP_SYSCALL_NAME(fd_fdstat_get) __attribute__((__warn_unused_result__));
|
|
|
|
|
|
__wasi_errno_t wasmtime_ssp_fd_fdstat_set_flags(
|
|
|
-#if !defined(WASMTIME_SSP_STATIC_CURFDS)
|
|
|
struct fd_table *curfds,
|
|
|
-#endif
|
|
|
__wasi_fd_t fd,
|
|
|
__wasi_fdflags_t flags
|
|
|
) WASMTIME_SSP_SYSCALL_NAME(fd_fdstat_set_flags) __attribute__((__warn_unused_result__));
|
|
|
|
|
|
__wasi_errno_t wasmtime_ssp_fd_fdstat_set_rights(
|
|
|
-#if !defined(WASMTIME_SSP_STATIC_CURFDS)
|
|
|
struct fd_table *curfds,
|
|
|
-#endif
|
|
|
__wasi_fd_t fd,
|
|
|
__wasi_rights_t fs_rights_base,
|
|
|
__wasi_rights_t fs_rights_inheriting
|
|
|
) WASMTIME_SSP_SYSCALL_NAME(fd_fdstat_set_rights) __attribute__((__warn_unused_result__));
|
|
|
|
|
|
__wasi_errno_t wasmtime_ssp_fd_sync(
|
|
|
-#if !defined(WASMTIME_SSP_STATIC_CURFDS)
|
|
|
struct fd_table *curfds,
|
|
|
-#endif
|
|
|
__wasi_fd_t fd
|
|
|
) WASMTIME_SSP_SYSCALL_NAME(fd_sync) __attribute__((__warn_unused_result__));
|
|
|
|
|
|
__wasi_errno_t wasmtime_ssp_fd_write(
|
|
|
-#if !defined(WASMTIME_SSP_STATIC_CURFDS)
|
|
|
struct fd_table *curfds,
|
|
|
-#endif
|
|
|
__wasi_fd_t fd,
|
|
|
const __wasi_ciovec_t *iovs,
|
|
|
size_t iovs_len,
|
|
|
@@ -805,9 +736,7 @@ __wasi_errno_t wasmtime_ssp_fd_write(
|
|
|
) WASMTIME_SSP_SYSCALL_NAME(fd_write) __attribute__((__warn_unused_result__));
|
|
|
|
|
|
__wasi_errno_t wasmtime_ssp_fd_advise(
|
|
|
-#if !defined(WASMTIME_SSP_STATIC_CURFDS)
|
|
|
struct fd_table *curfds,
|
|
|
-#endif
|
|
|
__wasi_fd_t fd,
|
|
|
__wasi_filesize_t offset,
|
|
|
__wasi_filesize_t len,
|
|
|
@@ -815,28 +744,22 @@ __wasi_errno_t wasmtime_ssp_fd_advise(
|
|
|
) WASMTIME_SSP_SYSCALL_NAME(fd_advise) __attribute__((__warn_unused_result__));
|
|
|
|
|
|
__wasi_errno_t wasmtime_ssp_fd_allocate(
|
|
|
-#if !defined(WASMTIME_SSP_STATIC_CURFDS)
|
|
|
struct fd_table *curfds,
|
|
|
-#endif
|
|
|
__wasi_fd_t fd,
|
|
|
__wasi_filesize_t offset,
|
|
|
__wasi_filesize_t len
|
|
|
) WASMTIME_SSP_SYSCALL_NAME(fd_allocate) __attribute__((__warn_unused_result__));
|
|
|
|
|
|
__wasi_errno_t wasmtime_ssp_path_create_directory(
|
|
|
-#if !defined(WASMTIME_SSP_STATIC_CURFDS)
|
|
|
struct fd_table *curfds,
|
|
|
-#endif
|
|
|
__wasi_fd_t fd,
|
|
|
const char *path,
|
|
|
size_t path_len
|
|
|
) WASMTIME_SSP_SYSCALL_NAME(path_create_directory) __attribute__((__warn_unused_result__));
|
|
|
|
|
|
__wasi_errno_t wasmtime_ssp_path_link(
|
|
|
-#if !defined(WASMTIME_SSP_STATIC_CURFDS)
|
|
|
struct fd_table *curfds,
|
|
|
struct fd_prestats *prestats,
|
|
|
-#endif
|
|
|
__wasi_fd_t old_fd,
|
|
|
__wasi_lookupflags_t old_flags,
|
|
|
const char *old_path,
|
|
|
@@ -847,9 +770,7 @@ __wasi_errno_t wasmtime_ssp_path_link(
|
|
|
) WASMTIME_SSP_SYSCALL_NAME(path_link) __attribute__((__warn_unused_result__));
|
|
|
|
|
|
__wasi_errno_t wasmtime_ssp_path_open(
|
|
|
-#if !defined(WASMTIME_SSP_STATIC_CURFDS)
|
|
|
struct fd_table *curfds,
|
|
|
-#endif
|
|
|
__wasi_fd_t dirfd,
|
|
|
__wasi_lookupflags_t dirflags,
|
|
|
const char *path,
|
|
|
@@ -862,9 +783,7 @@ __wasi_errno_t wasmtime_ssp_path_open(
|
|
|
) WASMTIME_SSP_SYSCALL_NAME(path_open) __attribute__((__warn_unused_result__));
|
|
|
|
|
|
__wasi_errno_t wasmtime_ssp_fd_readdir(
|
|
|
-#if !defined(WASMTIME_SSP_STATIC_CURFDS)
|
|
|
struct fd_table *curfds,
|
|
|
-#endif
|
|
|
__wasi_fd_t fd,
|
|
|
void *buf,
|
|
|
size_t buf_len,
|
|
|
@@ -873,9 +792,7 @@ __wasi_errno_t wasmtime_ssp_fd_readdir(
|
|
|
) WASMTIME_SSP_SYSCALL_NAME(fd_readdir) __attribute__((__warn_unused_result__));
|
|
|
|
|
|
__wasi_errno_t wasmtime_ssp_path_readlink(
|
|
|
-#if !defined(WASMTIME_SSP_STATIC_CURFDS)
|
|
|
struct fd_table *curfds,
|
|
|
-#endif
|
|
|
__wasi_fd_t fd,
|
|
|
const char *path,
|
|
|
size_t path_len,
|
|
|
@@ -885,9 +802,7 @@ __wasi_errno_t wasmtime_ssp_path_readlink(
|
|
|
) WASMTIME_SSP_SYSCALL_NAME(path_readlink) __attribute__((__warn_unused_result__));
|
|
|
|
|
|
__wasi_errno_t wasmtime_ssp_path_rename(
|
|
|
-#if !defined(WASMTIME_SSP_STATIC_CURFDS)
|
|
|
struct fd_table *curfds,
|
|
|
-#endif
|
|
|
__wasi_fd_t old_fd,
|
|
|
const char *old_path,
|
|
|
size_t old_path_len,
|
|
|
@@ -897,17 +812,13 @@ __wasi_errno_t wasmtime_ssp_path_rename(
|
|
|
) WASMTIME_SSP_SYSCALL_NAME(path_rename) __attribute__((__warn_unused_result__));
|
|
|
|
|
|
__wasi_errno_t wasmtime_ssp_fd_filestat_get(
|
|
|
-#if !defined(WASMTIME_SSP_STATIC_CURFDS)
|
|
|
struct fd_table *curfds,
|
|
|
-#endif
|
|
|
__wasi_fd_t fd,
|
|
|
__wasi_filestat_t *buf
|
|
|
) WASMTIME_SSP_SYSCALL_NAME(fd_filestat_get) __attribute__((__warn_unused_result__));
|
|
|
|
|
|
__wasi_errno_t wasmtime_ssp_fd_filestat_set_times(
|
|
|
-#if !defined(WASMTIME_SSP_STATIC_CURFDS)
|
|
|
struct fd_table *curfds,
|
|
|
-#endif
|
|
|
__wasi_fd_t fd,
|
|
|
__wasi_timestamp_t st_atim,
|
|
|
__wasi_timestamp_t st_mtim,
|
|
|
@@ -915,17 +826,13 @@ __wasi_errno_t wasmtime_ssp_fd_filestat_set_times(
|
|
|
) WASMTIME_SSP_SYSCALL_NAME(fd_filestat_set_times) __attribute__((__warn_unused_result__));
|
|
|
|
|
|
__wasi_errno_t wasmtime_ssp_fd_filestat_set_size(
|
|
|
-#if !defined(WASMTIME_SSP_STATIC_CURFDS)
|
|
|
struct fd_table *curfds,
|
|
|
-#endif
|
|
|
__wasi_fd_t fd,
|
|
|
__wasi_filesize_t st_size
|
|
|
) WASMTIME_SSP_SYSCALL_NAME(fd_filestat_set_size) __attribute__((__warn_unused_result__));
|
|
|
|
|
|
__wasi_errno_t wasmtime_ssp_path_filestat_get(
|
|
|
-#if !defined(WASMTIME_SSP_STATIC_CURFDS)
|
|
|
struct fd_table *curfds,
|
|
|
-#endif
|
|
|
__wasi_fd_t fd,
|
|
|
__wasi_lookupflags_t flags,
|
|
|
const char *path,
|
|
|
@@ -934,9 +841,7 @@ __wasi_errno_t wasmtime_ssp_path_filestat_get(
|
|
|
) WASMTIME_SSP_SYSCALL_NAME(path_filestat_get) __attribute__((__warn_unused_result__));
|
|
|
|
|
|
__wasi_errno_t wasmtime_ssp_path_filestat_set_times(
|
|
|
-#if !defined(WASMTIME_SSP_STATIC_CURFDS)
|
|
|
struct fd_table *curfds,
|
|
|
-#endif
|
|
|
__wasi_fd_t fd,
|
|
|
__wasi_lookupflags_t flags,
|
|
|
const char *path,
|
|
|
@@ -947,10 +852,8 @@ __wasi_errno_t wasmtime_ssp_path_filestat_set_times(
|
|
|
) WASMTIME_SSP_SYSCALL_NAME(path_filestat_set_times) __attribute__((__warn_unused_result__));
|
|
|
|
|
|
__wasi_errno_t wasmtime_ssp_path_symlink(
|
|
|
-#if !defined(WASMTIME_SSP_STATIC_CURFDS)
|
|
|
struct fd_table *curfds,
|
|
|
struct fd_prestats *prestats,
|
|
|
-#endif
|
|
|
const char *old_path,
|
|
|
size_t old_path_len,
|
|
|
__wasi_fd_t fd,
|
|
|
@@ -959,47 +862,27 @@ __wasi_errno_t wasmtime_ssp_path_symlink(
|
|
|
) WASMTIME_SSP_SYSCALL_NAME(path_symlink) __attribute__((__warn_unused_result__));
|
|
|
|
|
|
__wasi_errno_t wasmtime_ssp_path_unlink_file(
|
|
|
-#if !defined(WASMTIME_SSP_STATIC_CURFDS)
|
|
|
struct fd_table *curfds,
|
|
|
-#endif
|
|
|
__wasi_fd_t fd,
|
|
|
const char *path,
|
|
|
size_t path_len
|
|
|
) WASMTIME_SSP_SYSCALL_NAME(path_unlink_file) __attribute__((__warn_unused_result__));
|
|
|
|
|
|
__wasi_errno_t wasmtime_ssp_path_remove_directory(
|
|
|
-#if !defined(WASMTIME_SSP_STATIC_CURFDS)
|
|
|
struct fd_table *curfds,
|
|
|
-#endif
|
|
|
__wasi_fd_t fd,
|
|
|
const char *path,
|
|
|
size_t path_len
|
|
|
) WASMTIME_SSP_SYSCALL_NAME(path_remove_directory) __attribute__((__warn_unused_result__));
|
|
|
|
|
|
__wasi_errno_t wasmtime_ssp_poll_oneoff(
|
|
|
-#if !defined(WASMTIME_SSP_STATIC_CURFDS)
|
|
|
struct fd_table *curfds,
|
|
|
-#endif
|
|
|
const __wasi_subscription_t *in,
|
|
|
__wasi_event_t *out,
|
|
|
size_t nsubscriptions,
|
|
|
size_t *nevents
|
|
|
) WASMTIME_SSP_SYSCALL_NAME(poll_oneoff) __attribute__((__warn_unused_result__));
|
|
|
|
|
|
-#if 0
|
|
|
-/**
|
|
|
- * We throw exception in libc-wasi wrapper function wasi_proc_exit()
|
|
|
- * but not call this function.
|
|
|
- */
|
|
|
-_Noreturn void wasmtime_ssp_proc_exit(
|
|
|
- __wasi_exitcode_t rval
|
|
|
-) WASMTIME_SSP_SYSCALL_NAME(proc_exit);
|
|
|
-#endif
|
|
|
-
|
|
|
-__wasi_errno_t wasmtime_ssp_proc_raise(
|
|
|
- __wasi_signal_t sig
|
|
|
-) WASMTIME_SSP_SYSCALL_NAME(proc_raise) __attribute__((__warn_unused_result__));
|
|
|
-
|
|
|
__wasi_errno_t wasmtime_ssp_random_get(
|
|
|
void *buf,
|
|
|
size_t buf_len
|
|
|
@@ -1007,50 +890,38 @@ __wasi_errno_t wasmtime_ssp_random_get(
|
|
|
|
|
|
__wasi_errno_t
|
|
|
wasi_ssp_sock_accept(
|
|
|
-#if !defined(WASMTIME_SSP_STATIC_CURFDS)
|
|
|
struct fd_table *curfds,
|
|
|
-#endif
|
|
|
__wasi_fd_t fd, __wasi_fdflags_t flags, __wasi_fd_t *fd_new
|
|
|
) __attribute__((__warn_unused_result__));
|
|
|
|
|
|
__wasi_errno_t
|
|
|
wasi_ssp_sock_addr_local(
|
|
|
-#if !defined(WASMTIME_SSP_STATIC_CURFDS)
|
|
|
struct fd_table *curfds,
|
|
|
-#endif
|
|
|
__wasi_fd_t fd, __wasi_addr_t *addr
|
|
|
) __attribute__((__warn_unused_result__));
|
|
|
|
|
|
__wasi_errno_t
|
|
|
wasi_ssp_sock_addr_remote(
|
|
|
-#if !defined(WASMTIME_SSP_STATIC_CURFDS)
|
|
|
struct fd_table *curfds,
|
|
|
-#endif
|
|
|
__wasi_fd_t fd, __wasi_addr_t *addr
|
|
|
) __attribute__((__warn_unused_result__));
|
|
|
|
|
|
__wasi_errno_t
|
|
|
wasi_ssp_sock_open(
|
|
|
-#if !defined(WASMTIME_SSP_STATIC_CURFDS)
|
|
|
struct fd_table *curfds,
|
|
|
-#endif
|
|
|
__wasi_fd_t poolfd, __wasi_address_family_t af, __wasi_sock_type_t socktype,
|
|
|
__wasi_fd_t *sockfd
|
|
|
) __attribute__((__warn_unused_result__));
|
|
|
|
|
|
__wasi_errno_t
|
|
|
wasi_ssp_sock_bind(
|
|
|
-#if !defined(WASMTIME_SSP_STATIC_CURFDS)
|
|
|
struct fd_table *curfds, struct addr_pool *addr_pool,
|
|
|
-#endif
|
|
|
__wasi_fd_t fd, __wasi_addr_t *addr
|
|
|
) __attribute__((__warn_unused_result__));
|
|
|
|
|
|
__wasi_errno_t
|
|
|
wasi_ssp_sock_addr_resolve(
|
|
|
-#if !defined(WASMTIME_SSP_STATIC_CURFDS)
|
|
|
struct fd_table *curfds, char **ns_lookup_list,
|
|
|
-#endif
|
|
|
const char *host, const char* service,
|
|
|
__wasi_addr_info_hints_t *hints, __wasi_addr_info_t *addr_info,
|
|
|
__wasi_size_t addr_info_size, __wasi_size_t *max_info_size
|
|
|
@@ -1058,88 +929,66 @@ wasi_ssp_sock_addr_resolve(
|
|
|
|
|
|
__wasi_errno_t
|
|
|
wasi_ssp_sock_connect(
|
|
|
-#if !defined(WASMTIME_SSP_STATIC_CURFDS)
|
|
|
struct fd_table *curfds, struct addr_pool *addr_pool,
|
|
|
-#endif
|
|
|
__wasi_fd_t fd, __wasi_addr_t *addr
|
|
|
) __attribute__((__warn_unused_result__));
|
|
|
|
|
|
__wasi_errno_t
|
|
|
wasi_ssp_sock_get_recv_buf_size(
|
|
|
-#if !defined(WASMTIME_SSP_STATIC_CURFDS)
|
|
|
struct fd_table *curfds,
|
|
|
-#endif
|
|
|
__wasi_fd_t fd, __wasi_size_t *size
|
|
|
) __attribute__((__warn_unused_result__));
|
|
|
|
|
|
__wasi_errno_t
|
|
|
wasi_ssp_sock_get_reuse_addr(
|
|
|
-#if !defined(WASMTIME_SSP_STATIC_CURFDS)
|
|
|
struct fd_table *curfds,
|
|
|
-#endif
|
|
|
__wasi_fd_t fd, uint8_t *reuse
|
|
|
) __attribute__((__warn_unused_result__));
|
|
|
|
|
|
__wasi_errno_t
|
|
|
wasi_ssp_sock_get_reuse_port(
|
|
|
-#if !defined(WASMTIME_SSP_STATIC_CURFDS)
|
|
|
struct fd_table *curfds,
|
|
|
-#endif
|
|
|
__wasi_fd_t fd, uint8_t *reuse
|
|
|
) __attribute__((__warn_unused_result__));
|
|
|
|
|
|
__wasi_errno_t
|
|
|
wasi_ssp_sock_get_send_buf_size(
|
|
|
-#if !defined(WASMTIME_SSP_STATIC_CURFDS)
|
|
|
struct fd_table *curfds,
|
|
|
-#endif
|
|
|
__wasi_fd_t fd, __wasi_size_t *size
|
|
|
) __attribute__((__warn_unused_result__));
|
|
|
|
|
|
__wasi_errno_t
|
|
|
wasi_ssp_sock_set_recv_buf_size(
|
|
|
-#if !defined(WASMTIME_SSP_STATIC_CURFDS)
|
|
|
struct fd_table *curfds,
|
|
|
-#endif
|
|
|
__wasi_fd_t fd, __wasi_size_t size
|
|
|
) __attribute__((__warn_unused_result__));
|
|
|
|
|
|
__wasi_errno_t
|
|
|
wasi_ssp_sock_set_reuse_addr(
|
|
|
-#if !defined(WASMTIME_SSP_STATIC_CURFDS)
|
|
|
struct fd_table *curfds,
|
|
|
-#endif
|
|
|
__wasi_fd_t fd, uint8_t reuse
|
|
|
) __attribute__((__warn_unused_result__));
|
|
|
|
|
|
__wasi_errno_t
|
|
|
wasi_ssp_sock_set_reuse_port(
|
|
|
-#if !defined(WASMTIME_SSP_STATIC_CURFDS)
|
|
|
struct fd_table *curfds,
|
|
|
-#endif
|
|
|
__wasi_fd_t fd, uint8_t reuse
|
|
|
) __attribute__((__warn_unused_result__));
|
|
|
|
|
|
__wasi_errno_t
|
|
|
wasi_ssp_sock_set_send_buf_size(
|
|
|
-#if !defined(WASMTIME_SSP_STATIC_CURFDS)
|
|
|
struct fd_table *curfds,
|
|
|
-#endif
|
|
|
__wasi_fd_t fd, __wasi_size_t size
|
|
|
) __attribute__((__warn_unused_result__));
|
|
|
|
|
|
__wasi_errno_t
|
|
|
wasi_ssp_sock_listen(
|
|
|
-#if !defined(WASMTIME_SSP_STATIC_CURFDS)
|
|
|
struct fd_table *curfds,
|
|
|
-#endif
|
|
|
__wasi_fd_t fd, __wasi_size_t backlog
|
|
|
) __attribute__((__warn_unused_result__));
|
|
|
|
|
|
__wasi_errno_t wasmtime_ssp_sock_recv(
|
|
|
-#if !defined(WASMTIME_SSP_STATIC_CURFDS)
|
|
|
struct fd_table *curfds,
|
|
|
-#endif
|
|
|
__wasi_fd_t sock,
|
|
|
void *buf,
|
|
|
size_t buf_len,
|
|
|
@@ -1147,9 +996,7 @@ __wasi_errno_t wasmtime_ssp_sock_recv(
|
|
|
) WASMTIME_SSP_SYSCALL_NAME(sock_recv) __attribute__((__warn_unused_result__));
|
|
|
|
|
|
__wasi_errno_t wasmtime_ssp_sock_recv_from(
|
|
|
-#if !defined(WASMTIME_SSP_STATIC_CURFDS)
|
|
|
struct fd_table *curfds,
|
|
|
-#endif
|
|
|
__wasi_fd_t sock,
|
|
|
void *buf,
|
|
|
size_t buf_len,
|
|
|
@@ -1159,9 +1006,7 @@ __wasi_errno_t wasmtime_ssp_sock_recv_from(
|
|
|
) WASMTIME_SSP_SYSCALL_NAME(sock_recv_from) __attribute__((__warn_unused_result__));
|
|
|
|
|
|
__wasi_errno_t wasmtime_ssp_sock_send(
|
|
|
-#if !defined(WASMTIME_SSP_STATIC_CURFDS)
|
|
|
struct fd_table *curfds,
|
|
|
-#endif
|
|
|
__wasi_fd_t sock,
|
|
|
const void *buf,
|
|
|
size_t buf_len,
|
|
|
@@ -1169,9 +1014,7 @@ __wasi_errno_t wasmtime_ssp_sock_send(
|
|
|
) WASMTIME_SSP_SYSCALL_NAME(sock_send) __attribute__((__warn_unused_result__));
|
|
|
|
|
|
__wasi_errno_t wasmtime_ssp_sock_send_to(
|
|
|
-#if !defined(WASMTIME_SSP_STATIC_CURFDS)
|
|
|
struct fd_table *curfds, struct addr_pool *addr_pool,
|
|
|
-#endif
|
|
|
__wasi_fd_t sock,
|
|
|
const void *buf,
|
|
|
size_t buf_len,
|
|
|
@@ -1181,317 +1024,239 @@ __wasi_errno_t wasmtime_ssp_sock_send_to(
|
|
|
) WASMTIME_SSP_SYSCALL_NAME(sock_send_to) __attribute__((__warn_unused_result__));
|
|
|
|
|
|
__wasi_errno_t wasmtime_ssp_sock_shutdown(
|
|
|
-#if !defined(WASMTIME_SSP_STATIC_CURFDS)
|
|
|
struct fd_table *curfds,
|
|
|
-#endif
|
|
|
__wasi_fd_t sock
|
|
|
) WASMTIME_SSP_SYSCALL_NAME(sock_shutdown) __attribute__((__warn_unused_result__));
|
|
|
|
|
|
__wasi_errno_t wasmtime_ssp_sock_set_recv_timeout(
|
|
|
-#if !defined(WASMTIME_SSP_STATIC_CURFDS)
|
|
|
struct fd_table *curfds,
|
|
|
-#endif
|
|
|
__wasi_fd_t sock,
|
|
|
uint64_t timeout_us
|
|
|
) WASMTIME_SSP_SYSCALL_NAME(sock_set_recv_timeout) __attribute__((__warn_unused_result__));
|
|
|
|
|
|
__wasi_errno_t wasmtime_ssp_sock_get_recv_timeout(
|
|
|
-#if !defined(WASMTIME_SSP_STATIC_CURFDS)
|
|
|
struct fd_table *curfds,
|
|
|
-#endif
|
|
|
__wasi_fd_t sock,
|
|
|
uint64_t *timeout_us
|
|
|
) WASMTIME_SSP_SYSCALL_NAME(sock_get_recv_timeout) __attribute__((__warn_unused_result__));
|
|
|
|
|
|
__wasi_errno_t wasmtime_ssp_sock_set_send_timeout(
|
|
|
-#if !defined(WASMTIME_SSP_STATIC_CURFDS)
|
|
|
struct fd_table *curfds,
|
|
|
-#endif
|
|
|
__wasi_fd_t sock,
|
|
|
uint64_t timeout_us
|
|
|
) WASMTIME_SSP_SYSCALL_NAME(sock_set_send_timeout) __attribute__((__warn_unused_result__));
|
|
|
|
|
|
__wasi_errno_t wasmtime_ssp_sock_get_send_timeout(
|
|
|
-#if !defined(WASMTIME_SSP_STATIC_CURFDS)
|
|
|
struct fd_table *curfds,
|
|
|
-#endif
|
|
|
__wasi_fd_t sock,
|
|
|
uint64_t *timeout_us
|
|
|
) WASMTIME_SSP_SYSCALL_NAME(sock_get_send_timeout) __attribute__((__warn_unused_result__));
|
|
|
|
|
|
__wasi_errno_t wasmtime_ssp_sock_set_send_buf_size(
|
|
|
-#if !defined(WASMTIME_SSP_STATIC_CURFDS)
|
|
|
struct fd_table *curfds,
|
|
|
-#endif
|
|
|
__wasi_fd_t sock,
|
|
|
size_t bufsiz
|
|
|
) WASMTIME_SSP_SYSCALL_NAME(sock_set_send_buf_size) __attribute__((__warn_unused_result__));
|
|
|
|
|
|
__wasi_errno_t wasmtime_ssp_sock_get_send_buf_size(
|
|
|
-#if !defined(WASMTIME_SSP_STATIC_CURFDS)
|
|
|
struct fd_table *curfds,
|
|
|
-#endif
|
|
|
__wasi_fd_t sock,
|
|
|
size_t *bufsiz
|
|
|
) WASMTIME_SSP_SYSCALL_NAME(sock_get_send_buf_size) __attribute__((__warn_unused_result__));
|
|
|
|
|
|
__wasi_errno_t wasmtime_ssp_sock_set_recv_buf_size(
|
|
|
-#if !defined(WASMTIME_SSP_STATIC_CURFDS)
|
|
|
struct fd_table *curfds,
|
|
|
-#endif
|
|
|
__wasi_fd_t sock,
|
|
|
size_t bufsiz
|
|
|
) WASMTIME_SSP_SYSCALL_NAME(sock_set_recv_buf_size) __attribute__((__warn_unused_result__));
|
|
|
|
|
|
__wasi_errno_t wasmtime_ssp_sock_get_recv_buf_size(
|
|
|
-#if !defined(WASMTIME_SSP_STATIC_CURFDS)
|
|
|
struct fd_table *curfds,
|
|
|
-#endif
|
|
|
__wasi_fd_t sock,
|
|
|
size_t *bufsiz
|
|
|
) WASMTIME_SSP_SYSCALL_NAME(sock_get_recv_buf_size) __attribute__((__warn_unused_result__));
|
|
|
|
|
|
|
|
|
__wasi_errno_t wasmtime_ssp_sock_set_keep_alive(
|
|
|
-#if !defined(WASMTIME_SSP_STATIC_CURFDS)
|
|
|
struct fd_table *curfds,
|
|
|
-#endif
|
|
|
__wasi_fd_t sock,
|
|
|
bool is_enabled
|
|
|
) WASMTIME_SSP_SYSCALL_NAME(sock_set_keep_alive) __attribute__((__warn_unused_result__));
|
|
|
|
|
|
__wasi_errno_t wasmtime_ssp_sock_get_keep_alive(
|
|
|
-#if !defined(WASMTIME_SSP_STATIC_CURFDS)
|
|
|
struct fd_table *curfds,
|
|
|
-#endif
|
|
|
__wasi_fd_t sock,
|
|
|
bool *is_enabled
|
|
|
) WASMTIME_SSP_SYSCALL_NAME(sock_get_keep_alive) __attribute__((__warn_unused_result__));
|
|
|
|
|
|
__wasi_errno_t wasmtime_ssp_sock_set_reuse_addr(
|
|
|
-#if !defined(WASMTIME_SSP_STATIC_CURFDS)
|
|
|
struct fd_table *curfds,
|
|
|
-#endif
|
|
|
__wasi_fd_t sock,
|
|
|
bool is_enabled
|
|
|
) WASMTIME_SSP_SYSCALL_NAME(sock_set_reuse_addr) __attribute__((__warn_unused_result__));
|
|
|
|
|
|
__wasi_errno_t wasmtime_ssp_sock_get_reuse_addr(
|
|
|
-#if !defined(WASMTIME_SSP_STATIC_CURFDS)
|
|
|
struct fd_table *curfds,
|
|
|
-#endif
|
|
|
__wasi_fd_t sock,
|
|
|
bool *is_enabled
|
|
|
) WASMTIME_SSP_SYSCALL_NAME(sock_get_reuse_addr) __attribute__((__warn_unused_result__));
|
|
|
|
|
|
__wasi_errno_t wasmtime_ssp_sock_set_reuse_port(
|
|
|
-#if !defined(WASMTIME_SSP_STATIC_CURFDS)
|
|
|
struct fd_table *curfds,
|
|
|
-#endif
|
|
|
__wasi_fd_t sock,
|
|
|
bool is_enabled
|
|
|
) WASMTIME_SSP_SYSCALL_NAME(sock_set_reuse_port) __attribute__((__warn_unused_result__));
|
|
|
|
|
|
__wasi_errno_t wasmtime_ssp_sock_get_reuse_port(
|
|
|
-#if !defined(WASMTIME_SSP_STATIC_CURFDS)
|
|
|
struct fd_table *curfds,
|
|
|
-#endif
|
|
|
__wasi_fd_t sock,
|
|
|
bool *is_enabled
|
|
|
) WASMTIME_SSP_SYSCALL_NAME(sock_get_reuse_port) __attribute__((__warn_unused_result__));
|
|
|
|
|
|
__wasi_errno_t wasmtime_ssp_sock_set_linger(
|
|
|
-#if !defined(WASMTIME_SSP_STATIC_CURFDS)
|
|
|
struct fd_table *curfds,
|
|
|
-#endif
|
|
|
__wasi_fd_t sock,
|
|
|
bool is_enabled,
|
|
|
int linger_s
|
|
|
) WASMTIME_SSP_SYSCALL_NAME(sock_set_linger) __attribute__((__warn_unused_result__));
|
|
|
|
|
|
__wasi_errno_t wasmtime_ssp_sock_get_linger(
|
|
|
-#if !defined(WASMTIME_SSP_STATIC_CURFDS)
|
|
|
struct fd_table *curfds,
|
|
|
-#endif
|
|
|
__wasi_fd_t sock, bool *is_enabled, int *linger_s
|
|
|
) WASMTIME_SSP_SYSCALL_NAME(sock_get_linger) __attribute__((__warn_unused_result__));
|
|
|
|
|
|
__wasi_errno_t wasmtime_ssp_sock_set_broadcast(
|
|
|
-#if !defined(WASMTIME_SSP_STATIC_CURFDS)
|
|
|
struct fd_table *curfds,
|
|
|
-#endif
|
|
|
__wasi_fd_t sock,
|
|
|
bool is_enabled
|
|
|
) WASMTIME_SSP_SYSCALL_NAME(sock_set_broadcast) __attribute__((__warn_unused_result__));
|
|
|
|
|
|
__wasi_errno_t wasmtime_ssp_sock_get_broadcast(
|
|
|
-#if !defined(WASMTIME_SSP_STATIC_CURFDS)
|
|
|
struct fd_table *curfds,
|
|
|
-#endif
|
|
|
__wasi_fd_t sock,
|
|
|
bool *is_enabled
|
|
|
) WASMTIME_SSP_SYSCALL_NAME(sock_get_broadcast) __attribute__((__warn_unused_result__));
|
|
|
|
|
|
__wasi_errno_t wasmtime_ssp_sock_set_tcp_no_delay(
|
|
|
-#if !defined(WASMTIME_SSP_STATIC_CURFDS)
|
|
|
struct fd_table *curfds,
|
|
|
-#endif
|
|
|
__wasi_fd_t sock,
|
|
|
bool is_enabled
|
|
|
) WASMTIME_SSP_SYSCALL_NAME(sock_set_tcp_no_delay) __attribute__((__warn_unused_result__));
|
|
|
|
|
|
__wasi_errno_t wasmtime_ssp_sock_get_tcp_no_delay(
|
|
|
-#if !defined(WASMTIME_SSP_STATIC_CURFDS)
|
|
|
struct fd_table *curfds,
|
|
|
-#endif
|
|
|
__wasi_fd_t sock,
|
|
|
bool *is_enabled
|
|
|
) WASMTIME_SSP_SYSCALL_NAME(sock_get_tcp_no_delay) __attribute__((__warn_unused_result__));
|
|
|
|
|
|
__wasi_errno_t wasmtime_ssp_sock_set_tcp_quick_ack(
|
|
|
-#if !defined(WASMTIME_SSP_STATIC_CURFDS)
|
|
|
struct fd_table *curfds,
|
|
|
-#endif
|
|
|
__wasi_fd_t sock,
|
|
|
bool is_enabled
|
|
|
) WASMTIME_SSP_SYSCALL_NAME(sock_set_tcp_quick_ack) __attribute__((__warn_unused_result__));
|
|
|
|
|
|
__wasi_errno_t wasmtime_ssp_sock_get_tcp_quick_ack(
|
|
|
-#if !defined(WASMTIME_SSP_STATIC_CURFDS)
|
|
|
struct fd_table *curfds,
|
|
|
-#endif
|
|
|
__wasi_fd_t sock,
|
|
|
bool *is_enabled
|
|
|
) WASMTIME_SSP_SYSCALL_NAME(sock_get_tcp_quick_ack) __attribute__((__warn_unused_result__));
|
|
|
|
|
|
__wasi_errno_t wasmtime_ssp_sock_set_tcp_keep_idle(
|
|
|
-#if !defined(WASMTIME_SSP_STATIC_CURFDS)
|
|
|
struct fd_table *curfds,
|
|
|
-#endif
|
|
|
__wasi_fd_t sock,
|
|
|
uint32_t time_s
|
|
|
) WASMTIME_SSP_SYSCALL_NAME(sock_set_tcp_keep_idle) __attribute__((__warn_unused_result__));
|
|
|
|
|
|
__wasi_errno_t wasmtime_ssp_sock_get_tcp_keep_idle(
|
|
|
-#if !defined(WASMTIME_SSP_STATIC_CURFDS)
|
|
|
struct fd_table *curfds,
|
|
|
-#endif
|
|
|
__wasi_fd_t sock,
|
|
|
uint32_t *time_s
|
|
|
) WASMTIME_SSP_SYSCALL_NAME(sock_get_tcp_keep_idle) __attribute__((__warn_unused_result__));
|
|
|
|
|
|
__wasi_errno_t wasmtime_ssp_sock_set_tcp_keep_intvl(
|
|
|
-#if !defined(WASMTIME_SSP_STATIC_CURFDS)
|
|
|
struct fd_table *curfds,
|
|
|
-#endif
|
|
|
__wasi_fd_t sock,
|
|
|
uint32_t time_s
|
|
|
) WASMTIME_SSP_SYSCALL_NAME(sock_set_tcp_keep_intvl) __attribute__((__warn_unused_result__));
|
|
|
|
|
|
__wasi_errno_t wasmtime_ssp_sock_get_tcp_keep_intvl(
|
|
|
-#if !defined(WASMTIME_SSP_STATIC_CURFDS)
|
|
|
struct fd_table *curfds,
|
|
|
-#endif
|
|
|
__wasi_fd_t sock,
|
|
|
uint32_t *time_s
|
|
|
) WASMTIME_SSP_SYSCALL_NAME(sock_get_tcp_keep_intvl) __attribute__((__warn_unused_result__));
|
|
|
|
|
|
__wasi_errno_t wasmtime_ssp_sock_set_tcp_fastopen_connect(
|
|
|
-#if !defined(WASMTIME_SSP_STATIC_CURFDS)
|
|
|
struct fd_table *curfds,
|
|
|
-#endif
|
|
|
__wasi_fd_t sock,
|
|
|
bool is_enabled
|
|
|
) WASMTIME_SSP_SYSCALL_NAME(sock_set_tcp_fastopen_connect) __attribute__((__warn_unused_result__));
|
|
|
|
|
|
__wasi_errno_t wasmtime_ssp_sock_get_tcp_fastopen_connect(
|
|
|
-#if !defined(WASMTIME_SSP_STATIC_CURFDS)
|
|
|
struct fd_table *curfds,
|
|
|
-#endif
|
|
|
__wasi_fd_t sock,
|
|
|
bool *is_enabled
|
|
|
) WASMTIME_SSP_SYSCALL_NAME(sock_get_tcp_fastopen_connect) __attribute__((__warn_unused_result__));
|
|
|
|
|
|
__wasi_errno_t wasmtime_ssp_sock_set_ip_multicast_loop(
|
|
|
-#if !defined(WASMTIME_SSP_STATIC_CURFDS)
|
|
|
struct fd_table *curfds,
|
|
|
-#endif
|
|
|
__wasi_fd_t sock,
|
|
|
bool ipv6,
|
|
|
bool is_enabled
|
|
|
) WASMTIME_SSP_SYSCALL_NAME(sock_set_ip_multicast_loop) __attribute__((__warn_unused_result__));
|
|
|
|
|
|
__wasi_errno_t wasmtime_ssp_sock_get_ip_multicast_loop(
|
|
|
-#if !defined(WASMTIME_SSP_STATIC_CURFDS)
|
|
|
struct fd_table *curfds,
|
|
|
-#endif
|
|
|
__wasi_fd_t sock,
|
|
|
bool ipv6,
|
|
|
bool *is_enabled
|
|
|
) WASMTIME_SSP_SYSCALL_NAME(sock_get_ip_multicast_loop) __attribute__((__warn_unused_result__));
|
|
|
|
|
|
__wasi_errno_t wasmtime_ssp_sock_set_ip_add_membership(
|
|
|
-#if !defined(WASMTIME_SSP_STATIC_CURFDS)
|
|
|
struct fd_table *curfds,
|
|
|
-#endif
|
|
|
__wasi_fd_t sock,
|
|
|
__wasi_addr_ip_t *imr_multiaddr,
|
|
|
uint32_t imr_interface
|
|
|
) WASMTIME_SSP_SYSCALL_NAME(sock_set_ip_add_membership) __attribute__((__warn_unused_result__));
|
|
|
|
|
|
__wasi_errno_t wasmtime_ssp_sock_set_ip_drop_membership(
|
|
|
-#if !defined(WASMTIME_SSP_STATIC_CURFDS)
|
|
|
struct fd_table *curfds,
|
|
|
-#endif
|
|
|
__wasi_fd_t sock,
|
|
|
__wasi_addr_ip_t *imr_multiaddr,
|
|
|
uint32_t imr_interface
|
|
|
) WASMTIME_SSP_SYSCALL_NAME(sock_set_ip_drop_membership) __attribute__((__warn_unused_result__));
|
|
|
|
|
|
__wasi_errno_t wasmtime_ssp_sock_set_ip_ttl(
|
|
|
-#if !defined(WASMTIME_SSP_STATIC_CURFDS)
|
|
|
struct fd_table *curfds,
|
|
|
-#endif
|
|
|
__wasi_fd_t sock,
|
|
|
uint8_t ttl_s
|
|
|
) WASMTIME_SSP_SYSCALL_NAME(sock_set_ip_ttl) __attribute__((__warn_unused_result__));
|
|
|
|
|
|
__wasi_errno_t wasmtime_ssp_sock_get_ip_ttl(
|
|
|
-#if !defined(WASMTIME_SSP_STATIC_CURFDS)
|
|
|
struct fd_table *curfds,
|
|
|
-#endif
|
|
|
__wasi_fd_t sock,
|
|
|
uint8_t *ttl_s
|
|
|
) WASMTIME_SSP_SYSCALL_NAME(sock_get_ip_ttl) __attribute__((__warn_unused_result__));
|
|
|
|
|
|
__wasi_errno_t wasmtime_ssp_sock_set_ip_multicast_ttl(
|
|
|
-#if !defined(WASMTIME_SSP_STATIC_CURFDS)
|
|
|
struct fd_table *curfds,
|
|
|
-#endif
|
|
|
__wasi_fd_t sock,
|
|
|
uint8_t ttl_s
|
|
|
) WASMTIME_SSP_SYSCALL_NAME(sock_set_ip_multicast_ttl) __attribute__((__warn_unused_result__));
|
|
|
|
|
|
__wasi_errno_t wasmtime_ssp_sock_get_ip_multicast_ttl(
|
|
|
-#if !defined(WASMTIME_SSP_STATIC_CURFDS)
|
|
|
struct fd_table *curfds,
|
|
|
-#endif
|
|
|
__wasi_fd_t sock,
|
|
|
uint8_t *ttl_s
|
|
|
) WASMTIME_SSP_SYSCALL_NAME(sock_get_ip_multicast_ttl) __attribute__((__warn_unused_result__));
|
|
|
|
|
|
__wasi_errno_t wasmtime_ssp_sock_set_ipv6_only(
|
|
|
-#if !defined(WASMTIME_SSP_STATIC_CURFDS)
|
|
|
struct fd_table *curfds,
|
|
|
-#endif
|
|
|
__wasi_fd_t sock,
|
|
|
bool is_enabled
|
|
|
) WASMTIME_SSP_SYSCALL_NAME(sock_set_ipv6_only) __attribute__((__warn_unused_result__));
|
|
|
|
|
|
__wasi_errno_t wasmtime_ssp_sock_get_ipv6_only(
|
|
|
-#if !defined(WASMTIME_SSP_STATIC_CURFDS)
|
|
|
struct fd_table *curfds,
|
|
|
-#endif
|
|
|
__wasi_fd_t sock,
|
|
|
bool *is_enabled
|
|
|
) WASMTIME_SSP_SYSCALL_NAME(sock_get_ipv6_only) __attribute__((__warn_unused_result__));
|