/external/perfetto/src/base/ |
D | scoped_file_unittest.cc | 95 int raw_fd = OpenDevNull(); in TEST() local 96 ASSERT_GE(raw_fd, 0); in TEST() 98 ScopedFile scoped_file(raw_fd); in TEST() 99 ASSERT_EQ(raw_fd, scoped_file.get()); in TEST() 100 ASSERT_EQ(raw_fd, *scoped_file); in TEST() 104 ASSERT_NE(0, close(raw_fd)); // Should fail when closing twice. in TEST() 143 int raw_fd = OpenDevNull(); in TEST() local 144 ASSERT_GE(raw_fd, 0); in TEST() 146 ScopedFile scoped_file(raw_fd); in TEST() 147 ASSERT_EQ(raw_fd, scoped_file.release()); in TEST() [all …]
|
/external/rust/crates/tokio/src/net/unix/ |
D | ucred.rs | 65 let raw_fd = sock.as_raw_fd(); in get_peer_cred() localVariable 82 raw_fd, in get_peer_cred() 112 let raw_fd = sock.as_raw_fd(); in get_peer_cred() localVariable 124 raw_fd, in get_peer_cred() 154 let raw_fd = sock.as_raw_fd(); in get_peer_cred() localVariable 159 let ret = getpeereid(raw_fd, uid.as_mut_ptr(), gid.as_mut_ptr()); in get_peer_cred() 186 let raw_fd = sock.as_raw_fd(); in get_peer_cred() localVariable 194 raw_fd, in get_peer_cred() 206 let ret = getpeereid(raw_fd, uid.as_mut_ptr(), gid.as_mut_ptr()); in get_peer_cred() 230 let raw_fd = sock.as_raw_fd(); in get_peer_cred() localVariable [all …]
|
D | listener.rs | 141 .map(|raw_fd| unsafe { net::UnixListener::from_raw_fd(raw_fd) }) in into_std()
|
D | stream.rs | 796 .map(|raw_fd| unsafe { std::os::unix::net::UnixStream::from_raw_fd(raw_fd) }) in into_std()
|
/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/rust/crates/tokio/src/net/tcp/ |
D | socket.rs | 594 let raw_fd = self.inner.into_raw_fd(); in connect() localVariable 595 unsafe { mio::net::TcpStream::from_raw_fd(raw_fd) } in connect() 650 let raw_fd = self.inner.into_raw_fd(); in listen() localVariable 651 unsafe { mio::net::TcpListener::from_raw_fd(raw_fd) } in listen() 703 let raw_fd = std_stream.into_raw_fd(); in from_std_stream() localVariable 704 unsafe { TcpSocket::from_raw_fd(raw_fd) } in from_std_stream()
|
D | listener.rs | 273 .map(|raw_fd| unsafe { std::net::TcpListener::from_raw_fd(raw_fd) }) in into_std() 291 .map(|raw_fd| unsafe { std::net::TcpListener::from_raw_fd(raw_fd) }) in into_std()
|
D | stream.rs | 250 .map(|raw_fd| unsafe { std::net::TcpStream::from_raw_fd(raw_fd) }) in into_std() 268 .map(|raw_fd| unsafe { std::net::TcpStream::from_raw_fd(raw_fd) }) in into_std()
|
/external/perfetto/src/profiling/perf/ |
D | traced_perf.cc | 35 int raw_fd = static_cast<int>(strtol(sock_fd, &end, 10)); in GetRawInheritedListeningSocket() local 38 return raw_fd; in GetRawInheritedListeningSocket()
|
/external/perfetto/src/profiling/memory/ |
D | heapprofd.cc | 53 int raw_fd = static_cast<int>(strtol(sock_fd, &end, 10)); in GetListeningSocket() local 57 return raw_fd; in GetListeningSocket()
|
D | heapprofd_producer.cc | 888 int raw_fd = pending_process.shmem.fd(); in OnDataAvailable() local 891 sizeof(data_source.client_configuration), &raw_fd, 1)) { in OnDataAvailable()
|
/external/crosvm/rutabaga_gfx/src/rutabaga_os/sys/unix/ |
D | shm.rs | 38 let raw_fd = memfd_create( in new() localVariable 42 let fd = unsafe { OwnedFd::from_raw_fd(raw_fd) }; in new()
|
/external/crosvm/vm_control/src/sys/ |
D | unix.rs | 188 let raw_fd: Descriptor = Descriptor(fd.as_raw_descriptor()); in execute() localVariable 190 match vm.add_fd_mapping(slot, mem_offset, size, &raw_fd, file_offset, prot) { in execute()
|
/external/crosvm/base/src/sys/unix/ |
D | mod.rs | 489 pub fn validate_raw_fd(raw_fd: RawFd) -> Result<RawFd> { in validate_raw_fd() 493 let flags = unsafe { libc::fcntl(raw_fd, libc::F_GETFD) }; in validate_raw_fd() 501 let dup_fd = unsafe { libc::fcntl(raw_fd, libc::F_DUPFD_CLOEXEC, 0) }; in validate_raw_fd()
|
/external/rust/crates/tokio/src/net/unix/datagram/ |
D | socket.rs | 502 .map(|raw_fd| unsafe { std::os::unix::net::UnixDatagram::from_raw_fd(raw_fd) }) in into_std()
|
/external/rust/crates/tokio/src/net/ |
D | udp.rs | 256 .map(|raw_fd| unsafe { std::net::UdpSocket::from_raw_fd(raw_fd) }) in into_std()
|
/external/crosvm/devices/src/virtio/vhost/user/ |
D | proxy.rs | 669 let raw_fd = R::get_ep(self).as_raw_descriptor(); in check_sibling_connection() localVariable 673 raw_fd, in check_sibling_connection()
|