]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
kill: rely on Gnulib strsignal
authorPaul Eggert <eggert@cs.ucla.edu>
Wed, 30 Aug 2023 13:51:18 +0000 (06:51 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Thu, 31 Aug 2023 03:32:13 +0000 (20:32 -0700)
Omit checks no longer needed now that we use strsignal.
* configure.ac: Do not check for strsignal-related decls.
* src/kill.c (sys_siglist, strsignal): Remove.

configure.ac
src/kill.c

index 8ffc0b7ceb5c37541f96e97f724f1f9cfab6fb41..2c7cdeef620ba1a12f77defc130102d548fb6e3c 100644 (file)
@@ -471,11 +471,6 @@ if test $gl_cv_sys_tiocgwinsz_needs_termios_h = no && \
                    [Define if your system defines TIOCGWINSZ in sys/pty.h.])
 fi
 
-# For src/kill.c.
-AC_CHECK_DECLS([strsignal, sys_siglist, _sys_siglist, __sys_siglist], , ,
-  [AC_INCLUDES_DEFAULT
-#include <signal.h>])
-
 # Build df only if there's a point to it.
 if test $gl_cv_list_mounted_fs = yes && test $gl_cv_fs_space = yes; then
   gl_ADD_PROG([optional_bin_progs], [df])
index 47aaa161329db1d1450014a1dabcdb0412288e11..7eb5ef57a9696d038149db0ac76cd152bac0e7e1 100644 (file)
 
 #define AUTHORS proper_name ("Paul Eggert")
 
-#if ! (HAVE_DECL_STRSIGNAL || defined strsignal)
-# if ! (HAVE_DECL_SYS_SIGLIST || defined sys_siglist)
-#  if HAVE_DECL__SYS_SIGLIST || defined _sys_siglist
-#   define sys_siglist _sys_siglist
-#  elif HAVE_DECL___SYS_SIGLIST || defined __sys_siglist
-#   define sys_siglist __sys_siglist
-#  endif
-# endif
-# if HAVE_DECL_SYS_SIGLIST || defined sys_siglist
-#  define strsignal(signum) (0 <= (signum) && (signum) <= SIGNUM_BOUND \
-                             ? sys_siglist[signum] \
-                             : 0)
-# endif
-# ifndef strsignal
-#  define strsignal(signum) 0
-# endif
-#endif
-
 static char const short_options[] =
   "0::1::2::3::4::5::6::7::8::9::"
   "A::B::C::D::E::F::G::H::I::J::K::M::"