/third_party/rust/crates/rustix/src/net/ |
D | sockopt.rs | 35 backend::net::syscalls::sockopt::get_socket_type(fd.as_fd()) in get_socket_type() 57 backend::net::syscalls::sockopt::set_socket_reuseaddr(fd.as_fd(), value) in set_socket_reuseaddr() 79 backend::net::syscalls::sockopt::set_socket_broadcast(fd.as_fd(), broadcast) in set_socket_broadcast() 101 backend::net::syscalls::sockopt::get_socket_broadcast(fd.as_fd()) in get_socket_broadcast() 123 backend::net::syscalls::sockopt::set_socket_linger(fd.as_fd(), linger) in set_socket_linger() 145 backend::net::syscalls::sockopt::get_socket_linger(fd.as_fd()) in get_socket_linger() 160 backend::net::syscalls::sockopt::set_socket_passcred(fd.as_fd(), passcred) in set_socket_passcred() 175 backend::net::syscalls::sockopt::get_socket_passcred(fd.as_fd()) in get_socket_passcred() 203 backend::net::syscalls::sockopt::set_socket_timeout(fd.as_fd(), id, timeout) in set_socket_timeout() 226 backend::net::syscalls::sockopt::get_socket_timeout(fd.as_fd(), id) in get_socket_timeout() [all …]
|
D | socket.rs | 85 _bind(sockfd.as_fd(), addr) in bind() 109 _bind_any(sockfd.as_fd(), addr) in bind_any() 137 backend::net::syscalls::bind_v4(sockfd.as_fd(), addr) in bind_v4() 156 backend::net::syscalls::bind_v6(sockfd.as_fd(), addr) in bind_v6() 176 backend::net::syscalls::bind_unix(sockfd.as_fd(), addr) in bind_unix() 192 _connect(sockfd.as_fd(), addr) in connect() 216 _connect_any(sockfd.as_fd(), addr) in connect_any() 244 backend::net::syscalls::connect_v4(sockfd.as_fd(), addr) in connect_v4() 263 backend::net::syscalls::connect_v6(sockfd.as_fd(), addr) in connect_v6() 283 backend::net::syscalls::connect_unix(sockfd.as_fd(), addr) in connect_unix() [all …]
|
D | send_recv.rs | 25 backend::net::syscalls::recv(fd.as_fd(), buf, flags) in recv() 42 backend::net::syscalls::send(fd.as_fd(), buf, flags) in send() 64 backend::net::syscalls::recvfrom(fd.as_fd(), buf, flags) in recvfrom() 86 _sendto(fd.as_fd(), buf, flags, addr) in sendto() 120 _sendto_any(fd.as_fd(), buf, flags, addr) in sendto_any() 158 backend::net::syscalls::sendto_v4(fd.as_fd(), buf, flags, addr) in sendto_v4() 182 backend::net::syscalls::sendto_v6(fd.as_fd(), buf, flags, addr) in sendto_v6() 207 backend::net::syscalls::sendto_unix(fd.as_fd(), buf, flags, addr) in sendto_unix()
|
/third_party/rust/crates/rustix/tests/io/ |
D | poll.rs | 14 assert_eq!(poll_fds[0].as_fd().as_raw_fd(), reader.as_fd().as_raw_fd()); in test_poll() 20 assert_eq!(poll_fds[0].as_fd().as_raw_fd(), reader.as_fd().as_raw_fd()); in test_poll() 29 assert_eq!(poll_fds[0].as_fd().as_raw_fd(), reader.as_fd().as_raw_fd()); in test_poll() 40 assert_eq!(poll_fds[0].as_fd().as_raw_fd(), reader.as_fd().as_raw_fd()); in test_poll() 46 assert_eq!(poll_fds[0].as_fd().as_raw_fd(), reader.as_fd().as_raw_fd()); in test_poll() 54 assert_eq!(poll_fd.as_fd().as_raw_fd(), 777); in test_poll_fd_set_fd() 58 assert_eq!(poll_fd.as_fd().as_raw_fd(), 888); in test_poll_fd_set_fd()
|
/third_party/rust/crates/rustix/src/fs/ |
D | at.rs | 63 backend::fs::syscalls::openat(dirfd.as_fd(), path, oflags, create_mode) in openat() 83 path.into_with_c_str(|path| _readlinkat(dirfd.as_fd(), path, reuse.into())) in readlinkat() 94 let nread = backend::fs::syscalls::readlinkat(dirfd.as_fd(), path, &mut buffer)?; in _readlinkat() 117 path.into_with_c_str(|path| backend::fs::syscalls::mkdirat(dirfd.as_fd(), path, mode)) in mkdirat() 140 old_dirfd.as_fd(), in linkat() 142 new_dirfd.as_fd(), in linkat() 164 path.into_with_c_str(|path| backend::fs::syscalls::unlinkat(dirfd.as_fd(), path, flags)) in unlinkat() 186 old_dirfd.as_fd(), in renameat() 188 new_dirfd.as_fd(), in renameat() 215 old_dirfd.as_fd(), in renameat_with() [all …]
|
D | fd.rs | 92 backend::fs::syscalls::seek(fd.as_fd(), pos) in seek() 110 backend::fs::syscalls::tell(fd.as_fd()) in tell() 127 backend::fs::syscalls::fchmod(fd.as_fd(), mode) in fchmod() 141 backend::fs::syscalls::fchown(fd.as_fd(), owner, group) in fchown() 159 backend::fs::syscalls::fstat(fd.as_fd()) in fstat() 181 backend::fs::syscalls::fstatfs(fd.as_fd()) in fstatfs() 207 backend::fs::syscalls::fstatvfs(fd.as_fd()) in fstatvfs() 220 backend::fs::syscalls::futimens(fd.as_fd(), times) in futimens() 250 backend::fs::syscalls::fallocate(fd.as_fd(), mode, offset, len) in fallocate() 261 _is_file_read_write(fd.as_fd()) in is_file_read_write() [all …]
|
D | fcntl.rs | 28 backend::fs::syscalls::fcntl_getfl(fd.as_fd()) in fcntl_getfl() 42 backend::fs::syscalls::fcntl_setfl(fd.as_fd(), flags) in fcntl_setfl() 60 backend::fs::syscalls::fcntl_get_seals(fd.as_fd()) in fcntl_get_seals() 86 backend::fs::syscalls::fcntl_add_seals(fd.as_fd(), seals) in fcntl_add_seals()
|
/third_party/rust/crates/rustix/src/termios/ |
D | tc.rs | 25 backend::termios::syscalls::tcgetattr(fd.as_fd()) in tcgetattr() 40 backend::termios::syscalls::tcgetwinsize(fd.as_fd()) in tcgetwinsize() 57 backend::termios::syscalls::tcgetpgrp(fd.as_fd()) in tcgetpgrp() 74 backend::termios::syscalls::tcsetpgrp(fd.as_fd(), pid) in tcsetpgrp() 96 backend::termios::syscalls::tcsetattr(fd.as_fd(), optional_actions, termios) in tcsetattr() 118 backend::termios::syscalls::tcsendbreak(fd.as_fd()) in tcsendbreak() 133 backend::termios::syscalls::tcdrain(fd.as_fd()) in tcdrain() 150 backend::termios::syscalls::tcflush(fd.as_fd(), queue_selector) in tcflush() 166 backend::termios::syscalls::tcflow(fd.as_fd(), action) in tcflow() 181 backend::termios::syscalls::tcgetsid(fd.as_fd()) in tcgetsid() [all …]
|
/third_party/rust/crates/rustix/src/io/ |
D | read_write.rs | 30 backend::io::syscalls::read(fd.as_fd(), buf) in read() 45 backend::io::syscalls::write(fd.as_fd(), buf) in write() 60 backend::io::syscalls::pread(fd.as_fd(), buf, offset) in pread() 79 backend::io::syscalls::pwrite(fd.as_fd(), buf, offset) in pwrite() 94 backend::io::syscalls::readv(fd.as_fd(), bufs) in readv() 109 backend::io::syscalls::writev(fd.as_fd(), bufs) in writev() 122 backend::io::syscalls::preadv(fd.as_fd(), bufs, offset) in preadv() 139 backend::io::syscalls::pwritev(fd.as_fd(), bufs, offset) in pwritev() 158 backend::io::syscalls::preadv2(fd.as_fd(), bufs, offset, flags) in preadv2() 177 backend::io::syscalls::pwritev2(fd.as_fd(), bufs, offset, flags) in pwritev2()
|
D | ioctl.rs | 19 backend::io::syscalls::ioctl_tiocexcl(fd.as_fd()) in ioctl_tiocexcl() 32 backend::io::syscalls::ioctl_tiocnxcl(fd.as_fd()) in ioctl_tiocnxcl() 50 backend::io::syscalls::ioctl_fioclex(fd.as_fd()) in ioctl_fioclex() 64 backend::io::syscalls::ioctl_fionbio(fd.as_fd(), value) in ioctl_fionbio() 82 backend::io::syscalls::ioctl_fionread(fd.as_fd()) in ioctl_fionread() 90 backend::io::syscalls::ioctl_blksszget(fd.as_fd()) in ioctl_blksszget() 98 backend::io::syscalls::ioctl_blkpbszget(fd.as_fd()) in ioctl_blkpbszget()
|
D | procfs.rs | 223 check_proc_entry(Kind::Proc, proc.as_fd(), None).map_err(|_err| io::Errno::NOTSUP)?; in proc() 227 .map(|(fd, stat)| (fd.as_fd(), stat)) in proc() 252 let proc_self_stat = check_proc_entry(Kind::Pid, proc_self.as_fd(), Some(proc_stat)) in proc_self() 257 .map(|(owned, stat)| (owned.as_fd(), stat)) in proc_self() 283 check_proc_entry(Kind::Fd, proc_self_fd.as_fd(), Some(proc_stat)) in proc_self_fd() 288 .map(|(owned, _stat)| owned.as_fd()) in proc_self_fd() 320 check_proc_entry(Kind::Fd, proc_self_fdinfo.as_fd(), Some(proc_stat)) in proc_self_fdinfo() 325 .map(|(owned, stat)| (owned.as_fd(), stat)) in proc_self_fdinfo() 340 _proc_self_fdinfo(fd.as_fd()) in proc_self_fdinfo_fd() 447 check_proc_entry_with_stat(Kind::File, file.as_fd(), file_stat, Some(proc_stat))?; in open_and_check_file()
|
D | fcntl.rs | 27 backend::io::syscalls::fcntl_getfd(fd.as_fd()) in fcntl_getfd() 41 backend::io::syscalls::fcntl_setfd(fd.as_fd(), flags) in fcntl_setfd() 63 backend::io::syscalls::fcntl_dupfd_cloexec(fd.as_fd(), min) in fcntl_dupfd_cloexec() 84 backend::io::syscalls::fcntl_dupfd(fd.as_fd(), min) in fcntl_dupfd()
|
D | dup.rs | 33 backend::io::syscalls::dup(fd.as_fd()) in dup() 60 backend::io::syscalls::dup2(fd.as_fd(), new) in dup2() 79 backend::io::syscalls::dup3(fd.as_fd(), new, flags) in dup3()
|
D | pipe.rs | 97 backend::io::syscalls::splice(fd_in.as_fd(), off_in, fd_out.as_fd(), off_out, len, flags) in splice() 129 backend::io::syscalls::vmsplice(fd.as_fd(), bufs, flags) in vmsplice()
|
/third_party/rust/crates/io-lifetimes/src/ |
D | impls_tokio.rs | 19 fn as_fd(&self) -> BorrowedFd<'_> { in as_fd() method 67 fn as_fd(&self) -> BorrowedFd<'_> { in as_fd() method 83 fn as_fd(&self) -> BorrowedFd<'_> { in as_fd() method 99 fn as_fd(&self) -> BorrowedFd<'_> { in as_fd() method 115 fn as_fd(&self) -> BorrowedFd { in as_fd() method 131 fn as_fd(&self) -> BorrowedFd<'_> { in as_fd() method 147 fn as_fd(&self) -> BorrowedFd<'_> { in as_fd() method 163 fn as_fd(&self) -> BorrowedFd<'_> { in as_fd() method 171 fn as_fd(&self) -> BorrowedFd<'_> { in as_fd() method 179 fn as_fd(&self) -> BorrowedFd<'_> { in as_fd() method [all …]
|
D | impls_std.rs | 23 fn as_fd(&self) -> BorrowedFd<'_> { in as_fd() method 47 fn as_fd(&self) -> BorrowedFd<'_> { in as_fd() method 135 fn as_fd(&self) -> BorrowedFd<'_> { in as_fd() method 215 fn as_fd(&self) -> BorrowedFd<'_> { in as_fd() method 295 fn as_fd(&self) -> BorrowedFd<'_> { in as_fd() method 375 fn as_fd(&self) -> BorrowedFd<'_> { in as_fd() method 455 fn as_fd(&self) -> BorrowedFd<'_> { in as_fd() method 471 fn as_fd(&self) -> BorrowedFd<'_> { in as_fd() method 487 fn as_fd(&self) -> BorrowedFd<'_> { in as_fd() method 503 fn as_fd(&self) -> BorrowedFd<'_> { in as_fd() method [all …]
|
D | traits.rs | 33 fn as_fd(&self) -> BorrowedFd<'_>; in as_fd() method 242 fn as_fd(&self) -> BorrowedFd<'_> { in as_fd() method 243 T::as_fd(self) in as_fd() 251 fn as_fd(&self) -> BorrowedFd<'_> { in as_fd() method 252 T::as_fd(self) in as_fd()
|
D | impls_async_std.rs | 26 fn as_fd(&self) -> BorrowedFd<'_> { in as_fd() method 106 fn as_fd(&self) -> BorrowedFd<'_> { in as_fd() method 186 fn as_fd(&self) -> BorrowedFd<'_> { in as_fd() method 266 fn as_fd(&self) -> BorrowedFd<'_> { in as_fd() method 346 fn as_fd(&self) -> BorrowedFd<'_> { in as_fd() method 362 fn as_fd(&self) -> BorrowedFd<'_> { in as_fd() method 378 fn as_fd(&self) -> BorrowedFd<'_> { in as_fd() method 394 fn as_fd(&self) -> BorrowedFd<'_> { in as_fd() method 434 fn as_fd(&self) -> BorrowedFd<'_> { in as_fd() method 474 fn as_fd(&self) -> BorrowedFd<'_> { in as_fd() method
|
D | impls_mio.rs | 19 fn as_fd(&self) -> BorrowedFd<'_> { in as_fd() method 99 fn as_fd(&self) -> BorrowedFd<'_> { in as_fd() method 179 fn as_fd(&self) -> BorrowedFd<'_> { in as_fd() method 259 fn as_fd(&self) -> BorrowedFd<'_> { in as_fd() method 299 fn as_fd(&self) -> BorrowedFd<'_> { in as_fd() method 339 fn as_fd(&self) -> BorrowedFd<'_> { in as_fd() method 379 fn as_fd(&self) -> BorrowedFd<'_> { in as_fd() method 419 fn as_fd(&self) -> BorrowedFd<'_> { in as_fd() method
|
/third_party/rust/crates/rustix/src/io/fd/ |
D | owned.rs | 216 fn as_fd(&self) -> BorrowedFd<'_>; in as_fd() method 222 fn as_fd(&self) -> BorrowedFd<'_> { in as_fd() method 223 T::as_fd(self) in as_fd() 230 fn as_fd(&self) -> BorrowedFd<'_> { in as_fd() method 231 T::as_fd(self) in as_fd() 238 fn as_fd(&self) -> BorrowedFd<'_> { in as_fd() method 246 fn as_fd(&self) -> BorrowedFd<'_> { in as_fd() method
|
/third_party/rust/crates/rustix/src/backend/linux_raw/io/ |
D | epoll.rs | 155 let raw_fd = target.as_fd().as_raw_fd(); in add() 158 self.epoll_fd.as_fd(), in add() 179 let raw_fd = target.as_fd().as_raw_fd(); in mod_() 185 self.epoll_fd.as_fd(), in mod_() 204 let raw_fd = target.as_fd().as_raw_fd(); in del() 205 epoll_del(self.epoll_fd.as_fd(), raw_fd)?; in del() 226 self.epoll_fd.as_fd(), in wait() 265 fn as_fd(&self) -> BorrowedFd<'_> { in as_fd() method 266 self.epoll_fd.as_fd() in as_fd()
|
D | poll_fd.rs | 50 Self::from_borrowed_fd(fd.as_fd(), events) in new() 56 self.fd = fd.as_fd(); in set_fd() 90 fn as_fd(&self) -> BorrowedFd<'_> { in as_fd() method 91 self.fd.as_fd() in as_fd()
|
/third_party/rust/crates/io-lifetimes/examples/ |
D | flexible-apis.rs | 29 let _ = fd.as_fd(); in use_fd_b() 35 let _ = fd.as_fd(); in use_fd_c() 70 use_fd_a(f.as_fd()); in main() 76 use_fd_b(f.as_fd()); in main() 82 use_fd_c(f.as_fd()); in main()
|
/third_party/rust/crates/rustix/src/backend/libc/io/ |
D | epoll.rs | 157 let raw_fd = target.as_fd().as_raw_fd(); in add() 160 self.epoll_fd.as_fd().as_raw_fd(), in add() 182 let raw_fd = target.as_fd().as_raw_fd(); in mod_() 188 self.epoll_fd.as_fd().as_raw_fd(), in mod_() 208 let raw_fd = target.as_fd().as_raw_fd(); in del() 210 self.epoll_fd.as_fd().as_raw_fd(), in del() 235 self.epoll_fd.as_fd().as_raw_fd(), in wait() 274 fn as_fd(&self) -> BorrowedFd<'_> { in as_fd() method 275 self.epoll_fd.as_fd() in as_fd()
|
/third_party/rust/crates/rustix/tests/fs/ |
D | openat2.rs | 15 match openat2(dirfd.as_fd(), &path, oflags, mode, resolve) { in openat2_more() 89 &format!("/proc/self/fd/{}", test.as_fd().as_raw_fd()), in test_openat2() 97 &format!("/proc/self/fd/{}", test.as_fd().as_raw_fd()), in test_openat2() 105 &format!("/proc/self/fd/{}", test.as_fd().as_raw_fd()), in test_openat2()
|