Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
wa-lang
wa
提交
11a95a5b
wa
项目概览
wa-lang
/
wa
大约 1 年 前同步成功
通知
68
Star
655
Fork
45
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
wa
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
11a95a5b
编写于
3月 19, 2023
作者:
chai2010
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
syscall/wasi: 补齐全部的 API 函数
上级
c7c1b324
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
40 addition
and
40 deletion
+40
-40
internal/waroot/_waroot/src/syscall/wasi/fs.wa
internal/waroot/_waroot/src/syscall/wasi/fs.wa
+40
-40
未找到文件。
internal/waroot/_waroot/src/syscall/wasi/fs.wa
浏览文件 @
11a95a5b
// 版权 @2022 凹语言 作者。保留所有权利。
#wa:import wasi_snapshot_preview1 fd_advise
func
fd_a
dvise(fd: i32, offset: i64, len: i64, result_advice: i32) => (errno: i32)
func
FdA
dvise(fd: i32, offset: i64, len: i64, result_advice: i32) => (errno: i32)
#wa:import wasi_snapshot_preview1 fd_allocate
func
fd_a
llocate(fd: i32, offset: i64, len: i64) => (errno: i32)
func
FdA
llocate(fd: i32, offset: i64, len: i64) => (errno: i32)
#wa:import wasi_snapshot_preview1 fd_close
func
fd_c
lose(fd: i32) => (errno: i32)
func
FdC
lose(fd: i32) => (errno: i32)
#wa:import wasi_snapshot_preview1 fd_datasync
func
fd_d
atasync(fd: i32) => (errno: i32)
func
FdD
atasync(fd: i32) => (errno: i32)
#wa:import wasi_snapshot_preview1 fd_fdstat_get
func
fd_fdstat_g
et(fd: i32, result_stat: i32) => (errno: i32)
func
FdFdstatG
et(fd: i32, result_stat: i32) => (errno: i32)
#wa:import wasi_snapshot_preview1 fd_fdstat_set_flags
func
fd_fdstat_set_f
lags(fd: i32, flags: i32) => (errno: i32)
func
FdFdstatSetF
lags(fd: i32, flags: i32) => (errno: i32)
#wa:import wasi_snapshot_preview1 fd_fdstat_set_rights
func
fd_fdstat_set_r
ights(fd: i32, fs_rights_base: i64, fs_rights_inheriting: i64) => (errno: i32)
func
FdFdstatSetR
ights(fd: i32, fs_rights_base: i64, fs_rights_inheriting: i64) => (errno: i32)
#wa:import wasi_snapshot_preview1 fd_filestat_get
func
fd_filestat_g
et(fd: i32, result_buf: i32) => (errno: i32)
func
FdFilestatG
et(fd: i32, result_buf: i32) => (errno: i32)
#wa:import wasi_snapshot_preview1 fd_filestat_set_size
func
fd_filestat_set_s
ize(fd: i32, size: i64) => (errno: i32)
func
FdFilestatSetS
ize(fd: i32, size: i64) => (errno: i32)
#wa:import wasi_snapshot_preview1 fd_filestat_set_times
func
fd_filestat_set_t
imes(fd: i32, atim: i64, mtim: i64, fst_flags: i32) => (errno: i32)
func
FdFilestatSetT
imes(fd: i32, atim: i64, mtim: i64, fst_flags: i32) => (errno: i32)
#wa:import wasi_snapshot_preview1 fd_pread
func
fd_p
read(fd: i32, iovs: i32, iovs_len: i32, offset: i64, result_size: i32) => (errno: i32)
func
FdP
read(fd: i32, iovs: i32, iovs_len: i32, offset: i64, result_size: i32) => (errno: i32)
#wa:import wasi_snapshot_preview1 fd_prestat_get
func
fd_prestat_g
et(fd: i32, result_prestat: i32) => (errno: i32)
func
FdPrestatG
et(fd: i32, result_prestat: i32) => (errno: i32)
#wa:import wasi_snapshot_preview1 fd_prestat_dir_name
func
fd_prestat_dir_n
ame(fd: i32, path: i32, path_len: i32) => (errno: i32)
func
FdPrestatDirN
ame(fd: i32, path: i32, path_len: i32) => (errno: i32)
#wa:import wasi_snapshot_preview1 fd_pwrite
func
fd_p
write(fd: i32, iovs: i32, iovs_len: i32, offset: i64, result_nwritten: i32) => (errno: i32)
func
FdP
write(fd: i32, iovs: i32, iovs_len: i32, offset: i64, result_nwritten: i32) => (errno: i32)
#wa:import wasi_snapshot_preview1 fd_read
func
fd_r
ead(fdL i32, iovs: i32, iovs_len: i32, result_size: i32) => (errno: i32)
func
FdR
ead(fdL i32, iovs: i32, iovs_len: i32, result_size: i32) => (errno: i32)
#wa:import wasi_snapshot_preview1 fd_readdir
func
fd_r
eaddir(fd: i32, buf: i32, buf_len: i32, cookie: i64, result_bufused: i32) => (errno: i32)
func
FdR
eaddir(fd: i32, buf: i32, buf_len: i32, cookie: i64, result_bufused: i32) => (errno: i32)
#wa:import wasi_snapshot_preview1 fd_renumber
func
fd_r
enumber(fd: i32, to: i32) => (errno: i32)
func
FdR
enumber(fd: i32, to: i32) => (errno: i32)
#wa:import wasi_snapshot_preview1 fd_seek
func
fd_s
eek(fd: i32, offset: i64, whence: i32, result_newoffset: i32) => (errno: i32)
func
FdS
eek(fd: i32, offset: i64, whence: i32, result_newoffset: i32) => (errno: i32)
#wa:import wasi_snapshot_preview1 fd_sync
func
fd_s
ync(fd: i32) => (errno: i32)
func
FdS
ync(fd: i32) => (errno: i32)
#wa:import wasi_snapshot_preview1 fd_tell
func
fd_t
ell(fd: i32, result_offset: i32) => (errno: i32)
func
FdT
ell(fd: i32, result_offset: i32) => (errno: i32)
#wa:import wasi_snapshot_preview1 fd_write
func FdWrite(fd: i32, io: i32, iovs_len: i32, nwritten: i32) => (errno: i32)
//
#wa:import wasi_snapshot_preview1 path_create_directory
func
path_create_directory(
) => (errno: i32)
#wa:import wasi_snapshot_preview1 path_create_directory
func
PathCreateDirectory(fd i32, path: i32, path_len: i32
) => (errno: i32)
//
#wa:import wasi_snapshot_preview1 path_filestat_get
func
path_filestat_get(
) => (errno: i32)
#wa:import wasi_snapshot_preview1 path_filestat_get
func
PathFilestatGet(fd: i32, flags: i32, path: i32, path_len: i32, result_buf: i32
) => (errno: i32)
//
#wa:import wasi_snapshot_preview1 path_filestat_set_times
func
path_filestat_set_times(
) => (errno: i32)
#wa:import wasi_snapshot_preview1 path_filestat_set_times
func
PathFilestatSetTimes(fd: i32, flags: i32, path: i32, path_len: i32, atim: i64, mtim: i64, fst_flags: i32
) => (errno: i32)
//
#wa:import wasi_snapshot_preview1 path_link
func
path_link(
) => (errno: i32)
#wa:import wasi_snapshot_preview1 path_link
func
PathLink(old_fd, old_flags, old_path, old_path_len, new_fd, new_path, new_path_len: i32
) => (errno: i32)
//
#wa:import wasi_snapshot_preview1 path_open
func
path_open(
) => (errno: i32)
#wa:import wasi_snapshot_preview1 path_open
func
PathOpen(fd, dirflags, path, path_len, oflags: i32, fs_rights_base: i64, fs_rights_inheriting: i64, fdflags, result_opened_fd: i32
) => (errno: i32)
//
#wa:import wasi_snapshot_preview1 path_readlink
func
path_readlink(
) => (errno: i32)
#wa:import wasi_snapshot_preview1 path_readlink
func
PathReadlink(fd, path, path_len, buf, buf_len, result_bufused: i32
) => (errno: i32)
//
#wa:import wasi_snapshot_preview1 path_remove_directory
func
path_remove_directory(
) => (errno: i32)
#wa:import wasi_snapshot_preview1 path_remove_directory
func
PathRemoveDirectory(fd, path, path_len: i32
) => (errno: i32)
//
#wa:import wasi_snapshot_preview1 path_rename
func
path_rename(
) => (errno: i32)
#wa:import wasi_snapshot_preview1 path_rename
func
PathRename(fd, old_path, old_path_len, new_fd, new_path, new_path_len: i32
) => (errno: i32)
//
#wa:import wasi_snapshot_preview1 path_symlink
func
path_symlink(
) => (errno: i32)
#wa:import wasi_snapshot_preview1 path_symlink
func
PathSymlink(old_path, old_path_len, fd, new_path, new_path_len: i32
) => (errno: i32)
//
#wa:import wasi_snapshot_preview1 path_unlink_file
func
path_unlink_file(
) => (errno: i32)
#wa:import wasi_snapshot_preview1 path_unlink_file
func
PathUnlinkFile(fd, path, path_len: i32
) => (errno: i32)
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录