cvs commit: src/sys/kern sys_generic.c
ache at nagual.pp.ru
Sun Jul 3 01:10:48 GMT 2005
On Tue, Jan 25, 2005 at 11:26:32AM +0100, Poul-Henning Kamp wrote:
> Show me code which breaks please.
It is not an argument. Your commit violates both POSIX and SUSv3, namely
"This volume of IEEE Std 1003.1-2001 requires that no action be taken for
read() or write() when nbyte is zero. This is not intended to take
precedence over detection of errors (such as invalid buffer pointers or
file descriptors). This is consistent with the rest of this volume of IEEE
Std 1003.1-2001, but the phrasing here could be misread to require
detection of the zero case before any other errors."
I simple don't want to spend time to search code now broken.
If you read my previous message to the end, I already mention the case
which is obviously broken: FIFOs blocking and EAGAIN returning - it must
happens for zero byte reads too.
More information about the cvs-src