Executes ioctl with the TIOCSPTLCK option.
fn ioctl_tiocsptlck(fd: i32, locked: bool) -> i32
The file descriptor on which to operate.
Whether the slave is locked.
tty_ioctl(2)