[LTP] [PATCH v7 0/5] Improve ioctl02.c
Marius Kittler
mkittler@suse.de
Mon Oct 23 18:02:37 CEST 2023
I implemented the changes that were requested in the last review.
So I amended patch 1 and added patch 5.
I'm not sure how to write generic code in C (in C++ I would just
use templates). So I duplicated the functions that access the
members of the structs termio and termios to test both. Turning
these functions into huge multi-line macros would likely be the
worse choice.
Marius Kittler (5):
Refactor ioctl02.c to use the new test API
Make checks for termio flags more strict
Remove disabled code in ioctl02.c
Use termios instead of legacy struct in ioctl02.c
Extend ioctl02 to test termio and termios
testcases/kernel/syscalls/ioctl/ioctl02.c | 542 +++++++++-------------
1 file changed, 214 insertions(+), 328 deletions(-)
--
2.42.0
More information about the ltp
mailing list