pub fn ttyname(fd: RawFd) -> Result<PathBuf>
#[cfg(not(target_os = "fuchsia"))]
Get the name of the terminal device that is open on file descriptor fd (see ttyname(3)).
ttyname(3)