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