Function nix::pty::ptsname[][src]

pub fn ptsname(fd: &PtyMaster) -> Result<String>

Get the name of the slave pseudoterminal (see ptsname(3))

ptsname() returns the name of the slave pseudoterminal device corresponding to the master referred to by fd. Note that this function is not threadsafe. For that see ptsname_r().

This value is useful for opening the slave pty once the master has already been opened with posix_openpt().