Lines Matching defs:ptsname
139 /// use nix::pty::{grantpt, posix_openpt, ptsname, unlockpt};
152 /// let slave_name = unsafe { ptsname(&master_fd) }?;
171 /// [`ptsname(3)`](https://man7.org/linux/man-pages/man3/ptsname.3.html))
173 /// `ptsname()` returns the name of the slave pseudoterminal device corresponding to the master
181 /// `ptsname()` mutates global variables and is *not* threadsafe.
187 pub unsafe fn ptsname(fd: &PtyMaster) -> Result<String> {
188 let name_ptr = libc::ptsname(fd.as_raw_fd());
198 /// [`ptsname(3)`](https://man7.org/linux/man-pages/man3/ptsname.3.html))
201 /// referred to by `fd`. This is the threadsafe version of `ptsname()`, but it is not part of the