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

Alan Cox (alan@lxorguk.ukuu.org.uk)
Wed, 20 Mar 2002 23:48:00 +0000 (GMT)


> 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.

I beg to disagree. The existing behaviour is compliant. The behaviour for
writing/reading 0 may optionally return -EINVAL. (Single Unix Spec v3).

Alan
-
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/