[LTP] [PATCH v9 4/4] Extend ioctl02 to test termio and termios
Cyril Hrubis
chrubis@suse.cz
Fri Oct 27 16:58:58 CEST 2023
Hi!
> +static void chk_tty_parms_termio(void)
> +{
> + int i, flag = 0;
>
> + CMP_ATTR(termio_exp, termio, c_line);
> + CHECK_CONTROL_CHARS(termio);
> + CMP_ATTR(termio_exp, termio, c_lflag);
> + CMP_ATTR(termio_exp, termio, c_iflag);
> + CMP_ATTR(termio_exp, termio, c_oflag);
I do not see a reason why this cannot be a function, the only difference
would be that we would have to do cmp_attr(termio_exp, termio->c_line)
instead.
--
Cyril Hrubis
chrubis@suse.cz
More information about the ltp
mailing list