summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
b11688b)
stat() needs to be wrapped too
foreign import ccall unsafe "HsBase.h rmdir"
c_rmdir :: CString -> IO CInt
foreign import ccall unsafe "HsBase.h rmdir"
c_rmdir :: CString -> IO CInt
-foreign import ccall unsafe "HsBase.h stat"
+foreign import ccall unsafe "HsBase.h __hscore_stat"
c_stat :: CString -> Ptr CStat -> IO CInt
foreign import ccall unsafe "HsBase.h umask"
c_stat :: CString -> Ptr CStat -> IO CInt
foreign import ccall unsafe "HsBase.h umask"
INLINE int __hsposix_SIG_SETMASK() { return SIG_SETMASK; }
#endif /* mingw32_TARGET_OS */
INLINE int __hsposix_SIG_SETMASK() { return SIG_SETMASK; }
#endif /* mingw32_TARGET_OS */
-// These three are wrapped because on some OSs (eg. Linux) they are
+// These 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.
//
// macros which redirect to the 64-bit-off_t versions when large file
// support is enabled.
//
return (lseek(fd,off,whence));
}
return (lseek(fd,off,whence));
}
+INLINE int __hscore_stat(char *file, struct stat *buf) {
+ return (stat(file,buf));
+}
+
INLINE int __hscore_fstat(int fd, struct stat *buf) {
return (fstat(fd,buf));
}
INLINE int __hscore_fstat(int fd, struct stat *buf) {
return (fstat(fd,buf));
}