diff options
Diffstat (limited to 'rts/posix/Signals.h')
-rw-r--r-- | rts/posix/Signals.h | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/rts/posix/Signals.h b/rts/posix/Signals.h new file mode 100644 index 0000000000..39477f8c6a --- /dev/null +++ b/rts/posix/Signals.h @@ -0,0 +1,26 @@ +/* ----------------------------------------------------------------------------- + * + * (c) The GHC Team, 1998-2005 + * + * Signal processing / handling. + * + * ---------------------------------------------------------------------------*/ + +#ifndef POSIX_SIGNALS_H +#define POSIX_SIGNALS_H + +extern rtsBool anyUserHandlers(void); + +#if !defined(THREADED_RTS) + +extern StgPtr pending_handler_buf[]; +extern StgPtr *next_pending_handler; +#define signals_pending() (next_pending_handler != pending_handler_buf) +void startSignalHandlers(Capability *cap); + +#endif + +extern StgInt *signal_handlers; + +#endif /* POSIX_SIGNALS_H */ + |