| /wasmtime-44.0.1/crates/test-programs/src/bin/ |
| H A D | p2_cli_hostcall_fuel.rs | 46 OpenFlags::empty(), in read() 71 OpenFlags::CREATE, in write() 84 OpenFlags::CREATE, in write_stream() 100 OpenFlags::CREATE, in write_stream_blocking() 185 OpenFlags::CREATE, in write_zeroes() 201 OpenFlags::CREATE, in write_stream_buffer_too_large() 217 OpenFlags::CREATE, in write_zeroes_buffer_too_large() 233 OpenFlags::empty(), in read_file_big()
|
| H A D | p3_file_write.rs | 3 Descriptor, DescriptorFlags, ErrorCode, OpenFlags, PathFlags, 39 OpenFlags::CREATE, in test_file_long_write() 71 OpenFlags::empty(), in test_file_long_write() 93 OpenFlags::CREATE, in test_file_long_write() 102 OpenFlags::empty(), in test_file_long_write()
|
| H A D | p3_readdir.rs | 3 Descriptor, DescriptorFlags, DescriptorType, DirectoryEntry, OpenFlags, PathFlags, 45 OpenFlags::CREATE, in test_readdir() 56 OpenFlags::DIRECTORY, in test_readdir() 81 OpenFlags::CREATE, in test_readdir_lots()
|
| H A D | p2_file_read_write.rs | 2 use test_programs::wasi::filesystem::types::{DescriptorFlags, OpenFlags, PathFlags}; 13 OpenFlags::CREATE, in main()
|
| H A D | p3_filesystem_file_read_write.rs | 2 use test_programs::p3::wasi::filesystem::types::{DescriptorFlags, OpenFlags, PathFlags}; 19 OpenFlags::CREATE, in run()
|
| /wasmtime-44.0.1/crates/wasi/src/p3/filesystem/ |
| H A D | mod.rs | 146 impl From<types::OpenFlags> for crate::filesystem::OpenFlags { implementation 147 fn from(flags: types::OpenFlags) -> Self { in from() 149 if flags.contains(types::OpenFlags::CREATE) { in from() 152 if flags.contains(types::OpenFlags::DIRECTORY) { in from() 155 if flags.contains(types::OpenFlags::EXCLUSIVE) { in from() 158 if flags.contains(types::OpenFlags::TRUNCATE) { in from()
|
| H A D | host.rs | 5 Filesize, MetadataHashValue, NewTimestamp, OpenFlags, PathFlags, 758 open_flags: OpenFlags, in open_at() argument
|
| /wasmtime-44.0.1/crates/wasi/src/p2/host/filesystem/ |
| H A D | sync.rs | 178 oflags: sync_filesystem::OpenFlags, in open_at() argument 468 impl From<sync_filesystem::OpenFlags> for async_filesystem::OpenFlags { implementation 469 fn from(other: sync_filesystem::OpenFlags) -> Self { in from() 471 if other.contains(sync_filesystem::OpenFlags::CREATE) { in from() 474 if other.contains(sync_filesystem::OpenFlags::DIRECTORY) { in from() 477 if other.contains(sync_filesystem::OpenFlags::EXCLUSIVE) { in from() 480 if other.contains(sync_filesystem::OpenFlags::TRUNCATE) { in from()
|
| /wasmtime-44.0.1/crates/wasi/src/ |
| H A D | filesystem.rs | 116 pub(crate) struct OpenFlags: usize { 928 oflags: OpenFlags, in open_at() argument 940 if oflags.contains(OpenFlags::CREATE) || oflags.contains(OpenFlags::TRUNCATE) { in open_at() 956 if oflags.contains(OpenFlags::CREATE) { in open_at() 957 if oflags.contains(OpenFlags::EXCLUSIVE) { in open_at() 967 if oflags.contains(OpenFlags::TRUNCATE) { in open_at() 997 if oflags.contains(OpenFlags::DIRECTORY) { in open_at() 998 if oflags.contains(OpenFlags::CREATE) in open_at() 999 || oflags.contains(OpenFlags::EXCLUSIVE) in open_at() 1000 || oflags.contains(OpenFlags::TRUNCATE) in open_at() [all …]
|
| H A D | p1.rs | 970 impl From<types::Oflags> for filesystem::OpenFlags { implementation 972 let mut out = filesystem::OpenFlags::empty(); in from() 974 out |= filesystem::OpenFlags::CREATE; in from() 977 out |= filesystem::OpenFlags::DIRECTORY; in from() 980 out |= filesystem::OpenFlags::EXCLUSIVE; in from() 983 out |= filesystem::OpenFlags::TRUNCATE; in from()
|
| /wasmtime-44.0.1/crates/wasi/src/p2/host/ |
| H A D | filesystem.rs | 294 oflags: types::OpenFlags, in open_at() argument 497 impl From<types::OpenFlags> for crate::filesystem::OpenFlags { implementation 498 fn from(flags: types::OpenFlags) -> Self { in from() 500 if flags.contains(types::OpenFlags::CREATE) { in from() 503 if flags.contains(types::OpenFlags::DIRECTORY) { in from() 506 if flags.contains(types::OpenFlags::EXCLUSIVE) { in from() 509 if flags.contains(types::OpenFlags::TRUNCATE) { in from()
|
| /wasmtime-44.0.1/crates/wasi-preview1-component-adapter/src/ |
| H A D | lib.rs | 2451 fn o_flags_from_oflags(flags: Oflags) -> filesystem::OpenFlags { in o_flags_from_oflags() argument 2452 let mut o_flags = filesystem::OpenFlags::empty(); in o_flags_from_oflags() 2454 o_flags |= filesystem::OpenFlags::CREATE; in o_flags_from_oflags() 2457 o_flags |= filesystem::OpenFlags::DIRECTORY; in o_flags_from_oflags() 2460 o_flags |= filesystem::OpenFlags::EXCLUSIVE; in o_flags_from_oflags() 2463 o_flags |= filesystem::OpenFlags::TRUNCATE; in o_flags_from_oflags()
|
| /wasmtime-44.0.1/examples/min-platform/embedding/src/ |
| H A D | wasi.rs | 784 _: wasi::filesystem::types::OpenFlags, in open_at() argument
|