Signals.h 595 Bytes
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
/* -----------------------------------------------------------------------------
 *
 * (c) The GHC Team, 1998-2002
 *
 * RTS signal handling 
 *
 * ---------------------------------------------------------------------------*/

#ifndef SIGNALS_H
#define SIGNALS_H

#define STG_SIG_DFL  (-1)
#define STG_SIG_IGN  (-2)
#define STG_SIG_ERR  (-3)
#define STG_SIG_HAN  (-4)
16
#define STG_SIG_RST  (-5)
17

18
#if defined(mingw32_TARGET_OS)
sof's avatar
sof committed
19
20
extern int stg_InstallConsoleEvent(int action, StgStablePtr *handler);
#else
21
extern int stg_sig_install (int, int, StgStablePtr *, void *);
sof's avatar
sof committed
22
#endif
23
24
25

#endif // SIGNALS_H