/external/perfetto/src/base/ |
D | scoped_file_unittest.cc | 63 int raw_fd = open(kNullFilename, O_RDONLY); in TEST() local 64 ASSERT_GE(raw_fd, 0); in TEST() 66 ScopedFile scoped_file(raw_fd); in TEST() 67 ASSERT_EQ(raw_fd, scoped_file.get()); in TEST() 68 ASSERT_EQ(raw_fd, *scoped_file); in TEST() 72 ASSERT_NE(0, close(raw_fd)); // Should fail when closing twice. in TEST() 111 int raw_fd = open(kNullFilename, O_RDONLY); in TEST() local 112 ASSERT_GE(raw_fd, 0); in TEST() 114 ScopedFile scoped_file(raw_fd); in TEST() 115 ASSERT_EQ(raw_fd, scoped_file.release()); in TEST() [all …]
|
/external/rust/crates/tokio/src/net/unix/ |
D | ucred.rs | 64 let raw_fd = sock.as_raw_fd(); in get_peer_cred() localVariable 81 raw_fd, in get_peer_cred() 116 let raw_fd = sock.as_raw_fd(); in get_peer_cred() localVariable 121 let ret = getpeereid(raw_fd, uid.as_mut_ptr(), gid.as_mut_ptr()); in get_peer_cred() 148 let raw_fd = sock.as_raw_fd(); in get_peer_cred() localVariable 156 raw_fd, in get_peer_cred() 168 let ret = getpeereid(raw_fd, uid.as_mut_ptr(), gid.as_mut_ptr()); in get_peer_cred() 192 let raw_fd = sock.as_raw_fd(); in get_peer_cred() localVariable 195 let ret = libc::getpeerucred(raw_fd, &mut cred); in get_peer_cred()
|
D | listener.rs | 117 .map(|raw_fd| unsafe { net::UnixListener::from_raw_fd(raw_fd) }) in into_std()
|
D | stream.rs | 553 .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/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/crosvm/sys_util/src/ |
D | lib.rs | 38 mod raw_fd; module 67 pub use crate::raw_fd::*; 397 pub fn validate_raw_fd(raw_fd: RawFd) -> Result<RawFd> { in validate_raw_fd() 401 let flags = unsafe { libc::fcntl(raw_fd, libc::F_GETFD) }; in validate_raw_fd() 409 let dup_fd = unsafe { libc::fcntl(raw_fd, libc::F_DUPFD_CLOEXEC, 0) }; in validate_raw_fd()
|
/external/perfetto/src/profiling/memory/ |
D | main.cc | 51 int raw_fd = static_cast<int>(strtol(sock_fd, &end, 10)); in GetListeningSocket() local 55 return raw_fd; in GetListeningSocket()
|
D | heapprofd_producer.cc | 886 int raw_fd = pending_process.shmem.fd(); in OnDataAvailable() local 889 sizeof(data_source.client_configuration), &raw_fd, 1)) { in OnDataAvailable()
|
/external/rust/crates/tokio/src/net/tcp/ |
D | listener.rs | 252 .map(|raw_fd| unsafe { std::net::TcpListener::from_raw_fd(raw_fd) }) in into_std()
|
D | stream.rs | 236 .map(|raw_fd| unsafe { std::net::TcpStream::from_raw_fd(raw_fd) }) in into_std()
|
/external/rust/crates/tokio/src/net/unix/datagram/ |
D | socket.rs | 406 .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 | 243 .map(|raw_fd| unsafe { std::net::UdpSocket::from_raw_fd(raw_fd) }) in into_std()
|
/external/crosvm/vm_control/src/ |
D | lib.rs | 873 let raw_fd: Fd = Fd(fd.as_raw_descriptor()); in execute() localVariable 879 &raw_fd, in execute()
|