Module nix::pty
#[cfg(not(any(target_os = "redox", target_os = "fuchsia")))]Documentation
Create master and slave virtual pseudo-terminals (PTYs)
Structs
Representation of a master with a forked pty
Representation of a master/slave pty pair
Representation of the Master device in a master/slave pty pair
Functions
forkpty This function is unsafe to use
Create a new pseudoterminal, returning the master file descriptor and forked pid.
in ForkptyResult
(see forkpty).
Grant access to a slave pseudoterminal (see
grantpt(3))
Create a new pseudoterminal, returning the slave and master file descriptors
in OpenptyResult
(see openpty).
Open a pseudoterminal device (see
posix_openpt(3))
ptsname This function is unsafe to use
Get the name of the slave pseudoterminal (see
ptsname(3))
ptsname_r any(target_os = "android", target_os = "linux")
Get the name of the slave pseudoterminal (see
ptsname(3))
Unlock a pseudoterminal master/slave pseudoterminal pair (see
unlockpt(3))