Function posish::io::proc[][src]

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

Returns a handle to Linux’s /proc directory.

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

References