]> granicus.if.org Git - php/commitdiff
- expose php_sys_(l)stat, doing will prevent me to have to provide pecl's builds...
authorPierre Joye <pajoye@php.net>
Thu, 4 Nov 2010 01:16:20 +0000 (01:16 +0000)
committerPierre Joye <pajoye@php.net>
Thu, 4 Nov 2010 01:16:20 +0000 (01:16 +0000)
TSRM/tsrm_virtual_cwd.c
TSRM/tsrm_virtual_cwd.h

index f93639e69c8514ac4b69e19c851a359401651c5d..a48333c3e2731afe04919c7067bcfc2f7197eea7 100644 (file)
@@ -277,6 +277,18 @@ CWD_API int php_sys_readlink(const char *link, char *target, size_t target_len){
 }
 /* }}} */
 
+CWD_API int php_sys_stat(const char *path, struct stat *buf) /* {{{ */
+{
+       return php_sys_stat_ex(path, buf, 0);
+}
+/* }}} */
+
+CWD_API int php_sys_lstat(const char *path, struct stat *buf) /* {{{ */
+{
+       return php_sys_stat_ex(path, buf, 1);
+}
+/* }}} */
+
 CWD_API int php_sys_stat_ex(const char *path, struct stat *buf, int lstat) /* {{{ */
 {
        WIN32_FILE_ATTRIBUTE_DATA data;
index d75e2394a9fc17154cd98573b2e9240885da52e9..cfa8a88142630fc777a8fbb79aeb6847cdc1f7a3 100644 (file)
@@ -131,8 +131,8 @@ typedef unsigned short mode_t;
 
 #ifdef TSRM_WIN32
 CWD_API int php_sys_stat_ex(const char *path, struct stat *buf, int lstat);
-# define php_sys_stat(path, buf) php_sys_stat_ex(path, buf, 0)
-# define php_sys_lstat(path, buf) php_sys_stat_ex(path, buf, 1)
+CWD_API int php_sys_stat(const char *path, struct stat *buf);
+CWD_API int php_sys_lstat(const char *path, struct stat *buf);
 CWD_API int php_sys_readlink(const char *link, char *target, size_t target_len);
 #else
 # define php_sys_stat stat