(fd: Fd, reuse: B)
| 133 | #[doc(alias = "ptsname_r")] |
| 134 | #[cfg_attr(docsrs, doc(cfg(feature = "alloc")))] |
| 135 | pub fn ptsname<Fd: AsFd, B: Into<Vec<u8>>>(fd: Fd, reuse: B) -> io::Result<CString> { |
| 136 | backend::pty::syscalls::ptsname(fd.as_fd(), reuse.into()) |
| 137 | } |
| 138 | |
| 139 | /// `unlockpt(fd)`—Unlock a pseudoterminal. |
| 140 | /// |