diff options
author | Ross Paterson <ross@soi.city.ac.uk> | 2008-06-15 22:42:48 +0000 |
---|---|---|
committer | Ross Paterson <ross@soi.city.ac.uk> | 2008-06-15 22:42:48 +0000 |
commit | 136b23db618b71f8693950a0e7812a9f2dac1931 (patch) | |
tree | 66e85588293ff69b297b2830ba16d9852efb5e8e /include | |
parent | b6b7b6a9a91d50b0f84f216eaf2dd19279ee08cf (diff) |
move __hscore_{mkstemp,getrlimit,setrlimit} here from base
Diffstat (limited to 'include')
-rw-r--r-- | include/HsUnix.h | 16 |
1 files changed, 16 insertions, 0 deletions
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 |