https://docs.rs/wasi/0.9.0+wasi-snapshot-preview1/wasi/wasi_snapshot_preview1/index.html
static NativeSymbol native_symbols_libc_wasi[] = {
REG_NATIVE_FUNC(args_get, "(**)i"),
REG_NATIVE_FUNC(args_sizes_get, "(**)i"),
REG_NATIVE_FUNC(clock_res_get, "(i*)i"),
REG_NATIVE_FUNC(clock_time_get, "(iI*)i"),
REG_NATIVE_FUNC(environ_get, "(**)i"),
REG_NATIVE_FUNC(environ_sizes_get, "(**)i"),
REG_NATIVE_FUNC(fd_prestat_get, "(i*)i"),
REG_NATIVE_FUNC(fd_prestat_dir_name, "(i*~)i"),
REG_NATIVE_FUNC(fd_close, "(i)i"),
REG_NATIVE_FUNC(fd_datasync, "(i)i"),
REG_NATIVE_FUNC(fd_pread, "(i*iI*)i"),
REG_NATIVE_FUNC(fd_pwrite, "(i*iI*)i"),
REG_NATIVE_FUNC(fd_read, "(i*i*)i"),
REG_NATIVE_FUNC(fd_renumber, "(ii)i"),
REG_NATIVE_FUNC(fd_seek, "(iIi*)i"),
REG_NATIVE_FUNC(fd_tell, "(i*)i"),
REG_NATIVE_FUNC(fd_fdstat_get, "(i*)i"),
REG_NATIVE_FUNC(fd_fdstat_set_flags, "(ii)i"),
REG_NATIVE_FUNC(fd_fdstat_set_rights, "(iII)i"),
REG_NATIVE_FUNC(fd_sync, "(i)i"),
REG_NATIVE_FUNC(fd_write, "(i*i*)i"),
REG_NATIVE_FUNC(fd_advise, "(iIIi)i"),
REG_NATIVE_FUNC(fd_allocate, "(iII)i"),
REG_NATIVE_FUNC(path_create_directory, "(i*~)i"),
REG_NATIVE_FUNC(path_link, "(ii*~i*~)i"),
REG_NATIVE_FUNC(path_open, "(ii*~iIIi*)i"),
REG_NATIVE_FUNC(fd_readdir, "(i*~I*)i"),
REG_NATIVE_FUNC(path_readlink, "(i*~*~*)i"),
REG_NATIVE_FUNC(path_rename, "(i*~i*~)i"),
REG_NATIVE_FUNC(fd_filestat_get, "(i*)i"),
REG_NATIVE_FUNC(fd_filestat_set_times, "(iIIi)i"),
REG_NATIVE_FUNC(fd_filestat_set_size, "(iI)i"),
REG_NATIVE_FUNC(path_filestat_get, "(ii*~*)i"),
REG_NATIVE_FUNC(path_filestat_set_times, "(ii*~IIi)i"),
REG_NATIVE_FUNC(path_symlink, "(*~i*~)i"),
REG_NATIVE_FUNC(path_unlink_file, "(i*~)i"),
REG_NATIVE_FUNC(path_remove_directory, "(i*~)i"),
REG_NATIVE_FUNC(poll_oneoff, "(**i*)i"),
REG_NATIVE_FUNC(proc_exit, "(i)"),
REG_NATIVE_FUNC(proc_raise, "(i)i"),
REG_NATIVE_FUNC(random_get, "(*~)i"),
REG_NATIVE_FUNC(sock_recv, "(i*ii**)i"),
REG_NATIVE_FUNC(sock_send, "(i*ii*)i"),
REG_NATIVE_FUNC(sock_shutdown, "(ii)i"),
REG_NATIVE_FUNC(sched_yield, "()i"),
};