(fd: Fd, reuse: B)
| 43 | #[cfg_attr(docsrs, doc(cfg(feature = "alloc")))] |
| 44 | #[inline] |
| 45 | pub fn ttyname<Fd: AsFd, B: Into<Vec<u8>>>(fd: Fd, reuse: B) -> io::Result<CString> { |
| 46 | _ttyname(fd.as_fd(), reuse.into()) |
| 47 | } |
| 48 | |
| 49 | #[cfg(not(any(target_os = "fuchsia", target_os = "wasi")))] |
| 50 | #[cfg(feature = "alloc")] |