X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=include%2FHsBase.h;h=7a059c87cf868c751b4553bc97dfe2e6117469a7;hb=039848a1250b650bf55492b8ad791b88313f5832;hp=f69e9cf6567757976478d4f16148b86ee7a263b0;hpb=6473a780bd38170c6813b70a735c5e282b10d24c;p=ghc-base.git diff --git a/include/HsBase.h b/include/HsBase.h index f69e9cf..7a059c8 100644 --- a/include/HsBase.h +++ b/include/HsBase.h @@ -687,6 +687,22 @@ INLINE int __hscore_fstat(int fd, struct_stat *buf) { return (fstat(fd,buf)); } +#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 + // select-related stuff #if !defined(__MINGW32__)