Function posish::io::proc_self[][src]

pub fn proc_self() -> Result<(BorrowedFd<'static>, &'static Stat)>
Expand description

Returns a handle to Linux’s /proc/self directory.

This ensures that procfs is mounted on /proc/self, that nothing is mounted on top of it, and that it looks normal. It also returns the Stat of /proc/self.

References