1 /* -----------------------------------------------------------------------------
2 * $Id: HsStd.h,v 1.5 2001/11/26 20:04:00 sof Exp $
4 * Definitions for package `std' which are visible in Haskell land.
6 * ---------------------------------------------------------------------------*/
13 #ifdef HAVE_SYS_TYPES_H
14 #include <sys/types.h>
19 #ifdef HAVE_SYS_STAT_H
37 #if defined(HAVE_GETTIMEOFDAY)
38 # ifdef HAVE_SYS_TIME_H
39 # include <sys/time.h>
41 #elif defined(HAVE_GETCLOCK)
42 # ifdef HAVE_SYS_TIMERS_H
44 # include <sys/timers.h>
47 #if defined(HAVE_TIME_H)
50 #ifdef HAVE_SYS_TIMEB_H
51 #include <sys/timeb.h>
56 #ifdef HAVE_SYS_TIMES_H
57 #include <sys/times.h>
63 #if !defined(mingw32_TARGET_OS) && !defined(irix_TARGET_OS)
64 # if defined(HAVE_SYS_RESOURCE_H)
65 # include <sys/resource.h>
70 #include <sys/syscall.h>
71 #define getrusage(a, b) syscall(SYS_GETRUSAGE, a, b)
72 #define HAVE_GETRUSAGE
76 #ifdef HAVE_SYS_WAIT_H
91 HsInt systemCmd(HsAddr cmd);
94 int inputReady(int fd, int msecs);
97 HsAddr get_prog_argv(void);
98 HsInt get_prog_argc();