]> granicus.if.org Git - php/commitdiff
Make php_stat() available for extensions.
authorMarcus Boerger <helly@php.net>
Fri, 7 Nov 2003 09:16:16 +0000 (09:16 +0000)
committerMarcus Boerger <helly@php.net>
Fri, 7 Nov 2003 09:16:16 +0000 (09:16 +0000)
ext/standard/filestat.c
ext/standard/php_filestat.h

index 50a2c6d11cceb4ed3836e1e198b1446cf8d48092..23e569edcaed6ee980ab1d8392c71a5830a5a421 100644 (file)
 
 #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;
index 81d162c35c82b57ef524535458c9d31fd6ac4e0f..4e485b24bd74dcff0fbcc12609334aa1bd5c804d 100644 (file)
@@ -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 */