Executes ioctl with the TIOCGPTN option.
fn ioctl_tiocgptn(fd: i32, id: &mut u32) -> i32
The file descriptor on which to operate.
A place into which the slave id will be stored.
tty_ioctl(2)