Re: cvs: php4 /ext/standard file.c
| From: | Sascha Schumann | Date: | Fri, 22 Dec 2000 18:04:45 +0000 |
| Subject: | Re: cvs: php4 /ext/standard file.c | ||
| References: | 1 | Groups: | php.cvs |
| Request: | Send a blank email to php-cvs+get-3236@lists.php.net to get a copy of this message | ||
> On my Linux:
> EINTR The call was interrupted by a signal before any data was
> written.
*Before* any data was written.
> ENOSPC The device containing the file referred to by fd has no room
> for 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.html
Feel free to prove me incorrect. :-)
- Sascha