Home
last modified time | relevance | path

Searched refs:OpenOptions (Results 1 – 25 of 63) sorted by relevance

123

/external/rust/crates/tokio/src/fs/
Dopen_options.rs72 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/
DFile.h46 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;
DFileCache.h31 lldb::user_id_t OpenFile(const FileSpec &file_spec, File::OpenOptions flags,
/external/crosvm/qcow_utils/src/
Dqcow_img.rs5 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()
Dqcow_utils.rs9 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/
Dnet.rs9 fs::{File, OpenOptions},
53 descriptor: OpenOptions::new() in new()
101 use std::fs::OpenOptions;
123 descriptor: OpenOptions::new() in new()
Dvsock.rs7 fs::{File, OpenOptions},
27 descriptor: OpenOptions::new() in new()
/external/llvm-project/lldb/source/Host/common/
DFile.cpp43 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/
Dtest_mount.rs45 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/
Ddirect_io.rs6 use std::fs::{File, OpenOptions};
20 let dev = OpenOptions::new().read(true).write(!read_only).open(path)?; in new()
Ddirect_irq.rs8 use std::fs::{File, OpenOptions};
38 let dev = OpenOptions::new() in new()
/external/crosvm/arch/src/
Dpstore.rs6 use std::fs::OpenOptions;
52 let file = OpenOptions::new() in create_memory_region()
/external/rust/crates/nix/test/sys/
Dtest_uio.rs6 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/
Dfork_remap.rs11 use std::fs::{read_link, File, OpenOptions};
23 OpenOptions::new() in open_path()
/external/rust/crates/same-file/src/
Dunix.rs1 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/
Drendernode.rs8 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/
Dio_ext.rs124 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()
During_source.rs234 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()
Dpoll_source.rs304 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/
Dfilesystem.rs16 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/
Dvsock.rs10 use std::fs::{File, OpenOptions};
33 fd: OpenOptions::new() in new()
/external/crosvm/x86_64/src/
Dsmbios.rs10 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/
Dudmabuf.rs7 use std::fs::{File, OpenOptions};
120 let fd = OpenOptions::new() in new()
/external/llvm-project/lldb/include/lldb/Core/
DStreamFile.h28 StreamFile(const char *path, File::OpenOptions options,
/external/llvm-project/lldb/source/Core/
DStreamFile.cpp32 StreamFile::StreamFile(const char *path, File::OpenOptions options, in StreamFile()

123