Executes ioctl with the TCGETS2 option.
fn ioctl_tcgets2(fd: i32, attrs: &mut termios2) -> i32
The file descriptor on which to operate.
Place where the tty attributes will be stored.
tty_ioctl(2) and TCGETS therein