Executes ioctl with the TIOCOUTQ option.
fn ioctl_tiocoutq(fd: i32, buf: &mut usize) -> i32
The file descriptor on which to operate.
Place where the number of pending output bytes will be stored.
tty_ioctl(2)