Module pty
Available on crate feature
dep_rustix
only.Expand description
Pseudoterminal operations.
For the openpty
and login_tty
functions, see the
rustix-openpty crate.
Structs§
- Openpt
Flags O_*
flags for use withopenpt
andioctl_tiocgptpeer
.
Functions§
- grantpt
grantpt(fd)
—Grant access to the user side of a pseudoterminal.- ioctl_
tiocgptpeer ioctl(fd, TIOCGPTPEER)
—Open the user side of a pseudoterminal.- openpt
posix_openpt(flags)
—Open a pseudoterminal device.- ptsname
ptsname(fd)
—Return the name of a pseudoterminal.- unlockpt
unlockpt(fd)
—Unlock a pseudoterminal.