cvs: php-src /main/streams plain_wrapper.c

From: Date: Sat, 11 Apr 2009 11:44:06 +0000
Subject: cvs: php-src /main/streams plain_wrapper.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-56991@lists.php.net to get a copy of this message
mkoppanen Sat Apr 11 11:44:06 2009 UTC Modified files: /php-src/main/streams plain_wrapper.c Log: 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.101&r2=1.102&diff_format=u Index: php-src/main/streams/plain_wrapper.c diff -u php-src/main/streams/plain_wrapper.c:1.101 php-src/main/streams/plain_wrapper.c:1.102 --- php-src/main/streams/plain_wrapper.c:1.101 Tue Mar 10 23:40:01 2009 +++ php-src/main/streams/plain_wrapper.c Sat Apr 11 11:44:06 2009 @@ -16,7 +16,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: plain_wrapper.c,v 1.101 2009/03/10 23:40:01 helly Exp $ */ +/* $Id: plain_wrapper.c,v 1.102 2009/04/11 11:44:06 mkoppanen Exp $ */ #include "php.h" #include "php_globals.h" @@ -67,7 +67,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) {

« previous php.cvs (#56991) next »