Executes ioctl with the TIOCGWINSZ option.
fn ioctl_tiocgwinsz(fd: i32, size: &mut winsize) -> i32
The file descriptor on which to operate.
Place where the window size will be stored.
tty_ioctl(2)