]> granicus.if.org Git - php/commitdiff
move some stat declarations into zend_virtual_cwd.h
authorAnatol Belski <ab@php.net>
Mon, 25 May 2015 11:17:35 +0000 (13:17 +0200)
committerAnatol Belski <ab@php.net>
Mon, 25 May 2015 16:03:21 +0000 (18:03 +0200)
more cleanup to go

Zend/zend_virtual_cwd.h
ext/standard/filestat.c

index d7d1067828699807221aa0b3b9eb412297a4626c..7e066f0016e3abc904899718f994f88a0f80c190 100644 (file)
@@ -337,4 +337,18 @@ CWD_API realpath_cache_bucket** realpath_cache_get_buckets(void);
 
 #endif
 
+#ifndef S_ISDIR
+#define S_ISDIR(mode)  (((mode)&S_IFMT) == S_IFDIR)
+#endif
+
+#ifndef S_ISREG
+#define S_ISREG(mode)  (((mode)&S_IFMT) == S_IFREG)
+#endif
+
+#ifndef S_ISLNK
+#define S_ISLNK(mode)  (((mode)&S_IFMT) == S_IFLNK)
+#endif
+
+#define S_IXROOT ( S_IXUSR | S_IXGRP | S_IXOTH )
+
 #endif /* VIRTUAL_CWD_H */
index ffcba3598d1c155b3cac0f16a9f27a8951e8b145..764b490b9aa378a982a8a39c09d2cfd7db5b15de 100644 (file)
 #include "basic_functions.h"
 #include "php_filestat.h"
 
-#ifndef S_ISDIR
-#define S_ISDIR(mode)  (((mode)&S_IFMT) == S_IFDIR)
-#endif
-#ifndef S_ISREG
-#define S_ISREG(mode)  (((mode)&S_IFMT) == S_IFREG)
-#endif
-#ifndef S_ISLNK
-#define S_ISLNK(mode)  (((mode)&S_IFMT) == S_IFLNK)
-#endif
-
-#define S_IXROOT ( S_IXUSR | S_IXGRP | S_IXOTH )
-
 PHP_RINIT_FUNCTION(filestat) /* {{{ */
 {
        BG(CurrentStatFile)=NULL;