/* -----------------------------------------------------------------------------
- * $Id: RtsUtils.h,v 1.9 2000/04/14 14:07:18 simonmar Exp $
+ * $Id: RtsUtils.h,v 1.17 2003/06/09 13:17:40 matthewc Exp $
*
* (c) The GHC Team, 1998-1999
*
*
* ---------------------------------------------------------------------------*/
+/* (Checked) dynamic allocation: */
extern void *stgMallocBytes(int n, char *msg);
-extern void *stgMallocWords(int n, char *msg);
extern void *stgReallocBytes(void *p, int n, char *msg);
-extern void *stgReallocWords(void *p, int n, char *msg);
+extern void *stgCallocBytes(int n, int m, char *msg);
+extern void stgFree(void* p);
+
extern void barf(char *s, ...) __attribute__((__noreturn__)) ;
extern void belch(char *s, ...);
extern void prog_belch(char *s, ...);
extern void _stgAssert (char *filename, unsigned int linenum);
-extern void stackOverflow(void);
extern void heapOverflow(void);
-void resetNonBlockingFd(int fd);
+extern void setNonBlockingFd(int fd);
+extern void resetNonBlockingFd(int fd);
extern nat stg_strlen(char *str);
/*Defined in Main.c, but made visible here*/
-extern void stg_exit(I_ n) __attribute__((noreturn));
+extern void stg_exit(int n) __attribute__((noreturn));
char *time_str(void);
char *ullong_format_string(ullong, char *, rtsBool);
+#ifdef PAR
ullong msTime(void);
+#endif
-
+#ifdef DEBUG
+extern void heapCheckFail( void );
+#endif