Commit 2892dbdf authored by Dimitrie O. Paun's avatar Dimitrie O. Paun Committed by Alexandre Julliard

Add definitions for the S_IS* macros.

parent 1fa4a1a2
...@@ -144,6 +144,11 @@ int _wstati64(const MSVCRT(wchar_t)*,struct _stati64*); ...@@ -144,6 +144,11 @@ int _wstati64(const MSVCRT(wchar_t)*,struct _stati64*);
#define S_IWRITE _S_IWRITE #define S_IWRITE _S_IWRITE
#define S_IEXEC _S_IEXEC #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 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); } static inline int stat(const char* path, struct stat* ptr) { return _stat(path, (struct _stat*)ptr); }
#ifndef MSVCRT_UMASK_DEFINED #ifndef MSVCRT_UMASK_DEFINED
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment