1 /* -----------------------------------------------------------------------------
2 * $Id: Hooks.h,v 1.6 2001/10/01 11:36:28 simonmar Exp $
4 * (c) The GHC Team, 1998-1999
6 * User-overridable RTS hooks.
8 * ---------------------------------------------------------------------------*/
10 extern char *ghc_rts_opts;
12 extern void OnExitHook (void);
13 extern void ErrorHdrHook (long fd);
14 extern int NoRunnableThreadsHook (void);
15 extern void StackOverflowHook (unsigned long stack_size);
16 extern void OutOfHeapHook (unsigned long request_size, unsigned long heap_size);
17 extern void MallocFailHook (unsigned long request_size /* in bytes */, char *msg);
18 extern void PatErrorHdrHook (long fd);
19 extern void defaultsHook (void);
20 extern void PreTraceHook (long fd);
21 extern void PostTraceHook (long fd);
23 extern void InitEachPEHook (void);
24 extern void ShutdownEachPEHook (void);