mirror of
https://github.com/php/php-src.git
synced 2024-11-23 09:54:15 +08:00
move some stat declarations into zend_virtual_cwd.h
more cleanup to go
This commit is contained in:
parent
c436e25fd5
commit
5d1731b2fb
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user