http://www.opengroup.org/onlinepubs/007904975/
"The Open Group Base Specifications Issue 6", IEEE Std 1003.1-2001:
The readv() function may fail if:
[EINVAL]
The iovcnt argument was less than or equal to 0, or greater than {IOV_MAX}.
Notice the "may"? From the same document:
may
Describes a feature or behavior that is optional for an implementation
that conforms to IEEE Std 1003.1-2001. An application should not rely on
the existence of the feature or behavior. An application that relies on
such a feature or behavior cannot be assured to be portable across
conforming implementations.
To avoid ambiguity, the opposite of may is expressed as need not,
instead of may not.
So the 0 there just mean nothing, exactly what you get.
-alex
-
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/