Mail Archives: djgpp-workers/2000/01/13/03:27:04
On Wed, 12 Jan 100, Martin Str|mberg wrote:
> I've been thinking about the problem that the _llseek call can't
> figure out if the position is negative or positive by calling
> _llseek(fd, 0, SEEK_CUR).
>
> I think I've found a solution: if _llseek checks the position first
> before moving the file pointer, and limits the movement of the pointer
> to be withing [ 0, MAX_SIZE_IN_FAT32].
>
> This requires an extra call to the INT21 function for the SEEK_CUR
> case.
I don't see anything wrong with this, but could you please reiterate
the exact nature of the problem? It's a long time since we discussed
this.
Didn't you tell at one point that the maximum file size on FAT32 is
less than 2^32, and that this could help us solve the problems?
- Raw text -