Function posish::io::proc_self_fd [−][src]
pub fn proc_self_fd() -> Result<(BorrowedFd<'static>, &'static Stat)>
Expand description
Returns a handle to Linux’s /proc/self/fd
directory.
This ensures that procfs
is mounted on /proc/self/fd
, that nothing is
mounted on top of it, and that it looks normal. It also returns the
Stat
of /proc/self/fd
.