- Notifications
You must be signed in to change notification settings - Fork 7.8k
/
Copy pathphp_filestat.h
67 lines (59 loc) · 2.1 KB
/
php_filestat.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
/*
+----------------------------------------------------------------------+
| Copyright (c) The PHP Group |
+----------------------------------------------------------------------+
| This source file is subject to version 3.01 of the PHP license, |
| that is bundled with this package in the file LICENSE, and is |
| available through the world-wide-web at the following url: |
| https://www.php.net/license/3_01.txt |
| If you did not receive a copy of the PHP license and are unable to |
| obtain it through the world-wide-web, please send a note to |
| license@php.net so we can mail you a copy immediately. |
+----------------------------------------------------------------------+
| Author: Jim Winstead <jimw@php.net> |
+----------------------------------------------------------------------+
*/
#ifndefPHP_FILESTAT_H
#definePHP_FILESTAT_H
PHP_RINIT_FUNCTION(filestat);
PHP_RSHUTDOWN_FUNCTION(filestat);
#ifdefPHP_WIN32
#defineS_IRUSR S_IREAD
#defineS_IWUSR S_IWRITE
#defineS_IXUSR S_IEXEC
#defineS_IRGRP S_IREAD
#defineS_IWGRP S_IWRITE
#defineS_IXGRP S_IEXEC
#defineS_IROTH S_IREAD
#defineS_IWOTH S_IWRITE
#defineS_IXOTH S_IEXEC
#undef getgid
#definegetgroups(a, b) 0
#definegetgid() 1
#definegetuid() 1
#endif
/* Compatibility. */
typedefsize_tphp_stat_len;
PHPAPIvoidphp_clear_stat_cache(boolclear_realpath_cache, constchar*filename, size_tfilename_len);
PHPAPIvoidphp_stat(zend_string*filename, inttype, zval*return_value);
/* Switches for various filestat functions: */
#defineFS_PERMS 0
#defineFS_INODE 1
#defineFS_SIZE 2
#defineFS_OWNER 3
#defineFS_GROUP 4
#defineFS_ATIME 5
#defineFS_MTIME 6
#defineFS_CTIME 7
#defineFS_TYPE 8
#defineFS_IS_W 9
#defineFS_IS_R 10
#defineFS_IS_X 11
#defineFS_IS_FILE 12
#defineFS_IS_DIR 13
#defineFS_IS_LINK 14
#defineFS_EXISTS 15
#defineFS_LSTAT 16
#defineFS_STAT 17
#defineFS_LPERMS 18
#endif/* PHP_FILESTAT_H */