Home
last modified time | relevance | path

Searched refs:into_raw_fd (Results 1 – 25 of 25) sorted by relevance

/third_party/rust/crates/io-lifetimes/src/
Dimpls_mio.rs36 unsafe { OwnedFd::from_raw_fd(self.into_raw_fd()) } in into_fd()
44 unsafe { Self::from_raw_fd(owned.into_raw_fd()) } in from()
68 unsafe { Self::from_raw_fd(owned.into_raw_fd()) } in from_fd()
76 unsafe { Self::from_raw_fd(owned.into_raw_fd()) } in from()
116 unsafe { OwnedFd::from_raw_fd(self.into_raw_fd()) } in into_fd()
124 unsafe { Self::from_raw_fd(owned.into_raw_fd()) } in from()
148 unsafe { Self::from_raw_fd(owned.into_raw_fd()) } in from_fd()
156 unsafe { Self::from_raw_fd(owned.into_raw_fd()) } in from()
196 unsafe { OwnedFd::from_raw_fd(self.into_raw_fd()) } in into_fd()
204 unsafe { Self::from_raw_fd(owned.into_raw_fd()) } in from()
[all …]
Dimpls_async_std.rs43 unsafe { OwnedFd::from_raw_fd(self.into_raw_fd()) } in into_fd()
51 unsafe { Self::from_raw_fd(owned.into_raw_fd()) } in from()
75 unsafe { Self::from_raw_fd(owned.into_raw_fd()) } in from_fd()
83 unsafe { Self::from_raw_fd(owned.into_raw_fd()) } in from()
123 unsafe { OwnedFd::from_raw_fd(self.into_raw_fd()) } in into_fd()
131 unsafe { Self::from_raw_fd(owned.into_raw_fd()) } in from()
155 unsafe { Self::from_raw_fd(owned.into_raw_fd()) } in from_fd()
163 unsafe { Self::from_raw_fd(owned.into_raw_fd()) } in from()
203 unsafe { OwnedFd::from_raw_fd(self.into_raw_fd()) } in into_fd()
211 unsafe { Self::from_raw_fd(owned.into_raw_fd()) } in from()
[all …]
Dimpls_std.rs72 unsafe { Self::from_raw_fd(self.into_raw_fd()) } in into_fd()
96 unsafe { Self::from_raw_fd(owned.into_raw_fd()) } in from_fd()
152 unsafe { OwnedFd::from_raw_fd(self.into_raw_fd()) } in into_fd()
160 unsafe { Self::from_raw_fd(owned.into_raw_fd()) } in from()
184 unsafe { Self::from_raw_fd(owned.into_raw_fd()) } in from_fd()
192 unsafe { Self::from_raw_fd(owned.into_raw_fd()) } in from()
232 unsafe { OwnedFd::from_raw_fd(self.into_raw_fd()) } in into_fd()
240 unsafe { Self::from_raw_fd(owned.into_raw_fd()) } in from()
264 unsafe { Self::from_raw_fd(owned.into_raw_fd()) } in from_fd()
272 unsafe { Self::from_raw_fd(owned.into_raw_fd()) } in from()
[all …]
Dimpls_os_pipe.rs36 unsafe { OwnedFd::from_raw_fd(self.into_raw_fd()) } in into_fd()
44 unsafe { Self::from_raw_fd(owned.into_raw_fd()) } in from()
68 unsafe { Self::from_raw_fd(owned.into_raw_fd()) } in from_fd()
76 unsafe { Self::from_raw_fd(owned.into_raw_fd()) } in from()
116 unsafe { OwnedFd::from_raw_fd(self.into_raw_fd()) } in into_fd()
124 unsafe { Self::from_raw_fd(owned.into_raw_fd()) } in from()
148 unsafe { Self::from_raw_fd(owned.into_raw_fd()) } in from_fd()
156 unsafe { Self::from_raw_fd(owned.into_raw_fd()) } in from()
Dimpls_socket2.rs36 unsafe { OwnedFd::from_raw_fd(self.into_raw_fd()) } in into_fd()
44 unsafe { OwnedFd::from_raw_fd(owned.into_raw_fd()) } in from()
68 unsafe { Self::from_raw_fd(owned.into_raw_fd()) } in from_fd()
76 unsafe { Self::from_raw_fd(owned.into_raw_fd()) } in from()
Dimpls_fs_err.rs36 unsafe { OwnedFd::from_raw_fd(self.into_raw_fd()) } in into_fd()
44 unsafe { Self::from_raw_fd(owned.into_raw_fd()) } in from()
Draw.rs123 self.into_raw_fd() in into_raw_filelike()
155 self.into_raw_fd() in into_raw_socketlike()
Dimpls_tokio.rs36 unsafe { Self::from_raw_fd(owned.into_raw_fd()) } in from_fd()
44 unsafe { Self::from_raw_fd(owned.into_raw_fd()) } in from()
Dtypes.rs612 fn into_raw_fd(self) -> RawFd { in into_raw_fd() method
/third_party/rust/crates/io-lifetimes/tests/
Dniche-optimizations.rs24 assert_eq!(OwnedFd::from_raw_fd(RawFd::MIN).into_raw_fd(), RawFd::MIN); in test_niche_optimizations()
25 assert_eq!(OwnedFd::from_raw_fd(RawFd::MAX).into_raw_fd(), RawFd::MAX); in test_niche_optimizations()
29 .into_raw_fd(), in test_niche_optimizations()
35 .into_raw_fd(), in test_niche_optimizations()
/third_party/rust/crates/rustix/src/backend/libc/
Dio_lifetimes.rs38 fn into_raw_fd(self) -> RawFd; in into_raw_fd() method
43 fn into_raw_fd(self) -> RawFd { in into_raw_fd() method
Dconv.rs37 fd.into_raw_fd() as LibcFd in owned_fd()
/third_party/rust/crates/rustix/src/io/fd/
Draw.rs127 fn into_raw_fd(self) -> RawFd; in into_raw_fd() method
146 fn into_raw_fd(self) -> RawFd { in into_raw_fd() method
Downed.rs135 fn into_raw_fd(self) -> RawFd { in into_raw_fd() method
/third_party/rust/crates/nix/test/
Dtest_unistd.rs406 … execve_test_factory!(test_fexecve, fexecve, File::open("/system/bin/sh").unwrap().into_raw_fd());
413 execve_test_factory!(test_fexecve, fexecve, File::open("/bin/sh").unwrap().into_raw_fd());
432 File::open("/system/bin/sh").unwrap().into_raw_fd(),
435 File::open("/system/bin/").unwrap().into_raw_fd(),
438 File::open("/").unwrap().into_raw_fd(),
442 … execve_test_factory!(test_execveat_empty, execveat, File::open("/bin/sh").unwrap().into_raw_fd(),
444 … execve_test_factory!(test_execveat_relative, execveat, File::open("/bin/").unwrap().into_raw_fd(),
446 … execve_test_factory!(test_execveat_absolute, execveat, File::open("/").unwrap().into_raw_fd(),
459 let tmpdir_fd = File::open(&tmpdir_path).unwrap().into_raw_fd(); in test_fchdir()
558 let tmpfd = tmp.into_raw_fd(); in test_lseek()
[all …]
Dtest_pty.rs20 close(m.into_raw_fd()).unwrap(); in test_explicit_close()
/third_party/rust/crates/rustix/tests/io/
Dpoll.rs61 let _ = a.into_raw_fd(); in test_poll_fd_set_fd()
62 let _ = b.into_raw_fd(); in test_poll_fd_set_fd()
Dfrom_into.rs18 let inner = file.into_raw_fd(); in test_owned()
Depoll.rs38 let fd: RawFd = epoll.into_raw_fd(); in server()
/third_party/rust/crates/rustix/src/backend/linux_raw/io/
Depoll.rs248 fn into_raw_fd(self) -> RawFd { in into_raw_fd() method
249 self.epoll_fd.into_raw_fd() in into_raw_fd()
/third_party/rust/crates/rustix/src/backend/libc/io/
Depoll.rs257 fn into_raw_fd(self) -> RawFd { in into_raw_fd() method
258 self.epoll_fd.into_raw_fd() in into_raw_fd()
/third_party/rust/crates/signal-hook/src/low_level/
Dpipe.rs209 register_raw(signal, pipe.into_raw_fd()) in register()
/third_party/rust/crates/rustix/src/io/
Dcontext.rs136 let raw_fd = fd.into_raw_fd(); in acquire()
/third_party/rust/crates/nix/src/
Ddir.rs59 Dir::from_fd(fd.into_raw_fd()) in from()
Dpty.rs59 fn into_raw_fd(self) -> RawFd { in into_raw_fd() method