From b76084ef81d1d48782920dbd81fbdf30db5a4e3a Mon Sep 17 00:00:00 2001 From: Simon Marlow Date: Mon, 26 Feb 2007 11:03:11 +0000 Subject: add C wrappers for lstat() and mknod(). Fixes #1086. --- include/HsUnix.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'include') diff --git a/include/HsUnix.h b/include/HsUnix.h index 8669b30..9b2e697 100644 --- a/include/HsUnix.h +++ b/include/HsUnix.h @@ -118,4 +118,16 @@ INLINE int __hsunix_SIGINFO() { return SIGINFO; } INLINE int __hsunix_SIGWINCH() { return SIGWINCH; } #endif +// lstat is a macro on some platforms, so we need a wrapper: +INLINE int __hsunix_lstat(const char *path, struct stat *buf) +{ + return lstat(path,buf); +} + +// lstat is a macro on some platforms, so we need a wrapper: +INLINE int __hsunix_mknod(const char *pathname, mode_t mode, dev_t dev) +{ + return mknod(pathname,mode,dev); +} + #endif -- cgit v1.2.3