17 info(
"poll_oneoff not implemented.");
34 if (fd != 1 && fd != 2) {
35 info(
"fd_write to unsupported file descriptor: ", fd);
39 for (
size_t i = 0; i < iovs_len; ++i) {
40 auto iovs = iovs_ptr[i];
41 str += std::string(iovs.data, iovs.len);
44 *ret_ptr = str.length();
50 info(
"fd_seek not implemented.");
57 info(
"fd_close not implemented.");
87 if (fd != 1 && fd != 2) {
88 info(
"fd_fdstat_get with unsupported file descriptor: ", fd);
92 *(uint8_t*)
buf = (uint8_t)fd;
98 info(
"fd_fdstat_set_flags not implemented.");
105 info(
"fd_filestat_get not implemented.");
112 info(
"fd_filestat_set_size not implemented.");
119 info(
"path_create_directory not implemented.");
126 info(
"fd_readdir not implemented.");
133 info(
"fd_advise not implemented.");
140 info(
"fd_allocate not implemented.");
147 info(
"fd_datasync not implemented.");
154 info(
"fd_sync not implemented.");
161 info(
"fd_renumber not implemented.");
168 info(
"fd_tell stubbed.");
174 info(
"fd_read not implemented.");
180 int32_t, int32_t, int32_t, int32_t, int32_t, int64_t, int64_t, int32_t, int32_t)
182 info(
"path_open not implemented.");
196 info(
"fd_prestat_dir_name not implemented.");
207 int32_t, int32_t, int32_t, int32_t, int64_t, int64_t, int32_t)
209 info(
"path_filestat_set_times not implemented.");
216 info(
"path_link not implemented.");
223 info(
"path_readlink not implemented.");
230 info(
"path_remove_directory not implemented.");
237 info(
"path_rename not implemented.");
244 info(
"path_symlink not implemented.");
251 info(
"path_unlink_file not implemented.");
void logstr(char const *msg)
int32_t __imported_wasi_snapshot_preview1_path_symlink(int32_t, int32_t, int32_t, int32_t, int32_t)
int32_t __imported_wasi_snapshot_preview1_fd_close(int32_t)
int32_t __imported_wasi_snapshot_preview1_fd_filestat_set_size(int32_t, int64_t)
int32_t __imported_wasi_snapshot_preview1_fd_prestat_dir_name(int32_t, int32_t, int32_t)
int32_t __imported_wasi_snapshot_preview1_fd_write(int32_t fd, iovs_struct *iovs_ptr, size_t iovs_len, size_t *ret_ptr)
int32_t __imported_wasi_snapshot_preview1_path_create_directory(int32_t, int32_t, int32_t)
int32_t __imported_wasi_snapshot_preview1_fd_fdstat_get(int32_t fd, void *buf)
int32_t __imported_wasi_snapshot_preview1_fd_advise(int32_t, int64_t, int64_t, int32_t)
int32_t __imported_wasi_snapshot_preview1_path_unlink_file(int32_t, int32_t, int32_t)
int32_t __imported_wasi_snapshot_preview1_fd_readdir(int32_t, int32_t, int32_t, int64_t, int32_t)
int32_t __imported_wasi_snapshot_preview1_environ_sizes_get(int32_t, int32_t)
int32_t __imported_wasi_snapshot_preview1_fd_allocate(int32_t, int64_t, int64_t)
int32_t __imported_wasi_snapshot_preview1_fd_seek(int32_t, int64_t, int32_t, int32_t)
int32_t __imported_wasi_snapshot_preview1_path_rename(int32_t, int32_t, int32_t, int32_t, int32_t, int32_t)
int32_t __imported_wasi_snapshot_preview1_path_link(int32_t, int32_t, int32_t, int32_t, int32_t, int32_t, int32_t)
int32_t __imported_wasi_snapshot_preview1_fd_datasync(int32_t)
int32_t __imported_wasi_snapshot_preview1_fd_filestat_get(int32_t, int32_t)
int32_t __imported_wasi_snapshot_preview1_fd_prestat_get(int32_t, int32_t)
int32_t __imported_wasi_snapshot_preview1_path_remove_directory(int32_t, int32_t, int32_t)
int32_t __imported_wasi_snapshot_preview1_fd_read(int32_t, int32_t, int32_t, int32_t)
int32_t __imported_wasi_snapshot_preview1_path_filestat_get(int32_t, int32_t, int32_t, int32_t, int32_t)
int32_t __imported_wasi_snapshot_preview1_path_filestat_set_times(int32_t, int32_t, int32_t, int32_t, int64_t, int64_t, int32_t)
int32_t __imported_wasi_snapshot_preview1_poll_oneoff(int32_t, int32_t, int32_t, int32_t)
int32_t __imported_wasi_snapshot_preview1_path_readlink(int32_t, int32_t, int32_t, int32_t, int32_t, int32_t)
int32_t __imported_wasi_snapshot_preview1_environ_get(int32_t, int32_t)
int32_t __imported_wasi_snapshot_preview1_fd_tell(int32_t, uint64_t *)
int32_t __imported_wasi_snapshot_preview1_fd_renumber(int32_t, int32_t)
int32_t __imported_wasi_snapshot_preview1_fd_fdstat_set_flags(int32_t, int32_t)
int32_t __imported_wasi_snapshot_preview1_path_open(int32_t, int32_t, int32_t, int32_t, int32_t, int64_t, int64_t, int32_t, int32_t)
int32_t __imported_wasi_snapshot_preview1_fd_sync(int32_t)
int32_t __imported_wasi_snapshot_preview1_sched_yield()