Re: Ok, making ready for pre-2.4 and code-freeze..

Tigran Aivazian (tigran@sco.COM)
Tue, 21 Dec 1999 17:17:52 +0000 (GMT)


> Perhaps you meant that lseek(2) returns 0 on those offsets? errno does not
> matter as 0 is not an error case.

ok, I understand what you meant by those strange values of errno. I.e. if
we try to set offset to something large but instead get 0 return we
(assuming we are a bad application) check for errno and get something
undefined.

Why "bad application"? Because a good application should think "ok, the
only error return according to manpage is -1 so if the return is not -1 I
will not check for errno even if the offset *looks* unexpected, i.e.
different from offset supplied, assuming SEEK_SET".

Regards,
Tigran.

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/