diff options
author | Joel Sherrill <joel@rtems.org> | 2019-10-02 16:49:00 -0500 |
---|---|---|
committer | Joel Sherrill <joel@rtems.org> | 2019-10-08 14:25:41 -0500 |
commit | 667501a314ba75f80f1c13c6b43dd35d0a00efd1 (patch) | |
tree | ec786d34150d19f7aac04b2653fa356c6a696de2 /testsuites/libtests/Makefile.am | |
parent | termios04/init.c: Remove dead copy of change_iflag() (diff) | |
download | rtems-667501a314ba75f80f1c13c6b43dd35d0a00efd1.tar.bz2 |
termios: Add Capability to Generate SIGINTR and SIGQUIT
This patch adds the ability for termios to send SIGINTR on receipt
of VINTR and SIGQUIT for VKILL and return -1/EINTR from read() on
a termios channel. Importantly, this patch does not alter the default
behavior or force POSIX signal code in just because termios is used.
The application must explicitly enable the POSIX behavior of generating
a signal upon receipt of these characters. This is discussed in the
POSIX standard:
https://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap11.html
Closes #3800.
Diffstat (limited to 'testsuites/libtests/Makefile.am')
-rw-r--r-- | testsuites/libtests/Makefile.am | 22 |
1 files changed, 21 insertions, 1 deletions
diff --git a/testsuites/libtests/Makefile.am b/testsuites/libtests/Makefile.am index 1b80283123..20a5a6fc5e 100644 --- a/testsuites/libtests/Makefile.am +++ b/testsuites/libtests/Makefile.am @@ -1489,7 +1489,27 @@ lib_screens += termios09/termios09.scn lib_docs += termios09/termios09.doc termios09_SOURCES = termios09/init.c termios09_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_termios09) \ - $(support_includes) + $(support_includes) +endif + +if TEST_termios10 +lib_tests += termios10 +lib_screens += termios10/termios10.scn +lib_docs += termios10/termios10.doc +termios10_SOURCES = termios10/init.c +termios10_SOURCES += termios03/termios_testdriver_polled.c +termios10_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_termios10) \ + $(support_includes) -I$(top_srcdir)/termios03 +endif + +if TEST_termios11 +lib_tests += termios11 +lib_screens += termios11/termios11.scn +lib_docs += termios11/termios11.doc +termios11_SOURCES = termios10/init.c +termios11_SOURCES += termios04/termios_testdriver_intr.c +termios11_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_termios11) \ + $(support_includes) -I$(top_srcdir)/termios04 -DINTERRUPT_DRIVEN endif if TEST_top |