Executes ioctl with the TIOCGPTLCK option.
fn ioctl_tiocgptlck(fd: i32, locked: &mut bool) -> i32
The file descriptor on which to operate.
Place where the lock status will be stored.
tty_ioctl(2)