Function posish::io::stdin[][src]

pub unsafe fn stdin() -> BorrowedFd<'static>
Expand description

STDIN_FILENO

Safety

The stdin file descriptor can be closed in which case the file descriptor index value could be dynamically reused, potentially on a different thread. Typically, it is only safe to call this from within main or in the vicinity, where one knows there aren’t any other threads yet and nothing else has closed stdin.