See http://bugzilla.kernel.org/show_bug.cgi?id=12919
Reported-by: Eelco Dolstra <dolstra@tudelft.nl>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
is available since glibc 2.1.94.
.SH "CONFORMING TO"
POSIX.1-2001.
+
+POSIX.1-2001 says that an implementation
+.I shall
+give the
+.B EINVAL
+error if
+.I len
+was 0, or
+.I offset
+was less than 0.
+POSIX.1-2001 says that an implementation
+.I shall
+give the
+.B EINVAL
+error if
+.I len
+is less than 0, or
+.I offset
+was less than 0, and
+.I may
+give the error if
+.I len
+equals zero.
.SH "SEE ALSO"
.BR fallocate (2),
.BR lseek (2),