Home
last modified time | relevance | path

Searched refs:path_open (Results 1 – 25 of 53) sorted by relevance

123

/wasmtime-44.0.1/crates/test-programs/src/bin/
H A Dp1_interesting_paths.rs18 wasip1::path_open(dir_fd, 0, "/dir/nested/file", 0, 0, 0, 0) in test_interesting_paths()
24 let mut file_fd = wasip1::path_open( in test_interesting_paths()
42 wasip1::path_open(dir_fd, 0, "dir/nested/file\0", 0, 0, 0, 0) in test_interesting_paths()
50 wasip1::path_open(dir_fd, 0, "dir/nested/file/", 0, 0, 0, 0) in test_interesting_paths()
58 wasip1::path_open(dir_fd, 0, "dir/nested/file///", 0, 0, 0, 0) in test_interesting_paths()
65 file_fd = wasip1::path_open(dir_fd, 0, "dir/nested/", 0, 0, 0, 0) in test_interesting_paths()
74 file_fd = wasip1::path_open(dir_fd, 0, "dir/nested///", 0, 0, 0, 0) in test_interesting_paths()
85 wasip1::path_open(dir_fd, 0, &bad_path, 0, 0, 0, 0) in test_interesting_paths()
H A Dp1_nofollow_errors.rs15 wasip1::path_open(dir_fd, 0, "symlink", wasip1::OFLAGS_DIRECTORY, 0, 0, 0) in test_nofollow_errors()
23 wasip1::path_open(dir_fd, 0, "symlink", 0, 0, 0, 0) in test_nofollow_errors()
30 let file_fd = wasip1::path_open( in test_nofollow_errors()
51 let file_fd = wasip1::path_open(dir_fd, 0, "target", wasip1::OFLAGS_CREAT, 0, 0, 0) in test_nofollow_errors()
58 wasip1::path_open(dir_fd, 0, "symlink", wasip1::OFLAGS_DIRECTORY, 0, 0, 0) in test_nofollow_errors()
66 wasip1::path_open(dir_fd, 0, "symlink", 0, 0, 0, 0) in test_nofollow_errors()
73 wasip1::path_open( in test_nofollow_errors()
H A Dp1_path_rename.rs16 wasip1::path_open(dir_fd, 0, "source", wasip1::OFLAGS_DIRECTORY, 0, 0, 0) in test_path_rename()
22 let mut fd = wasip1::path_open(dir_fd, 0, "target", wasip1::OFLAGS_DIRECTORY, 0, 0, 0) in test_path_rename()
39 wasip1::path_open(dir_fd, 0, "source", wasip1::OFLAGS_DIRECTORY, 0, 0, 0) in test_path_rename()
45 fd = wasip1::path_open(dir_fd, 0, "target", wasip1::OFLAGS_DIRECTORY, 0, 0, 0) in test_path_rename()
87 wasip1::path_open(dir_fd, 0, "source", 0, 0, 0, 0) in test_path_rename()
93 fd = wasip1::path_open(dir_fd, 0, "target", 0, 0, 0, 0).expect("opening renamed path"); in test_path_rename()
111 wasip1::path_open(dir_fd, 0, "source", 0, 0, 0, 0).expect_err("opening a nonexistent path"), in test_path_rename()
116 fd = wasip1::path_open(dir_fd, 0, "target", 0, 0, 0, 0).expect("opening renamed path"); in test_path_rename()
H A Dp1_dangling_fd.rs10 let fd = wasip1::path_open(dir_fd, 0, "file", wasip1::OFLAGS_CREAT, 0, 0, 0).unwrap(); in test_dangling_fd()
12 let file_fd = wasip1::path_open(dir_fd, 0, "file", 0, 0, 0, 0).expect("failed to open"); in test_dangling_fd()
18 let fd = wasip1::path_open(dir_fd, 0, "file", wasip1::OFLAGS_CREAT, 0, 0, 0).unwrap(); in test_dangling_fd()
23 let subdir_fd = wasip1::path_open(dir_fd, 0, "subdir", wasip1::OFLAGS_DIRECTORY, 0, 0, 0) in test_dangling_fd()
H A Dp1_path_open_preopen.rs39 let _ = wasip1::path_open( in path_open_preopen()
51 let _ = wasip1::path_open(FIRST_PREOPEN, 0, ".", 0, 0, 0, 0).expect("open with empty rights"); in path_open_preopen()
54 let _ = wasip1::path_open(FIRST_PREOPEN, 0, ".", wasip1::OFLAGS_DIRECTORY, 0, 0, 0) in path_open_preopen()
58 let _ = wasip1::path_open( in path_open_preopen()
70 let err = wasip1::path_open( in path_open_preopen()
H A Dp1_fd_filestat_set.rs10 let file_fd = wasip1::path_open( in test_fd_filestat_set_size_rw()
42 let file_fd = wasip1::path_open(dir_fd, 0, "file", wasip1::OFLAGS_CREAT, 0, 0, 0) in test_fd_filestat_set_size_ro()
47 let file_fd = wasip1::path_open(dir_fd, 0, "file", 0, wasip1::RIGHTS_FD_READ, 0, 0) in test_fd_filestat_set_size_ro()
75 let file_fd = wasip1::path_open(dir_fd, 0, "file", wasip1::OFLAGS_CREAT, 0, 0, 0) in test_fd_filestat_set_times()
81 wasip1::path_open(dir_fd, 0, "file", 0, rights, 0, 0).expect("failed to create file"); in test_fd_filestat_set_times()
H A Dp1_path_link.rs59 wasip1::path_open(dir_fd, 0, "file", wasip1::OFLAGS_CREAT, 0, 0, 0).expect("create file"); in test_path_link()
64 let file_fd = wasip1::path_open(dir_fd, 0, "file", 0, 0, 0, 0).expect("open file"); in test_path_link()
70 let link_fd = wasip1::path_open(dir_fd, 0, "link", 0, 0, 0, 0).expect("open link"); in test_path_link()
78 let subdir_fd = wasip1::path_open(dir_fd, 0, "subdir", wasip1::OFLAGS_DIRECTORY, 0, 0, 0) in test_path_link()
82 let link_fd = wasip1::path_open(subdir_fd, 0, "link", 0, 0, 0, 0).expect("open link in subdir"); in test_path_link()
118 let subdir_fd = wasip1::path_open(dir_fd, 0, "subdir", wasip1::OFLAGS_DIRECTORY, 0, 0, 0) in test_path_link()
H A Dp1_path_open_lots.rs10 let f_readonly = wasip1::path_open(dir_fd, 0, "file", 0, wasip1::RIGHTS_FD_READ, 0, 0) in test_path_open_lots()
25 let f_readonly = wasip1::path_open(dir_fd, 0, "file", 0, wasip1::RIGHTS_FD_READ, 0, 0) in test_path_open_lots()
40 let f = wasip1::path_open( in test_path_open_lots()
63 let f = wasip1::path_open( in test_path_open_lots()
H A Dp1_renumber.rs12 let fd_from = wasip1::path_open( in test_renumber()
32 let fd_to = wasip1::path_open( in test_renumber()
79 let fd_file3 = wasip1::path_open( in test_renumber()
100 let fd_file4 = wasip1::path_open( in test_renumber()
H A Dp1_file_write.rs8 let file_fd = wasip1::path_open( in test_file_long_write()
47 let file_fd = wasip1::path_open(dir_fd, 0, filename, 0, wasip1::RIGHTS_FD_READ, 0, 0) in test_file_long_write()
88 let file_fd = wasip1::path_open( in test_file_long_write()
99 let file_fd = wasip1::path_open(dir_fd, 0, filename, 0, wasip1::RIGHTS_FD_READ, 0, 0) in test_file_long_write()
H A Dp1_symlink_create.rs8 let target_fd = wasip1::path_open(dir_fd, 0, "target", wasip1::OFLAGS_CREAT, 0, 0, 0) in create_symlink_to_file()
16 let target_file_via_symlink = wasip1::path_open( in create_symlink_to_file()
45 let target_dir_via_symlink = wasip1::path_open( in create_symlink_to_directory()
H A Dp1_path_open_dirfd_not_dir.rs8 let file_fd = wasip1::path_open(dir_fd, 0, "file", wasip1::OFLAGS_CREAT, 0, 0, 0) in test_dirfd_not_dir()
12 wasip1::path_open(file_fd, 0, "foo", wasip1::OFLAGS_CREAT, 0, 0, 0) in test_dirfd_not_dir()
H A Dp1_dangling_symlink.rs13 wasip1::path_open(dir_fd, 0, "symlink", wasip1::OFLAGS_DIRECTORY, 0, 0, 0) in test_dangling_symlink()
22 wasip1::path_open(dir_fd, 0, "symlink", 0, 0, 0, 0) in test_dangling_symlink()
H A Dp1_path_open_read_write.rs9 let f_readonly = wasip1::path_open(dir_fd, 0, "file", 0, wasip1::RIGHTS_FD_READ, 0, 0) in test_path_open_read_write()
49 let f_writeonly = wasip1::path_open(dir_fd, 0, "file", 0, wasip1::RIGHTS_FD_WRITE, 0, 0) in test_path_open_read_write()
81 let f_readwrite = wasip1::path_open( in test_path_open_read_write()
H A Dp1_fd_readdir.rs102 let file_fd = wasip1::path_open( in test_fd_readdir()
121 let nested_fd = wasip1::path_open(dir_fd, 0, "nested", 0, 0, 0, 0) in test_fd_readdir()
175 let file_fd = wasip1::path_open( in test_fd_readdir_lots()
212 let file_fd = wasip1::path_open( in test_fd_readdir_unicode_boundary()
245 let file_fd = wasip1::path_open( in test_fd_readdir_past_end()
H A Dp1_file_truncation.rs10 let file_fd = wasip1::path_open( in test_file_truncation()
36 let file_fd = wasip1::path_open( in test_file_truncation()
H A Dp1_file_unbuffered_write.rs8 let fd_read = wasip1::path_open( in test_file_unbuffered_write()
24 let fd_write = wasip1::path_open(dir_fd, 0, "file", 0, wasip1::RIGHTS_FD_WRITE, 0, 0) in test_file_unbuffered_write()
H A Dp1_path_filestat.rs13 let file_fd = wasip1::path_open( in test_path_filestat()
36 wasip1::path_open( in test_path_filestat()
H A Dp1_file_pread_pwrite.rs8 let file_fd = wasip1::path_open( in test_file_pread_pwrite()
133 let file_fd = wasip1::path_open( in test_file_pwrite_and_file_pos()
182 let file_fd = wasip1::path_open( in test_file_pwrite_and_append()
H A Dp1_file_seek_tell.rs8 let file_fd = wasip1::path_open( in test_file_seek_tell()
89 let file_fd = wasip1::path_open( in seek_and_o_append()
/wasmtime-44.0.1/crates/wiggle/tests/
H A Dtypenames.witx202 ;;; If `path_open` is set, includes the right to invoke
203 ;;; `path_open` with `fdflags::dsync`.
215 ;;; If `path_open` is set, includes the right to invoke
216 ;;; `path_open` with `fdflags::rsync` and `fdflags::dsync`.
231 ;;; If `path_open` is set, the right to invoke `path_open` with `oflags::creat`.
239 ;;; The right to invoke `path_open`.
240 $path_open
252 ;;; If `path_open` is set, includes the right to invoke `path_open` with `oflags::trunc`.
410 ;;; are created through this file descriptor, e.g., through `path_open`.
441 ;;; Open flags used by `path_open`.
/wasmtime-44.0.1/crates/wasi/witx/p0/
H A Dtypenames.witx202 ;;; If `rights::path_open` is set, includes the right to invoke
203 ;;; `path_open` with `fdflags::dsync`.
215 ;;; If `rights::path_open` is set, includes the right to invoke
216 ;;; `path_open` with `fdflags::rsync` and `fdflags::dsync`.
231 ;;; If `rights::path_open` is set, the right to invoke `path_open` with `oflags::creat`.
239 ;;; The right to invoke `path_open`.
240 $path_open
252 … ;;; If `rights::path_open` is set, includes the right to invoke `path_open` with `oflags::trunc`.
408 ;;; are created through this file descriptor, e.g., through `path_open`.
439 ;;; Open flags used by `path_open`.
/wasmtime-44.0.1/crates/wasi/witx/p1/
H A Dtypenames.witx202 ;;; If `path_open` is set, includes the right to invoke
203 ;;; `path_open` with `fdflags::dsync`.
215 ;;; If `path_open` is set, includes the right to invoke
216 ;;; `path_open` with `fdflags::rsync` and `fdflags::dsync`.
231 ;;; If `path_open` is set, the right to invoke `path_open` with `oflags::creat`.
239 ;;; The right to invoke `path_open`.
240 $path_open
252 ;;; If `path_open` is set, includes the right to invoke `path_open` with `oflags::trunc`.
412 ;;; are created through this file descriptor, e.g., through `path_open`.
443 ;;; Open flags used by `path_open`.
/wasmtime-44.0.1/crates/wasi-common/witx/preview1/
H A Dtypenames.witx202 ;;; If `path_open` is set, includes the right to invoke
203 ;;; `path_open` with `fdflags::dsync`.
215 ;;; If `path_open` is set, includes the right to invoke
216 ;;; `path_open` with `fdflags::rsync` and `fdflags::dsync`.
231 ;;; If `path_open` is set, the right to invoke `path_open` with `oflags::creat`.
239 ;;; The right to invoke `path_open`.
240 $path_open
252 ;;; If `path_open` is set, includes the right to invoke `path_open` with `oflags::trunc`.
412 ;;; are created through this file descriptor, e.g., through `path_open`.
443 ;;; Open flags used by `path_open`.
/wasmtime-44.0.1/crates/wasi-common/witx/preview0/
H A Dtypenames.witx202 ;;; If `rights::path_open` is set, includes the right to invoke
203 ;;; `path_open` with `fdflags::dsync`.
215 ;;; If `rights::path_open` is set, includes the right to invoke
216 ;;; `path_open` with `fdflags::rsync` and `fdflags::dsync`.
231 ;;; If `rights::path_open` is set, the right to invoke `path_open` with `oflags::creat`.
239 ;;; The right to invoke `path_open`.
240 $path_open
252 … ;;; If `rights::path_open` is set, includes the right to invoke `path_open` with `oflags::trunc`.
408 ;;; are created through this file descriptor, e.g., through `path_open`.
439 ;;; Open flags used by `path_open`.

123