Re: [PATCH] 0-byte read()/write() behaviour

From: Pavel Machek (pavel@suse.cz)
Date: Mon Oct 23 2000 - 07:19:31 EST


Hi!

> > I suspect SUS only talks about regular files.
>
> As I'm reading it, they're talking about every read() call, even those with
> an invalid fd.

I'd say _they_ are broken in such case. read(invalid_fd, NULL, 0)
should give error, not pretend success.

-- 
Philips Velo 1: 1"x4"x8", 300gram, 60, 12MB, 40bogomips, linux, mutt,
details at http://atrey.karlin.mff.cuni.cz/~pavel/velo/index.html.

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Mon Oct 23 2000 - 21:00:21 EST