Home
last modified time | relevance | path

Searched refs:RawFd (Results 1 - 25 of 57) sorted by relevance

123

/third_party/rust/crates/rustix/src/io/fd/
H A Draw.rs14 pub type RawFd = c::c_int; types
40 /// use std::os::unix::io::{AsRawFd, RawFd};
42 /// use std::os::wasi::io::{AsRawFd, RawFd};
47 /// let raw_fd: RawFd = f.as_raw_fd();
51 fn as_raw_fd(&self) -> RawFd; in as_raw_fd()
80 /// use std::os::unix::io::{FromRawFd, IntoRawFd, RawFd};
82 /// use std::os::wasi::io::{FromRawFd, IntoRawFd, RawFd};
86 /// let raw_fd: RawFd = f.into_raw_fd();
94 unsafe fn from_raw_fd(fd: RawFd) -> Self; in from_raw_fd()
117 /// use std::os::unix::io::{IntoRawFd, RawFd};
[all...]
/third_party/rust/crates/nix/src/sys/
H A Dselect.rs10 use std::os::unix::io::RawFd;
20 fn assert_fd_valid(fd: RawFd) { in assert_fd_valid()
38 pub fn insert(&mut self, fd: RawFd) { in insert()
44 pub fn remove(&mut self, fd: RawFd) { in remove()
50 pub fn contains(&self, fd: RawFd) -> bool { in contains()
77 pub fn highest(&self) -> Option<RawFd> { in highest()
91 /// # use std::os::unix::io::RawFd;
95 /// let fds: Vec<RawFd> = set.fds(None).collect();
99 pub fn fds(&self, highest: Option<RawFd>) -> Fds { in fds()
121 type Item = RawFd;
[all...]
H A Dsendfile.rs4 use std::os::unix::io::RawFd;
27 out_fd: RawFd, in sendfile()
28 in_fd: RawFd, in sendfile()
54 out_fd: RawFd, in sendfile64()
55 in_fd: RawFd, in sendfile64()
160 in_fd: RawFd, in sendfile()
161 out_sock: RawFd, in sendfile()
210 in_fd: RawFd, in sendfile()
211 out_sock: RawFd, in sendfile()
256 in_fd: RawFd, in sendfile()
[all...]
H A Dsignalfd.rs25 use std::os::unix::io::{AsRawFd, RawFd};
34 pub const SIGNALFD_NEW: RawFd = -1;
49 pub fn signalfd(fd: RawFd, mask: &SigSet, flags: SfdFlags) -> Result<RawFd> { in signalfd()
86 pub struct SignalFd(RawFd);
130 fn as_raw_fd(&self) -> RawFd { in as_raw_fd()
H A Duio.rs8 use std::os::unix::io::RawFd;
13 pub fn writev(fd: RawFd, iov: &[IoSlice<'_>]) -> Result<usize> { in writev()
31 pub fn readv(fd: RawFd, iov: &mut [IoSliceMut<'_>]) -> Result<usize> { in readv()
48 pub fn pwritev(fd: RawFd, iov: &[IoSlice<'_>], offset: off_t) -> Result<usize> { in pwritev()
75 fd: RawFd, in preadv()
99 pub fn pwrite(fd: RawFd, buf: &[u8], offset: off_t) -> Result<usize> { in pwrite()
116 pub fn pread(fd: RawFd, buf: &mut [u8], offset: off_t) -> Result<usize> { in pread()
H A Deventfd.rs3 use std::os::unix::io::RawFd;
13 pub fn eventfd(initval: libc::c_uint, flags: EfdFlags) -> Result<RawFd> { in eventfd()
16 Errno::result(res).map(|r| r as RawFd) in eventfd()
H A Dmemfd.rs4 use std::os::unix::io::RawFd;
43 pub fn memfd_create(name: &CStr, flags: MemFdCreateFlag) -> Result<RawFd> { in memfd_create()
64 Errno::result(res).map(|r| r as RawFd) in memfd_create()
H A Daio.rs33 os::unix::io::RawFd,
145 fn common_init(fd: RawFd, prio: i32, sigev_notify: SigevNotify) -> Self { in common_init()
312 fn fd(&self) -> RawFd; in fd()
370 fn fd(&self) -> RawFd { in fd()
457 fd: RawFd, in new()
576 fd: RawFd, in new()
695 fd: RawFd, in new()
808 fd: RawFd, in new()
924 fd: RawFd, in new()
1012 pub fn aio_cancel_all(fd: RawFd)
[all...]
H A Depoll.rs5 use std::os::unix::io::RawFd;
74 pub fn epoll_create() -> Result<RawFd> { in epoll_create()
81 pub fn epoll_create1(flags: EpollCreateFlags) -> Result<RawFd> { in epoll_create1()
89 epfd: RawFd, in epoll_ctl()
91 fd: RawFd, in epoll_ctl()
114 epfd: RawFd, in epoll_wait()
H A Dtimerfd.rs36 use std::os::unix::io::{AsRawFd, FromRawFd, RawFd};
42 fd: RawFd,
46 fn as_raw_fd(&self) -> RawFd { in as_raw_fd()
52 unsafe fn from_raw_fd(fd: RawFd) -> Self { in from_raw_fd()
H A Dstat.rs17 use std::os::unix::io::RawFd;
195 dirfd: RawFd, in mknodat()
261 pub fn fstat(fd: RawFd) -> Result<FileStat> { in fstat()
273 dirfd: RawFd, in fstatat()
297 pub fn fchmod(fd: RawFd, mode: Mode) -> Result<()> { in fchmod()
329 dirfd: Option<RawFd>, in fchmodat()
411 pub fn futimens(fd: RawFd, atime: &TimeSpec, mtime: &TimeSpec) -> Result<()> { in futimens()
445 dirfd: Option<RawFd>, in utimensat()
471 fd: RawFd, in mkdirat()
H A Dinotify.rs35 use std::os::unix::io::{AsRawFd, FromRawFd, RawFd};
106 fd: RawFd,
239 fn as_raw_fd(&self) -> RawFd { in as_raw_fd()
245 unsafe fn from_raw_fd(fd: RawFd) -> Self { in from_raw_fd()
/third_party/rust/crates/rustix/src/backend/libc/
H A Dio_lifetimes.rs8 pub use std::os::windows::io::RawSocket as RawFd;
21 fn as_raw_fd(&self) -> RawFd; in as_raw_fd()
26 fn as_raw_fd(&self) -> RawFd { in as_raw_fd()
38 fn into_raw_fd(self) -> RawFd; in into_raw_fd()
43 fn into_raw_fd(self) -> RawFd { in into_raw_fd()
55 unsafe fn from_raw_fd(raw_fd: RawFd) -> Self; in from_raw_fd()
60 unsafe fn from_raw_fd(raw_fd: RawFd) -> Self { in from_raw_fd()
/third_party/rust/crates/nix/src/
H A Dfcntl.rs7 use std::os::unix::io::RawFd;
196 pub fn open<P: ?Sized + NixPath>(path: &P, oflag: OFlag, mode: Mode) -> Result<RawFd> { in open()
208 dirfd: RawFd, in openat()
212 ) -> Result<RawFd> { in openat()
221 old_dirfd: Option<RawFd>, in renameat()
223 new_dirfd: Option<RawFd>, in renameat()
258 old_dirfd: Option<RawFd>, in renameat2()
260 new_dirfd: Option<RawFd>, in renameat2()
285 dirfd: Option<RawFd>, in readlink_maybe_at()
309 fn inner_readlink<P: ?Sized + NixPath>(dirfd: Option<RawFd>, pat
[all...]
H A Ddir.rs9 use std::os::unix::io::{AsRawFd, IntoRawFd, RawFd};
24 /// The file descriptor continues to be owned by the `Dir`, so callers must not keep a `RawFd`
47 dirfd: RawFd, in openat()
64 pub fn from_fd(fd: RawFd) -> Result<Self> { in from_fd()
90 fn as_raw_fd(&self) -> RawFd { in as_raw_fd()
159 /// so callers must not keep a `RawFd` after the `OwningIter` is dropped.
161 fn as_raw_fd(&self) -> RawFd { in as_raw_fd()
H A Dpty.rs24 pub master: RawFd,
26 pub slave: RawFd,
38 pub master: RawFd,
46 /// While this datatype is a thin wrapper around `RawFd`, it enforces that the available PTY
50 pub struct PtyMaster(RawFd);
53 fn as_raw_fd(&self) -> RawFd { in as_raw_fd()
59 fn into_raw_fd(self) -> RawFd { in into_raw_fd()
H A Dunistd.rs37 use std::os::unix::io::RawFd;
428 pub fn dup(oldfd: RawFd) -> Result<RawFd> { in dup()
441 pub fn dup2(oldfd: RawFd, newfd: RawFd) -> Result<RawFd> { in dup2()
452 pub fn dup3(oldfd: RawFd, newfd: RawFd, flags: OFlag) -> Result<RawFd> { in dup3()
457 fn dup3_polyfill(oldfd: RawFd, newf
[all...]
H A Dpoll.rs2 use std::os::unix::io::{AsRawFd, RawFd};
24 pub const fn new(fd: RawFd, events: PollFlags) -> PollFd {
72 fn as_raw_fd(&self) -> RawFd { in as_raw_fd()
/third_party/rust/crates/io-lifetimes/tests/
H A Dassumptions.rs9 assert_eq!(size_of::<std::os::unix::io::RawFd>(), size_of::<i32>()); in test_assumptions()
11 size_of::<std::os::unix::io::RawFd>(), in test_assumptions()
19 assert_eq!(size_of::<std::os::wasi::io::RawFd>(), size_of::<i32>()); in test_assumptions()
21 size_of::<std::os::wasi::io::RawFd>(), in test_assumptions()
H A Dniche-optimizations.rs12 use std::os::unix::io::{FromRawFd, IntoRawFd, RawFd};
14 use std::os::wasi::io::{FromRawFd, IntoRawFd, RawFd};
21 assert_eq!(size_of::<Option<OwnedFd>>(), size_of::<RawFd>()); in test_niche_optimizations()
22 assert_eq!(size_of::<Option<BorrowedFd<'static>>>(), size_of::<RawFd>()); in test_niche_optimizations()
24 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()
27 Some(OwnedFd::from_raw_fd(RawFd::MIN)) in test_niche_optimizations()
30 RawFd in test_niche_optimizations()
[all...]
/third_party/rust/crates/rustix/src/io/
H A Dfcntl.rs12 use backend::fd::{AsFd, OwnedFd, RawFd};
62 pub fn fcntl_dupfd_cloexec<Fd: AsFd>(fd: Fd, min: RawFd) -> io::Result<OwnedFd> { in fcntl_dupfd_cloexec()
83 pub fn fcntl_dupfd<Fd: AsFd>(fd: Fd, min: RawFd) -> io::Result<OwnedFd> { in fcntl_dupfd()
H A Dclose.rs9 use backend::fd::RawFd;
11 /// `close(raw_fd)`—Closes a `RawFd` directly.
36 /// This function takes a `RawFd`, which must be valid before the call, and is
39 pub unsafe fn close(raw_fd: RawFd) { in close()
/third_party/rust/crates/io-lifetimes/src/
H A Draw.rs8 use std::os::unix::io::{AsRawFd, FromRawFd, IntoRawFd, RawFd};
10 use std::os::wasi::io::{AsRawFd, FromRawFd, IntoRawFd, RawFd};
19 /// This is a portability abstraction over Unix-like [`RawFd`] and
22 pub type RawFilelike = RawFd;
26 /// This is a portability abstraction over Unix-like `RawFd` and
33 /// This is a portability abstraction over Unix-like [`RawFd`] and
36 pub type RawSocketlike = RawFd;
40 /// This is a portability abstraction over Unix-like `RawFd` and
H A Dtypes.rs5 use std::os::unix::io::{AsRawFd, FromRawFd, IntoRawFd, RawFd};
7 use std::os::wasi::io::{AsRawFd, FromRawFd, IntoRawFd, RawFd};
54 fd: RawFd,
118 fd: RawFd,
439 pub const unsafe fn borrow_raw(fd: RawFd) -> Self {
441 debug_assert!(fd != -1_i32 as RawFd);
564 fn as_raw_fd(&self) -> RawFd { in as_raw_fd()
588 fn as_raw_fd(&self) -> RawFd { in as_raw_fd()
612 fn into_raw_fd(self) -> RawFd { in into_raw_fd()
648 unsafe fn from_raw_fd(fd: RawFd)
[all...]
/third_party/rust/crates/rustix/src/backend/libc/io/
H A Dwindows_syscalls.rs6 use crate::fd::{BorrowedFd, RawFd};
12 pub(crate) unsafe fn close(raw_fd: RawFd) {

Completed in 13 milliseconds

123