Executes ioctl with the TIOCGETD option.
fn ioctl_tiocgetd(fd: i32, discipline: &mut i32) -> i32
The file descriptor on which to operate.
Place where the line discipline of the terminal will be stored.
tty_ioctl(2)