mirror of
https://github.com/php/php-src.git
synced 2026-03-24 00:02:20 +01:00
move some stat declarations into zend_virtual_cwd.h
more cleanup to go
This commit is contained in:
@@ -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 */
|
||||
|
||||
@@ -85,18 +85,6 @@
|
||||
#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;
|
||||
|
||||
Reference in New Issue
Block a user