]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Maintenance: remove compat/psignal (#2022)
authorFrancesco Chemolli <5175948+kinkie@users.noreply.github.com>
Thu, 13 Mar 2025 23:08:32 +0000 (23:08 +0000)
committerSquid Anubis <squid-anubis@squid-cache.org>
Thu, 13 Mar 2025 23:09:55 +0000 (23:09 +0000)
psignal(3) is not used anywhere in squid.
Remove the also-unused bundled implementation

compat/Makefile.am
compat/psignal.c [deleted file]
compat/psignal.h [deleted file]
configure.ac

index 028e817d53fc5e83a2d45f2c10bd737bed1c667b..eeb856709aa9e4ed39275fbf9426ac5fd644462b 100644 (file)
@@ -62,7 +62,6 @@ libcompatsquid_la_SOURCES = \
        os/solaris.h \
        os/sunos.h \
        osdetect.h \
-       psignal.h \
        shm.cc \
        shm.h \
        statvfs.cc \
diff --git a/compat/psignal.c b/compat/psignal.c
deleted file mode 100644 (file)
index 0963906..0000000
+++ /dev/null
@@ -1,30 +0,0 @@
-/*
- * Copyright (C) 1996-2023 The Squid Software Foundation and contributors
- *
- * Squid software is distributed under GPLv2+ license and includes
- * contributions from numerous individuals and organizations.
- * Please see the COPYING and CONTRIBUTORS files for details.
- */
-
-#include "squid.h"
-#include "psignal.h"
-
-#if _SQUID_AIX_ || _SQUID_ANDROID_ || _SQUID_MINGW_
-extern const char* const sys_siglist[];
-#define _sys_nsig 64
-#define _sys_siglist sys_siglist
-#endif
-
-/// purpose: print message, colon, space, signal name and LF.
-/// paramtr: sig (IN): signal number
-///          msg (IN): message to prepend
-void
-psignal( int sig, const char* msg )
-{
-    if ( msg && *msg ) fprintf( stderr, "%s: ", msg );
-    if ( sig > 0 && sig < _sys_nsig )
-        fprintf( stderr, "%s\n", _sys_siglist[sig] );
-    else
-        fputs( "(unknown)\n", stderr );
-}
-
diff --git a/compat/psignal.h b/compat/psignal.h
deleted file mode 100644 (file)
index 2976f4c..0000000
+++ /dev/null
@@ -1,19 +0,0 @@
-/*
- * Copyright (C) 1996-2023 The Squid Software Foundation and contributors
- *
- * Squid software is distributed under GPLv2+ license and includes
- * contributions from numerous individuals and organizations.
- * Please see the COPYING and CONTRIBUTORS files for details.
- */
-
-#ifndef SQUID_COMPAT_PSIGNAL_H
-#define SQUID_COMPAT_PSIGNAL_H
-
-#if HAVE_SIGNAL_H
-#include <signal.h>
-#endif
-
-extern void psignal(int sig, const char* msg);
-
-#endif /* SQUID_COMPAT_PSIGNAL_H */
-
index c63f92f3e9d589d03d4df62ca1e5a0a305b8e8b0..cfba1e2a00aed466cd63d18ba5b1bbac66f02a61 100644 (file)
@@ -2178,7 +2178,6 @@ AC_CHECK_FUNCS(\
 dnl ... and some we provide local replacements for
 AC_REPLACE_FUNCS(\
        initgroups \
-       psignal \
        strerror \
        strtoll \
        tempnam \