//
-// $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
// 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,
// 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
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