]> git.ipfire.org Git - thirdparty/squid.git/blobdiff - tools/purge/signal.hh
Renamed squid.h to squid-old.h and config.h to squid.h
[thirdparty/squid.git] / tools / purge / signal.hh
index 562a83f0016ed0d7ef43b8f20062d0846cbfc8c5..1d0f46eab18405e0333bad33e4dbf04b9790f438 100644 (file)
@@ -1,7 +1,7 @@
 //
-// $Id: signal.hh,v 1.4 2000/09/21 10:59:27 cached Exp $
+// $Id$
 //
-// Author:   Jens-S. Vöckler <voeckler@rvs.uni-hannover.de>
+// Author:   Jens-S. V?ckler <voeckler@rvs.uni-hannover.de>
 // File:     signal.hh
 // Date:     Sat Feb 28 1998
 // Compiler: gcc 2.7.2.x series
@@ -10,7 +10,7 @@
 //           Addison-Wesley, 1992.
 // 
 // (c) 1998 Lehrgebiet Rechnernetze und Verteilte Systeme
-//          Universität Hannover, Germany
+//          Universit?t Hannover, Germany
 //
 // Permission to use, copy, modify, distribute, and sell this software
 // and its documentation for any purpose is hereby granted without fee,
@@ -34,7 +34,6 @@
 // ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
 // SOFTWARE.
 //
-// $Log: signal.hh,v $
 // Revision 1.4  2000/09/21 10:59:27  cached
 // introduced extern "C" to function pointer type.
 //
 // Initial revision
 //
 //
+
 #ifndef _SIGNAL_HH
 #define _SIGNAL_HH
 
+#include "squid.h"
+
+#if HAVE_SIGNAL_H
+#include <signal.h>
+#endif
+
+#if !defined(__cplusplus)
 #if defined(__GNUC__) || defined(__GNUG__)
 #pragma interface
 #else
-#ifndef HAS_BOOL
-#define HAS_BOOL
+#ifndef HAVE_BOOL
+#define HAVE_BOOL
 typedef int bool;
 #define false 0
 #define true  1
 #endif
 #endif
+#endif /* __cplusplus */
 
 #if 1 // so far, all systems I know use void
 # define SIGRETTYPE void
@@ -78,14 +86,6 @@ extern "C" {
   typedef SIGRETTYPE SigFunc( SIGPARAM );
 }
 
-#ifndef HAS_PSIGNAL
-void
-psignal( int sig, const char* msg );
-  // purpose: print message, colon, space, signal name and LF.
-  // paramtr: sig (IN): signal number
-  //          msg (IN): message to prepend
-#endif // ! HAS_PSIGNAL
-
 SigFunc*
 Signal( int signo, SigFunc* newhandler, bool doInterrupt );
   // purpose: install reliable signals