raw_stdpipes 1.0.0

Raw handles to the standard terminal pipes.
Documentation
use super::File;
use libc::{STDOUT_FILENO, STDERR_FILENO, STDIN_FILENO};
use std::os::unix::io::FromRawFd;

pub unsafe fn raw_stdout() -> File {
    File::from_raw_fd(STDOUT_FILENO)
}

pub unsafe fn raw_stderr() -> File {
    File::from_raw_fd(STDERR_FILENO)
}

pub unsafe fn raw_stdin() -> File {
    File::from_raw_fd(STDIN_FILENO)
}