Home
last modified time | relevance | path

Searched refs:raw_fd (Results 1 – 14 of 14) sorted by relevance

/external/perfetto/src/base/
Dscoped_file_unittest.cc63 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/
Ducred.rs64 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()
Dlistener.rs117 .map(|raw_fd| unsafe { net::UnixListener::from_raw_fd(raw_fd) }) in into_std()
Dstream.rs553 .map(|raw_fd| unsafe { std::os::unix::net::UnixStream::from_raw_fd(raw_fd) }) in into_std()
/external/e2fsprogs/lib/ext2fs/
Dqcow2.c159 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/
Dtraced_perf.cc34 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/
Dlib.rs38 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/
Dmain.cc51 int raw_fd = static_cast<int>(strtol(sock_fd, &end, 10)); in GetListeningSocket() local
55 return raw_fd; in GetListeningSocket()
Dheapprofd_producer.cc886 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/
Dlistener.rs252 .map(|raw_fd| unsafe { std::net::TcpListener::from_raw_fd(raw_fd) }) in into_std()
Dstream.rs236 .map(|raw_fd| unsafe { std::net::TcpStream::from_raw_fd(raw_fd) }) in into_std()
/external/rust/crates/tokio/src/net/unix/datagram/
Dsocket.rs406 .map(|raw_fd| unsafe { std::os::unix::net::UnixDatagram::from_raw_fd(raw_fd) }) in into_std()
/external/rust/crates/tokio/src/net/
Dudp.rs243 .map(|raw_fd| unsafe { std::net::UdpSocket::from_raw_fd(raw_fd) }) in into_std()
/external/crosvm/vm_control/src/
Dlib.rs873 let raw_fd: Fd = Fd(fd.as_raw_descriptor()); in execute() localVariable
879 &raw_fd, in execute()