summaryrefslogtreecommitdiff
path: root/ext/standard/php_filestat.h
diff options
context:
space:
mode:
authorMarcus Boerger <helly@php.net>2003-11-07 09:16:16 +0000
committerMarcus Boerger <helly@php.net>2003-11-07 09:16:16 +0000
commitccb63114064f3d8e954024326c8511cd96946e86 (patch)
treef5fec5cbef775aa9c320b8d8d6e914103d57338c /ext/standard/php_filestat.h
parent23d16aa99b9c8509ec44d7638907fa915040dbee (diff)
downloadphp-git-ccb63114064f3d8e954024326c8511cd96946e86.tar.gz
Make php_stat() available for extensions.
Diffstat (limited to 'ext/standard/php_filestat.h')
-rw-r--r--ext/standard/php_filestat.h22
1 files changed, 22 insertions, 0 deletions
diff --git a/ext/standard/php_filestat.h b/ext/standard/php_filestat.h
index 81d162c35c..4e485b24bd 100644
--- a/ext/standard/php_filestat.h
+++ b/ext/standard/php_filestat.h
@@ -75,4 +75,26 @@ PHP_FUNCTION(clearstatcache);
#define getuid() 1
#endif
+PHPAPI void php_stat(const char *filename, php_stat_len filename_length, int type, pval *return_value TSRMLS_DC);
+
+/* Switches for various filestat functions: */
+#define FS_PERMS 0
+#define FS_INODE 1
+#define FS_SIZE 2
+#define FS_OWNER 3
+#define FS_GROUP 4
+#define FS_ATIME 5
+#define FS_MTIME 6
+#define FS_CTIME 7
+#define FS_TYPE 8
+#define FS_IS_W 9
+#define FS_IS_R 10
+#define FS_IS_X 11
+#define FS_IS_FILE 12
+#define FS_IS_DIR 13
+#define FS_IS_LINK 14
+#define FS_EXISTS 15
+#define FS_LSTAT 16
+#define FS_STAT 17
+
#endif /* PHP_FILESTAT_H */