hyanantha               Mon Feb 21 04:08:54 2005 EDT

  Modified files:              
    /php-src/ext/standard       filestat.c 
  Log:
  In NetWare statfs f_bavail member is known as f_bfree
  
  
http://cvs.php.net/diff.php/php-src/ext/standard/filestat.c?r1=1.134&r2=1.135&ty=u
Index: php-src/ext/standard/filestat.c
diff -u php-src/ext/standard/filestat.c:1.134 
php-src/ext/standard/filestat.c:1.135
--- php-src/ext/standard/filestat.c:1.134       Thu Feb 17 08:57:21 2005
+++ php-src/ext/standard/filestat.c     Mon Feb 21 04:08:54 2005
@@ -16,7 +16,7 @@
    +----------------------------------------------------------------------+
  */
 
-/* $Id: filestat.c,v 1.134 2005/02/17 13:57:21 hyanantha Exp $ */
+/* $Id: filestat.c,v 1.135 2005/02/21 09:08:54 hyanantha Exp $ */
 
 #include "php.h"
 #include "safe_mode.h"
@@ -311,8 +311,12 @@
        }
 #elif (defined(HAVE_SYS_STATFS_H) || defined(HAVE_SYS_MOUNT_H)) && 
defined(HAVE_STATFS)
        if (statfs(Z_STRVAL_PP(path), &buf)) RETURN_FALSE;
+#ifdef NETWARE
+       bytesfree = (((double)buf.f_bsize) * ((double)buf.f_bfree));
+#else
        bytesfree = (((double)buf.f_bsize) * ((double)buf.f_bavail));
 #endif
+#endif
 #endif /* WINDOWS */
 
        RETURN_DOUBLE(bytesfree);

-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to