mkoppanen               Sat Apr 11 11:44:15 2009 UTC

  Modified files:              (Branch: PHP_5_3)
    /php-src/main/streams       plain_wrapper.c 
  Log:
  MFH: Added support for passing O_NONBLOCK to the underlying open() system call
  
  
http://cvs.php.net/viewvc.cgi/php-src/main/streams/plain_wrapper.c?r1=1.52.2.6.2.23.2.13&r2=1.52.2.6.2.23.2.14&diff_format=u
Index: php-src/main/streams/plain_wrapper.c
diff -u php-src/main/streams/plain_wrapper.c:1.52.2.6.2.23.2.13 
php-src/main/streams/plain_wrapper.c:1.52.2.6.2.23.2.14
--- php-src/main/streams/plain_wrapper.c:1.52.2.6.2.23.2.13     Tue Feb 10 
16:14:18 2009
+++ php-src/main/streams/plain_wrapper.c        Sat Apr 11 11:44:15 2009
@@ -16,7 +16,7 @@
    +----------------------------------------------------------------------+
  */
 
-/* $Id: plain_wrapper.c,v 1.52.2.6.2.23.2.13 2009/02/10 16:14:18 iliaa Exp $ */
+/* $Id: plain_wrapper.c,v 1.52.2.6.2.23.2.14 2009/04/11 11:44:15 mkoppanen Exp 
$ */
 
 #include "php.h"
 #include "php_globals.h"
@@ -70,7 +70,11 @@
                        /* unknown mode */
                        return FAILURE;
        }
-
+#if defined(O_NONBLOCK)
+       if (strchr(mode, 'n')) {
+               flags |= O_NONBLOCK;
+       }
+#endif
        if (strchr(mode, '+')) {
                flags |= O_RDWR;
        } else if (flags) {



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

Reply via email to