Define the S_IS* macros
Dimitrie O. Paun
dpaun at rogers.com
Tue Aug 12 22:29:51 CDT 2003
ChangeLog
Add definitions for the S_IS* macros.
Index: include/msvcrt/sys/stat.h
===================================================================
RCS file: /var/cvs/wine/include/msvcrt/sys/stat.h,v
retrieving revision 1.9
diff -u -r1.9 stat.h
--- include/msvcrt/sys/stat.h 18 Jul 2003 22:57:15 -0000 1.9
+++ include/msvcrt/sys/stat.h 12 Aug 2003 04:10:26 -0000
@@ -144,6 +144,11 @@
#define S_IWRITE _S_IWRITE
#define S_IEXEC _S_IEXEC
+#define S_ISCHR(m) (((m)&_S_IFMT) == _S_IFCHR)
+#define S_ISDIR(m) (((m)&_S_IFMT) == _S_IFDIR)
+#define S_ISFIFO(m) (((m)&_S_IFMT) == _S_IFIFO)
+#define S_ISREG(m) (((m)&_S_IFMT) == _S_IFREG)
+
static inline int fstat(int fd, struct stat* ptr) { return _fstat(fd, (struct _stat*)ptr); }
static inline int stat(const char* path, struct stat* ptr) { return _stat(path, (struct _stat*)ptr); }
#ifndef MSVCRT_UMASK_DEFINED
--
Dimi.
More information about the wine-patches
mailing list