readv() return and errno

Jim Hollenback (jholly@cup.hp.com)
Fri, 15 Mar 2002 13:54:26 -0800


In doing some testing on the project I'm working on I came
across something that is causing a bit of confusion on my part.

According to readv(2) EINVAL is returned for an invalid
argument. The examples given were count might be greater than
MAX_IOVEC or zero. The test case I am working with has count = 0
and I get return of 0 and errno 0 instead of the expected -1
and errno EINVAL.

Am I missing something?

Thanks!

Jim Hollenback
-
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/