devela::_dep::rustix::procfsFunction proc_self_fdinfo_fd
pub fn proc_self_fdinfo_fd<Fd>(fd: Fd) -> Result<OwnedFd, Errno> ⓘ
Available on crate feature dep_rustix
only.
Expand description
Returns a handle to a Linux /proc/self/fdinfo/<fd>
file.
This ensures that /proc/self/fdinfo/<fd>
is procfs
, that nothing is
mounted on top of it, and that it looks normal.
§References