Mail Archives: djgpp-workers/1999/08/05/05:55:53
According to <http://support.microsoft.com/support/kb/articles/q193/6/56.asp>:
"On computers using the FAT32 file system, the maximum file size is 4
GB minus 2 bytes".
Hence making llseek() return a long long and treating the return value
from lseek() (which has the return value from INT 21 call in dx:ax
IIRC) as unsigned, with special handling the return value 0xffffffff
to map it to -1, would resolve the llseek() problem.
Actually calling "lseek(fd, -3, SEEK_SET); write(fd, "?", 1)" might
produce a nearly 2GB file. I haven't tested that yet.
Right,
MartinS
- Raw text -