Mail Archives: djgpp-workers/2001/10/11/15:59:19
Martin Stromberg wrote:
>
> Richard said:
[snip]
> > off_t does not allow us to handle the full extent of files > 2GB in
> > size, because off_t is too small right now. Hence this thread.
>
> No. You don't get it. It the same exercise again. You pass in the
> negative number and it doesn't matter. It will seek to the right
> place.
I'm not convinced by your argument. Consider relative seeks:
lseek(fd, SEEK_SET, 2GB - 10);
lseek(fd, SEEK_CUR, 1GB);
Now I want to seek backwards 2.5GB. How would I do that? How does lseek
know which direction I want to go for relative seeks with |offset| > 2GB?
Incidentally, why does lseek check whether the file descriptor is a pipe
or not, after it's done the INT21h call? Shouldn't it do it before the
interrupt?
Thanks, bye, Rich =]
--
Richard Dawe
http://www.phekda.freeserve.co.uk/richdawe/
- Raw text -