[Patch, libfortran] PR 40812 Large file support on MinGW

Janne Blomqvist blomqvist.janne@gmail.com
Fri Dec 4 16:31:00 GMT 2009


On Fri, Dec 4, 2009 at 16:25, Tobias Burnus <burnus@net-b.de> wrote:
> On 12/03/2009 05:56 PM, Janne Blomqvist wrote:
>> Yes, I misread the description for SetFilePointerEx on MSDN, or rather
>> I didn't read it and just assumed it would work like POSIX lseek().
>> Attached is a further revised version of the patch that uses lseek
>> (which is as of this patch redefined as _lseeki64 on MinGW). Also, it
>> tries to seek back to the original position in case something went
>> wrong in order to make it behave more like ftruncate().
>>
>
> Your patch is OK with changing "_off64_t" to "off64_t" as suggested by
> Danny.
> Thanks for bringing large-file support to gfortran on Windows!

Thanks, committed as r154984.  Also, big thanks to Kai Tietz and Danny
Smith for testing and helping with the win32 API.

-- 
Janne Blomqvist



More information about the Fortran mailing list