/external/rust/crates/tokio/src/fs/ |
D | open_options.rs | 72 pub struct OpenOptions(std::fs::OpenOptions); struct 74 impl OpenOptions { impl 91 pub fn new() -> OpenOptions { in new() 92 OpenOptions(std::fs::OpenOptions::new()) in new() 120 pub fn read(&mut self, read: bool) -> &mut OpenOptions { in read() argument 150 pub fn write(&mut self, write: bool) -> &mut OpenOptions { in write() argument 209 pub fn append(&mut self, append: bool) -> &mut OpenOptions { in append() argument 242 pub fn truncate(&mut self, truncate: bool) -> &mut OpenOptions { in truncate() argument 278 pub fn create(&mut self, create: bool) -> &mut OpenOptions { in create() argument 321 pub fn create_new(&mut self, create_new: bool) -> &mut OpenOptions { in create_new() argument [all …]
|
/external/llvm-project/lldb/include/lldb/Host/ |
D | File.h | 46 enum OpenOptions : uint32_t { enum 62 static mode_t ConvertOpenOptionsForPOSIXOpen(OpenOptions open_options); 63 static llvm::Expected<OpenOptions> GetOptionsFromMode(llvm::StringRef mode); 66 GetStreamOpenModeFromOptions(OpenOptions options); 314 virtual llvm::Expected<OpenOptions> GetOptions() const; 384 NativeFile(int fd, OpenOptions options, bool transfer_ownership) in NativeFile() 409 llvm::Expected<OpenOptions> GetOptions() const override; 427 OpenOptions m_options;
|
D | FileCache.h | 31 lldb::user_id_t OpenFile(const FileSpec &file_spec, File::OpenOptions flags,
|
/external/crosvm/qcow_utils/src/ |
D | qcow_img.rs | 5 use std::fs::OpenOptions; 114 let file = match OpenOptions::new().read(true).open(file_path) { in show_header() 150 let file = match OpenOptions::new().read(true).open(file_path) { in show_l1_table() 169 let file = match OpenOptions::new().read(true).open(file_path) { in show_l2_table() 193 let file = match OpenOptions::new().read(true).open(file_path) { in show_ref_table() 212 let file = match OpenOptions::new().read(true).open(file_path) { in show_ref_block() 237 let file = match OpenOptions::new().read(true).write(true).open(file_path) { in dd() 247 let mut src_file = match OpenOptions::new().read(true).open(source_path) { in dd() 285 let src_file = match OpenOptions::new().read(true).open(src_path) { in convert() 293 let dst_file = match OpenOptions::new() in convert()
|
D | qcow_utils.rs | 9 use std::fs::OpenOptions; 28 let file = match OpenOptions::new() in create_qcow_with_size() 57 let raw_image = match OpenOptions::new().read(true).write(true).open(file_path) { in expand_disk_image()
|
/external/crosvm/vhost/src/ |
D | net.rs | 9 fs::{File, OpenOptions}, 53 descriptor: OpenOptions::new() in new() 101 use std::fs::OpenOptions; 123 descriptor: OpenOptions::new() in new()
|
D | vsock.rs | 7 fs::{File, OpenOptions}, 27 descriptor: OpenOptions::new() in new()
|
/external/llvm-project/lldb/source/Host/common/ |
D | File.cpp | 43 File::GetStreamOpenModeFromOptions(File::OpenOptions options) { in GetStreamOpenModeFromOptions() 75 Expected<File::OpenOptions> File::GetOptionsFromMode(llvm::StringRef mode) { in GetOptionsFromMode() 76 OpenOptions opts = in GetOptionsFromMode() 77 llvm::StringSwitch<OpenOptions>(mode) in GetOptionsFromMode() 89 .Default(OpenOptions()); in GetOptionsFromMode() 228 Expected<File::OpenOptions> File::GetOptions() const { in GetOptions() 249 Expected<File::OpenOptions> NativeFile::GetOptions() const { return m_options; } in GetOptions() 324 m_options = OpenOptions(0); in Close() 733 mode_t File::ConvertOpenOptionsForPOSIXOpen(OpenOptions open_options) { in ConvertOpenOptionsForPOSIXOpen()
|
/external/rust/crates/nix/test/ |
D | test_mount.rs | 45 fs::OpenOptions::new() in test_mount_tmpfs_without_flags_allows_rwx() 117 fs::OpenOptions::new() in test_mount_noexec_disallows_exec() 157 fs::OpenOptions::new() in test_mount_bind() 195 fs::OpenOptions::new() in setup_namespaces()
|
/external/crosvm/devices/src/ |
D | direct_io.rs | 6 use std::fs::{File, OpenOptions}; 20 let dev = OpenOptions::new().read(true).write(!read_only).open(path)?; in new()
|
D | direct_irq.rs | 8 use std::fs::{File, OpenOptions}; 38 let dev = OpenOptions::new() in new()
|
/external/crosvm/arch/src/ |
D | pstore.rs | 6 use std::fs::OpenOptions; 52 let file = OpenOptions::new() in create_memory_region()
|
/external/rust/crates/nix/test/sys/ |
D | test_uio.rs | 6 use std::fs::{OpenOptions}; 124 let mut file = OpenOptions::new().write(true).read(true).create(true) in test_pread() 153 let mut file = OpenOptions::new().write(true).read(true).create(true) in test_pwritev() 177 let mut file = OpenOptions::new().read(true).write(true).create(true) in test_preadv()
|
/external/minijail/rust/minijail/tests/ |
D | fork_remap.rs | 11 use std::fs::{read_link, File, OpenOptions}; 23 OpenOptions::new() in open_path()
|
/external/rust/crates/same-file/src/ |
D | unix.rs | 1 use std::fs::{File, OpenOptions}; 61 Handle::from_file(OpenOptions::new().read(true).open(p)?) in from_path()
|
/external/crosvm/rutabaga_gfx/src/rutabaga_gralloc/ |
D | rendernode.rs | 8 use std::fs::{File, OpenOptions}; 99 if let Ok(fd) = OpenOptions::new().read(true).write(true).open(path) { in open_device()
|
/external/crosvm/cros_async/src/ |
D | io_ext.rs | 124 use std::fs::{File, OpenOptions}; 269 let f = OpenOptions::new().write(true).open("/dev/null").unwrap(); in writevec() 274 let f = OpenOptions::new().write(true).open("/dev/null").unwrap(); in writevec() 335 let f = OpenOptions::new().write(true).open("/dev/null").unwrap(); in writemem() 340 let f = OpenOptions::new().write(true).open("/dev/null").unwrap(); in writemem()
|
D | uring_source.rs | 234 use std::fs::{File, OpenOptions}; 475 let f = OpenOptions::new() in fallocate() 528 let f = OpenOptions::new() in writemem() 550 let f = OpenOptions::new() in writevec() 571 let f = OpenOptions::new() in writemulti()
|
D | poll_source.rs | 304 use std::fs::{File, OpenOptions}; 330 let f = OpenOptions::new().write(true).open("/dev/null").unwrap(); in writevec() 351 let f = OpenOptions::new() in fallocate()
|
/external/crosvm/fuse/src/ |
D | filesystem.rs | 16 FsOptions, IoctlFlags, IoctlIovec, OpenOptions, RemoveMappingOne, SetattrValid, ROOT_ID, 661 ) -> io::Result<(Option<Self::Handle>, OpenOptions)> { in open() argument 663 Ok((None, OpenOptions::empty())) in open() 688 ) -> io::Result<(Entry, Option<Self::Handle>, OpenOptions)> { in create() argument 963 ) -> io::Result<(Option<Self::Handle>, OpenOptions)> { in opendir() argument 965 Ok((None, OpenOptions::empty())) in opendir()
|
/external/rust/crates/vmm_vhost/src/vhost_kern/ |
D | vsock.rs | 10 use std::fs::{File, OpenOptions}; 33 fd: OpenOptions::new() in new()
|
/external/crosvm/x86_64/src/ |
D | smbios.rs | 10 use std::fs::OpenOptions; 219 OpenOptions::new() in setup_smbios_from_file() 229 OpenOptions::new() in setup_smbios_from_file()
|
/external/crosvm/devices/src/virtio/gpu/ |
D | udmabuf.rs | 7 use std::fs::{File, OpenOptions}; 120 let fd = OpenOptions::new() in new()
|
/external/llvm-project/lldb/include/lldb/Core/ |
D | StreamFile.h | 28 StreamFile(const char *path, File::OpenOptions options,
|
/external/llvm-project/lldb/source/Core/ |
D | StreamFile.cpp | 32 StreamFile::StreamFile(const char *path, File::OpenOptions options, in StreamFile()
|