From 136b23db618b71f8693950a0e7812a9f2dac1931 Mon Sep 17 00:00:00 2001 From: Ross Paterson Date: Sun, 15 Jun 2008 22:42:48 +0000 Subject: move __hscore_{mkstemp,getrlimit,setrlimit} here from base --- include/HsUnix.h | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'include') diff --git a/include/HsUnix.h b/include/HsUnix.h index 2df3932..7aee685 100644 --- a/include/HsUnix.h +++ b/include/HsUnix.h @@ -174,4 +174,20 @@ INLINE int __hsunix_push_module(int fd, const char *module) #endif } +#if !defined(__MINGW32__) +INLINE int __hscore_mkstemp(char *filetemplate) { + return (mkstemp(filetemplate)); +} +#endif + +#if !defined(__MINGW32__) && !defined(irix_HOST_OS) +INLINE int __hscore_getrlimit(int resource, struct rlimit *rlim) { + return (getrlimit(resource, rlim)); +} + +INLINE int __hscore_setrlimit(int resource, struct rlimit *rlim) { + return (setrlimit(resource, rlim)); +} +#endif + #endif -- cgit v1.2.3