> Most programs > use sigaction() by now, which is provided by gnulib on MSVC, therefore > there is no big urgency in adding a module for the signal() function.
But it is quite likely that we will want to wrap signal() alone. As a preparation for this, let me rename the 'signal' module to 'signal-h'. Like Eric did with the 'fcntl' module on 2009-08-21 <https://lists.gnu.org/archive/html/bug-gnulib/2009-08/msg00303.html>. 2011-09-23 Bruno Haible <[email protected]> signal-h: Rename from signal. * modules/signal-h: Renamed from modules/signal. * modules/pthread_sigmask (Depends-on): Update. * modules/raise (Depends-on): Likewise. * modules/sigaction (Depends-on): Likewise. * modules/sigpipe (Depends-on): Likewise. * modules/sigprocmask (Depends-on): Likewise. * modules/sys_select (Depends-on): Likewise. * modules/signal-h-tests: Renamed from modules/signal-tests. (Files, Depends-on, Makefile.am): Update. * tests/test-signal-h.c: Renamed from tests/test-signal.c. * modules/signal-h-c++-tests: Renamed from modules/signal-c++-tests. (Files, Makefile.am): Update. * tests/test-signal-h-c++.cc: Renamed from tests/test-signal-c++.cc. * tests/test-signal-h-c++2.cc: Renamed from tests/test-signal-c++2.cc. * modules/signal: New placeholder file. * MODULES.html.sh (Support for systems lacking POSIX:2008): Update. * doc/posix-headers/signal.texi: Update. * NEWS: Mention the change. diff --git a/MODULES.html.sh b/MODULES.html.sh index 8273faa..9903150 100755 --- a/MODULES.html.sh +++ b/MODULES.html.sh @@ -2451,7 +2451,7 @@ func_all_modules () func_module servent func_module setsockopt func_module shutdown - func_module signal + func_module signal-h func_module sleep func_module snprintf-posix func_module socket diff --git a/NEWS b/NEWS index d7d9acd..21f4708 100644 --- a/NEWS +++ b/NEWS @@ -12,6 +12,8 @@ User visible incompatible changes Date Modules Changes +2011-09-23 signal This module is renamed to 'signal-h'. + 2011-09-22 select The link requirements of this module are changed from $(LIBSOCKET) to $(LIB_SELECT). diff --git a/doc/posix-headers/signal.texi b/doc/posix-headers/signal.texi index 18bd309..99ad79e 100644 --- a/doc/posix-headers/signal.texi +++ b/doc/posix-headers/signal.texi @@ -3,7 +3,7 @@ POSIX specification:@* @url{http://www.opengroup.org/onlinepubs/9699919799/basedefs/signal.h.html} -Gnulib module: signal +Gnulib module: signal-h Portability problems fixed by Gnulib: @itemize diff --git a/modules/pthread_sigmask b/modules/pthread_sigmask index b9a8f96..f451259 100644 --- a/modules/pthread_sigmask +++ b/modules/pthread_sigmask @@ -6,7 +6,7 @@ lib/pthread_sigmask.c m4/pthread_sigmask.m4 Depends-on: -signal +signal-h threadlib sigprocmask [test $HAVE_PTHREAD_SIGMASK = 0 || test $REPLACE_PTHREAD_SIGMASK = 1] diff --git a/modules/raise b/modules/raise index 11f9e0e..734e03a 100644 --- a/modules/raise +++ b/modules/raise @@ -6,7 +6,7 @@ lib/raise.c m4/raise.m4 Depends-on: -signal +signal-h msvc-inval [test $HAVE_RAISE = 0 || test $REPLACE_RAISE = 1] configure.ac: diff --git a/modules/sigaction b/modules/sigaction index 9fde5f6..2180766 100644 --- a/modules/sigaction +++ b/modules/sigaction @@ -7,7 +7,7 @@ lib/sig-handler.h m4/sigaction.m4 Depends-on: -signal +signal-h sigprocmask [test $HAVE_SIGACTION = 0] configure.ac: diff --git a/modules/signal-h-c++-tests b/modules/signal-h-c++-tests index 02a92fb..c7b2371 100644 --- a/modules/signal-h-c++-tests +++ b/modules/signal-h-c++-tests @@ -1,6 +1,6 @@ Files: -tests/test-signal-c++.cc -tests/test-signal-c++2.cc +tests/test-signal-h-c++.cc +tests/test-signal-h-c++2.cc tests/signature.h Status: @@ -13,8 +13,8 @@ configure.ac: Makefile.am: if ANSICXX -TESTS += test-signal-c++ -check_PROGRAMS += test-signal-c++ -test_signal_c___SOURCES = test-signal-c++.cc test-signal-c++2.cc -test_signal_c___LDADD = $(LDADD) $(LIBINTL) $(LIB_NANOSLEEP) $(LIB_PTHREAD_SIGMASK) +TESTS += test-signal-h-c++ +check_PROGRAMS += test-signal-h-c++ +test_signal_h_c___SOURCES = test-signal-h-c++.cc test-signal-h-c++2.cc +test_signal_h_c___LDADD = $(LDADD) $(LIBINTL) $(LIB_NANOSLEEP) $(LIB_PTHREAD_SIGMASK) endif diff --git a/modules/signal-h-tests b/modules/signal-h-tests index 9b882a5..dab83e9 100644 --- a/modules/signal-h-tests +++ b/modules/signal-h-tests @@ -1,11 +1,11 @@ Files: -tests/test-signal.c +tests/test-signal-h.c Depends-on: -signal-c++-tests +signal-h-c++-tests configure.ac: Makefile.am: -TESTS += test-signal -check_PROGRAMS += test-signal +TESTS += test-signal-h +check_PROGRAMS += test-signal-h diff --git a/modules/sigpipe b/modules/sigpipe index d28a562..8bb7442 100644 --- a/modules/sigpipe +++ b/modules/sigpipe @@ -14,7 +14,7 @@ m4/asm-underscore.m4 Depends-on: msvc-nothrow raise -signal +signal-h sigprocmask stdio unistd diff --git a/modules/sigprocmask b/modules/sigprocmask index cdcd17c..644654c 100644 --- a/modules/sigprocmask +++ b/modules/sigprocmask @@ -6,7 +6,7 @@ lib/sigprocmask.c m4/signalblocking.m4 Depends-on: -signal +signal-h stdint [test $HAVE_POSIX_SIGNALBLOCKING = 0] raise [test $HAVE_POSIX_SIGNALBLOCKING = 0] msvc-inval [test $HAVE_POSIX_SIGNALBLOCKING = 0] diff --git a/modules/sys_select b/modules/sys_select index 49a0360..97262bb 100644 --- a/modules/sys_select +++ b/modules/sys_select @@ -8,7 +8,7 @@ m4/sys_socket_h.m4 Depends-on: include_next -signal +signal-h snippet/c++defs snippet/warn-on-use sys_time -- In memoriam Ghazala Khan <http://en.wikipedia.org/wiki/Ghazala_Khan>
