]> granicus.if.org Git - sudo/commitdiff
Remove checks for __sys_siglist and __sys_signame. They are internal
authorTodd C. Miller <Todd.Miller@courtesan.com>
Thu, 10 Sep 2015 22:44:57 +0000 (16:44 -0600)
committerTodd C. Miller <Todd.Miller@courtesan.com>
Thu, 10 Sep 2015 22:44:57 +0000 (16:44 -0600)
to libc and there are no known systems that export those symbols
that do not already export the single underbar or no-underbar versions.

config.h.in
configure
configure.ac
lib/util/sig2str.c
lib/util/strsignal.c

index 29e922eb8cb686121e07b8981630692581d2d333..2fcbaadd25b48cf67bd1274c4cd3be06b8417221 100644 (file)
    don't. */
 #undef HAVE_DECL__SYS_SIGNAME
 
-/* Define to 1 if you have the declaration of `__sys_siglist', and to 0 if you
-   don't. */
-#undef HAVE_DECL___SYS_SIGLIST
-
-/* Define to 1 if you have the declaration of `__sys_signame', and to 0 if you
-   don't. */
-#undef HAVE_DECL___SYS_SIGNAME
-
 /* Define to 1 if you have the <dirent.h> header file, and it defines `DIR'.
    */
 #undef HAVE_DIRENT_H
index b8213551812b33a7adb8587fd12c69ae5e7eca58..0a638a320595de5aaddeb3dbdb21f14355ee665a 100755 (executable)
--- a/configure
+++ b/configure
@@ -21367,26 +21367,6 @@ if test $ac_have_decl = 1; then :
        HAVE_SIGLIST="true"
        break
 
-fi
-ac_fn_c_check_decl "$LINENO" "__sys_siglist" "ac_cv_have_decl___sys_siglist" "
-$ac_includes_default
-#include <signal.h>
-
-"
-if test "x$ac_cv_have_decl___sys_siglist" = xyes; then :
-  ac_have_decl=1
-else
-  ac_have_decl=0
-fi
-
-cat >>confdefs.h <<_ACEOF
-#define HAVE_DECL___SYS_SIGLIST $ac_have_decl
-_ACEOF
-if test $ac_have_decl = 1; then :
-
-       HAVE_SIGLIST="true"
-       break
-
 fi
 
     if test "$HAVE_SIGLIST" != "true"; then
@@ -21478,26 +21458,6 @@ if test $ac_have_decl = 1; then :
        HAVE_SIGNAME="true"
        break
 
-fi
-ac_fn_c_check_decl "$LINENO" "__sys_signame" "ac_cv_have_decl___sys_signame" "
-$ac_includes_default
-#include <signal.h>
-
-"
-if test "x$ac_cv_have_decl___sys_signame" = xyes; then :
-  ac_have_decl=1
-else
-  ac_have_decl=0
-fi
-
-cat >>confdefs.h <<_ACEOF
-#define HAVE_DECL___SYS_SIGNAME $ac_have_decl
-_ACEOF
-if test $ac_have_decl = 1; then :
-
-       HAVE_SIGNAME="true"
-       break
-
 fi
 ac_fn_c_check_decl "$LINENO" "sys_sigabbrev" "ac_cv_have_decl_sys_sigabbrev" "
 $ac_includes_default
index 39f615ff3070a9b5fccebde2007d0d338ce6ed17..98a591acedda590c88eeebc417a1ff9c6b81a2fb 100644 (file)
@@ -3110,7 +3110,7 @@ AC_CHECK_FUNCS([strsignal], [], [
     AC_LIBOBJ(strsignal)
     SUDO_APPEND_COMPAT_EXP(sudo_strsignal)
     HAVE_SIGLIST="false"
-    AC_CHECK_DECLS([sys_siglist, _sys_siglist, __sys_siglist], [
+    AC_CHECK_DECLS([sys_siglist, _sys_siglist], [
        HAVE_SIGLIST="true"
        break
     ], [ ], [
@@ -3132,7 +3132,7 @@ AC_CHECK_FUNCS([sig2str], [
     AC_LIBOBJ(sig2str)
     SUDO_APPEND_COMPAT_EXP(sudo_sig2str)
     HAVE_SIGNAME="false"
-    AC_CHECK_DECLS([sys_signame, _sys_signame, __sys_signame, sys_sigabbrev], [
+    AC_CHECK_DECLS([sys_signame, _sys_signame, sys_sigabbrev], [
        HAVE_SIGNAME="true"
        break
     ], [ ], [
index 7b4426b5888411ed72c78a7d75affb74f530ab61..9e7d90ca26a223eaa3d8ac17fd03d413f41c00f0 100644 (file)
@@ -38,8 +38,6 @@
 #  define sudo_sys_signame     sys_signame
 #elif defined(HAVE_DECL__SYS_SIGNAME) && HAVE_DECL__SYS_SIGNAME == 1
 #  define sudo_sys_signame     _sys_signame
-#elif defined(HAVE_DECL___SYS_SIGNAME) && HAVE_DECL___SYS_SIGNAME == 1
-#  define sudo_sys_signame     __sys_signame
 #elif defined(HAVE_DECL_SYS_SIGABBREV) && HAVE_DECL_SYS_SIGABBREV == 1
 #  define sudo_sys_signame     sys_sigabbrev
 #else
index 81a234a833bba5187d52cc3984e39d8518cd3623..24ee81bb4e4ccf60bffc2eaa55b3b127bf3de2fd 100644 (file)
@@ -32,8 +32,6 @@
 # define sudo_sys_siglist      sys_siglist
 #elif defined(HAVE_DECL__SYS_SIGLIST) && HAVE_DECL__SYS_SIGLIST == 1
 # define sudo_sys_siglist      _sys_siglist
-#elif defined(HAVE_DECL___SYS_SIGLIST) && HAVE_DECL___SYS_SIGLIST == 1
-# define sudo_sys_siglist      __sys_siglist
 #else
 extern const char *const sudo_sys_siglist[NSIG];
 #endif