Re: [PATCH] 2.4.19-pre3 - readv/writev should return EINVAL for count=0

Alex Riesen (Alexander.Riesen@synopsys.com)
Thu, 21 Mar 2002 08:34:08 +0100


I would disagree. According to the spec "The iovcnt argument is valid
if greater than 0 and less than or equal to {IOV_MAX}, as defined in
<limits.h>" (http://www.opengroup.org/onlinepubs/007904975/).
The behaviour you want to achieve is described as optional, besides
there is programs depending on the old behaviour (of my own at least :).
It's very handy to skip extra zero-parameter check...
-alex

On Wed, Mar 20, 2002 at 12:53:47PM -0600, Paul Larson wrote:
> This is a minor patch against 2.4.19-pre3 for readv/writev to have it
> return EINVAL if count=0 is passed to it. According to the man page and
> also the specifications for readv/writev, this is the correct behaviour.
>
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/