Function posish::io::stdout [−][src]
pub unsafe fn stdout() -> BorrowedFd<'static>
Expand description
STDOUT_FILENO
—Standard output.
Safety
The stdout 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 stdout.