diff options
author | Marcus Boerger <helly@php.net> | 2003-11-07 09:16:16 +0000 |
---|---|---|
committer | Marcus Boerger <helly@php.net> | 2003-11-07 09:16:16 +0000 |
commit | ccb63114064f3d8e954024326c8511cd96946e86 (patch) | |
tree | f5fec5cbef775aa9c320b8d8d6e914103d57338c /ext/standard/filestat.c | |
parent | 23d16aa99b9c8509ec44d7638907fa915040dbee (diff) | |
download | php-git-ccb63114064f3d8e954024326c8511cd96946e86.tar.gz |
Make php_stat() available for extensions.
Diffstat (limited to 'ext/standard/filestat.c')
-rw-r--r-- | ext/standard/filestat.c | 23 |
1 files changed, 1 insertions, 22 deletions
diff --git a/ext/standard/filestat.c b/ext/standard/filestat.c index 50a2c6d11c..23e569edca 100644 --- a/ext/standard/filestat.c +++ b/ext/standard/filestat.c @@ -96,27 +96,6 @@ #define S_IXROOT ( S_IXUSR | S_IXGRP | S_IXOTH ) -/* 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 - - PHP_RINIT_FUNCTION(filestat) { BG(CurrentStatFile)=NULL; @@ -555,7 +534,7 @@ PHP_FUNCTION(clearstatcache) /* {{{ php_stat */ -static void php_stat(const char *filename, php_stat_len filename_length, int type, pval *return_value TSRMLS_DC) +PHPAPI void php_stat(const char *filename, php_stat_len filename_length, int type, pval *return_value TSRMLS_DC) { zval *stat_dev, *stat_ino, *stat_mode, *stat_nlink, *stat_uid, *stat_gid, *stat_rdev, *stat_size, *stat_atime, *stat_mtime, *stat_ctime, *stat_blksize, *stat_blocks; |