Searched refs:raw_fd (Results 1 – 9 of 9) sorted by relevance
/external/perfetto/src/base/ |
D | scoped_file_unittest.cc | 62 int raw_fd = open(kNullFilename, O_RDONLY); in TEST() local 63 ASSERT_GE(raw_fd, 0); in TEST() 65 ScopedFile scoped_file(raw_fd); in TEST() 66 ASSERT_EQ(raw_fd, scoped_file.get()); in TEST() 67 ASSERT_EQ(raw_fd, *scoped_file); in TEST() 71 ASSERT_NE(0, close(raw_fd)); // Should fail when closing twice. in TEST() 110 int raw_fd = open(kNullFilename, O_RDONLY); in TEST() local 111 ASSERT_GE(raw_fd, 0); in TEST() 113 ScopedFile scoped_file(raw_fd); in TEST() 114 ASSERT_EQ(raw_fd, scoped_file.release()); in TEST() [all …]
|
/external/e2fsprogs/lib/ext2fs/ |
D | qcow2.c | 159 int qcow2_write_raw_image(int qcow2_fd, int raw_fd, in qcow2_write_raw_image() argument 203 if (ext2fs_llseek(raw_fd, 0, SEEK_SET) < 0) { in qcow2_write_raw_image() 244 ret = qcow2_copy_data(qcow2_fd, raw_fd, offset, in qcow2_write_raw_image() 252 if (ext2fs_llseek(raw_fd, img.image_size - 1, SEEK_SET) < 0) { in qcow2_write_raw_image() 258 size = write(raw_fd, copy_buf, 1); in qcow2_write_raw_image()
|
/external/crosvm/sys_util/src/ |
D | lib.rs | 29 mod raw_fd; module 57 pub use crate::raw_fd::*; 306 pub fn validate_raw_fd(raw_fd: RawFd) -> Result<RawFd> { in validate_raw_fd() 310 let flags = unsafe { libc::fcntl(raw_fd, libc::F_GETFD) }; in validate_raw_fd() 318 let dup_fd = unsafe { libc::fcntl(raw_fd, libc::F_DUPFD_CLOEXEC, 0) }; in validate_raw_fd()
|
/external/perfetto/src/profiling/perf/ |
D | traced_perf.cc | 34 int raw_fd = static_cast<int>(strtol(sock_fd, &end, 10)); in GetRawInheritedListeningSocket() local 37 return raw_fd; in GetRawInheritedListeningSocket()
|
/external/perfetto/src/profiling/memory/ |
D | main.cc | 54 int raw_fd = static_cast<int>(strtol(sock_fd, &end, 10)); in GetListeningSocket() local 58 return raw_fd; in GetListeningSocket()
|
D | heapprofd_producer.cc | 817 int raw_fd = pending_process.shmem.fd(); in OnDataAvailable() local 820 sizeof(data_source.client_configuration), &raw_fd, 1)) { in OnDataAvailable()
|
/external/crosvm/src/ |
D | main.rs | 1177 let raw_fd = path in raw_fd_from_path() localVariable 1191 validate_raw_fd(raw_fd).map_err(ModifyUsbError::FailedFdValidate) in raw_fd_from_path()
|
D | linux.rs | 1012 let raw_fd = path in raw_fd_from_path() localVariable 1017 validate_raw_fd(raw_fd).map_err(Error::ValidateRawFd) in raw_fd_from_path()
|
/external/crosvm/devices/src/virtio/ |
D | wl.rs | 771 let raw_fd = unsafe { File::from_raw_fd(dup(fd.as_raw_fd())) }; in dmabuf() localVariable 772 let vfd_shm = SharedMemory::from_raw_fd(raw_fd).map_err(WlError::NewAlloc)?; in dmabuf()
|