Re: cvs: php4 /ext/standard file.c
| From: | Zeev Suraski | Date: | Fri, 22 Dec 2000 18:10:16 +0000 |
| Subject: | Re: cvs: php4 /ext/standard file.c | ||
| References: | 1 | Groups: | php.cvs |
| Request: | Send a blank email to php-cvs+get-3237@lists.php.net to get a copy of this message | ||
Take a look at my_write(). It appears to support just about everything, and it takes care of the problems you stated. We even have it in our source tree.
Zeev
At 20:04 22/12/2000, Sascha Schumann wrote:
On my Linux:-- Zeev Suraski <zeev@zend.com> CTO & co-founder, Zend Technologies Ltd. http://www.zend.com/EINTR The call was interrupted by a signal before any data waswritten.*Before* any data was written.ENOSPC The device containing the file referred to by fd has no roomfor the data.And here it was unable to write any data as well.In the case that *some* data was written, write(2) will always return the amount of data which was written. It won't tell you the reason why not all data was written (i.e. it won't return the amount of data and set errno at the same time). At least that it is my reading of SUSv2.http://www.unix-systems.org/onlinepubs/007908799/xsh/write.htmlFeel free to prove me incorrect. :-)- Sascha-- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-cvs-unsubscribe@lists.php.net For additional commands, e-mail: php-cvs-help@lists.php.net To contact the list administrators, e-mail: php-list-admin@lists.php.net