[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [MiNT] Max file size
Roger Burrows wrote:
As noted by many others earlier today, 2GB is the limit for the underlying
Fwrite() system call (and associated file access calls). Windows had the same
problem and initially pushed it to 4GB-1 with a kludge, the major one being
that the equivalent of Fseek() returned -1L on any error;
If I'm not wrong, reading or writing a big file with a 32-bit API is not
such a big problem.
It would be a problem for Fwrite() if you want to write a huge section
bigger than 2 GB. This could only be useful if you have more than 2 GB
of RAM or strange use of virtual memory. Both reason will never occur in
MiNT. Same for Fread().
Fsfirst() will never be able to report the size of a file > 4 GB. This
is a limitation. However, it is probably already the case for Dfree() ?
Fseek() cannot seek directly to a position farther from 4 GB, but you
can use Fseek() multiple times, starting from the current position. So
you can seek as far as you want in the file.
Finally, I think that manipulating files bigger than 2 GB could be
possible on TOS, if the applications are carefully written.
But I'm not sure this would be really useful :S
--
Vincent Rivière