Function rustix::pty::grantpt

source ·
pub fn grantpt<Fd: AsFd>(fd: Fd) -> Result<()>
Available on crate feature pty only.
Expand description

grantpt(fd)—Grant access to the user side of a pseudoterminal.

On Linux, calling this function has no effect, as the kernel is expected to grant the appropriate access. On all other platorms, this function has unspecified behavior if the calling process has a Signal::Child signal handler installed.

§References