Executes ioctl with the TCFLSH option.
fn ioctl_tcflsh(fd: i32, how: u32) -> i32
The file descriptor on which to operate.
What to discard.
tty_ioctl(2)