1 /* -----------------------------------------------------------------------------
2 * $Id: HsCore.h,v 1.1 2001/06/28 14:15:04 simonmar Exp $
4 * Definitions for package `core' which are visible in Haskell land.
6 * ---------------------------------------------------------------------------*/
13 #ifdef HAVE_SYS_TYPES_H
14 #include <sys/types.h>
19 #ifdef HAVE_SYS_STAT_H
34 #if defined(HAVE_GETTIMEOFDAY)
35 # ifdef HAVE_SYS_TIME_H
36 # include <sys/time.h>
38 #elif defined(HAVE_GETCLOCK)
39 # ifdef HAVE_SYS_TIMERS_H
41 # include <sys/timers.h>
44 #if defined(HAVE_TIME_H)
47 #ifdef HAVE_SYS_TIMEB_H
48 #include <sys/timeb.h>
53 #ifdef HAVE_SYS_TIMES_H
54 #include <sys/times.h>
57 #if !defined(mingw32_TARGET_OS) && !defined(irix_TARGET_OS)
58 # if defined(HAVE_SYS_RESOURCE_H)
59 # include <sys/resource.h>
64 #include <sys/syscall.h>
65 #define getrusage(a, b) syscall(SYS_GETRUSAGE, a, b)
66 #define HAVE_GETRUSAGE
70 #ifdef HAVE_SYS_WAIT_H
85 HsInt systemCmd(HsAddr cmd);
88 int inputReady(int fd, int msecs);
91 HsAddr get_prog_argv(void);
92 HsInt get_prog_argc();