gwynne          Tue Jun 23 21:11:12 2009 UTC

  Modified files:              
    /php-src/ext/posix  posix.c 
  Log:
  add S_IRWXU and friends as defined POSIX constants
  
http://cvs.php.net/viewvc.cgi/php-src/ext/posix/posix.c?r1=1.109&r2=1.110&diff_format=u
Index: php-src/ext/posix/posix.c
diff -u php-src/ext/posix/posix.c:1.109 php-src/ext/posix/posix.c:1.110
--- php-src/ext/posix/posix.c:1.109     Sat Jun  6 02:40:14 2009
+++ php-src/ext/posix/posix.c   Tue Jun 23 21:11:12 2009
@@ -16,7 +16,7 @@
    +----------------------------------------------------------------------+
  */
 
-/* $Id: posix.c,v 1.109 2009/06/06 02:40:14 mattwil Exp $ */
+/* $Id: posix.c,v 1.110 2009/06/23 21:11:12 gwynne Exp $ */
 
 #ifdef HAVE_CONFIG_H
 #include "config.h"
@@ -310,7 +310,7 @@
 static PHP_MINFO_FUNCTION(posix)
 {
        php_info_print_table_start();
-       php_info_print_table_row(2, "Revision", "$Revision: 1.109 $");
+       php_info_print_table_row(2, "Revision", "$Revision: 1.110 $");
        php_info_print_table_end();
 }
 /* }}} */
@@ -332,6 +332,12 @@
 #ifdef S_IFREG
        REGISTER_LONG_CONSTANT("POSIX_S_IFREG", S_IFREG, CONST_CS | 
CONST_PERSISTENT);
 #endif
+#ifdef S_IFDIR
+       REGISTER_LONG_CONSTANT("POSIX_S_IFDIR", S_IFDIR, CONST_CS | 
CONST_PERSISTENT);
+#endif
+#ifdef S_IFLNK
+       REGISTER_LONG_CONSTANT("POSIX_S_IFLNK", S_IFLNK, CONST_CS | 
CONST_PERSISTENT);
+#endif
 #ifdef S_IFCHR
        REGISTER_LONG_CONSTANT("POSIX_S_IFCHR", S_IFCHR, CONST_CS | 
CONST_PERSISTENT);
 #endif
@@ -344,7 +350,35 @@
 #ifdef S_IFSOCK
        REGISTER_LONG_CONSTANT("POSIX_S_IFSOCK", S_IFSOCK, CONST_CS | 
CONST_PERSISTENT);
 #endif
-
+#ifdef S_IFWHT
+       REGISTER_LONG_CONSTANT("POSIX_S_IFWHT", S_IFWHT, CONST_CS | 
CONST_PERSISTENT);
+#endif
+#ifdef S_IRWXU
+       REGISTER_LONG_CONSTANT("POSIX_S_IRWXU", S_IRWXU, CONST_CS | 
CONST_PERSISTENT);
+       REGISTER_LONG_CONSTANT("POSIX_S_IRUSR", S_IRUSR, CONST_CS | 
CONST_PERSISTENT);
+       REGISTER_LONG_CONSTANT("POSIX_S_IWUSR", S_IWUSR, CONST_CS | 
CONST_PERSISTENT);
+       REGISTER_LONG_CONSTANT("POSIX_S_IXUSR", S_IXUSR, CONST_CS | 
CONST_PERSISTENT);
+       REGISTER_LONG_CONSTANT("POSIX_S_IRWXG", S_IRWXG, CONST_CS | 
CONST_PERSISTENT);
+       REGISTER_LONG_CONSTANT("POSIX_S_IRGRP", S_IRGRP, CONST_CS | 
CONST_PERSISTENT);
+       REGISTER_LONG_CONSTANT("POSIX_S_IWGRP", S_IWGRP, CONST_CS | 
CONST_PERSISTENT);
+       REGISTER_LONG_CONSTANT("POSIX_S_IXGRP", S_IXGRP, CONST_CS | 
CONST_PERSISTENT);
+       REGISTER_LONG_CONSTANT("POSIX_S_IRWXO", S_IRWXO, CONST_CS | 
CONST_PERSISTENT);
+       REGISTER_LONG_CONSTANT("POSIX_S_IROTH", S_IROTH, CONST_CS | 
CONST_PERSISTENT);
+       REGISTER_LONG_CONSTANT("POSIX_S_IWOTH", S_IWOTH, CONST_CS | 
CONST_PERSISTENT);
+       REGISTER_LONG_CONSTANT("POSIX_S_IXOTH", S_IXOTH, CONST_CS | 
CONST_PERSISTENT);
+#endif
+#ifdef S_ISUID
+       REGISTER_LONG_CONSTANT("POSIX_S_ISUID", S_ISUID, CONST_CS | 
CONST_PERSISTENT);
+#endif
+#ifdef S_ISGID
+       REGISTER_LONG_CONSTANT("POSIX_S_ISGID", S_ISGID, CONST_CS | 
CONST_PERSISTENT);
+#endif
+#ifdef S_ISVTX
+       REGISTER_LONG_CONSTANT("POSIX_S_ISVTX", S_ISVTX, CONST_CS | 
CONST_PERSISTENT);
+#endif
+#ifdef S_ISTXT
+       REGISTER_LONG_CONSTANT("POSIX_S_ISTXT", S_ISTXT, CONST_CS | 
CONST_PERSISTENT);
+#endif
        return SUCCESS;
 }
 /* }}} */



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

Reply via email to