foreign import ccall unsafe "HsBase.h dup2"
c_dup2 :: CInt -> CInt -> IO CInt
-foreign import ccall unsafe "HsBase.h fstat"
+foreign import ccall unsafe "HsBase.h __hscore_fstat"
c_fstat :: CInt -> Ptr CStat -> IO CInt
foreign import ccall unsafe "HsBase.h getcwd"
INLINE int __hsposix_SIG_SETMASK() { return SIG_SETMASK; }
#endif /* mingw32_TARGET_OS */
-// These two are wrapped because on some OSs (eg. Linux) they are
+// These three are wrapped because on some OSs (eg. Linux) they are
// macros which redirect to the 64-bit-off_t versions when large file
// support is enabled.
//
return (lseek(fd,off,whence));
}
+INLINE int __hscore_fstat(int fd, struct stat *buf) {
+ return (fstat(fd,buf));
+}
+
#endif /* __HSBASE_H__ */