in reply to Re: file truncate not working on 128GB file in Windows
in thread file truncate not working on 128GB file in Windows

Are you sure about that? Win32 API for 32-bit hosts includes functions for working with 64 bit file offsets, and 32-bit perl can be compiled with 64-bit IV. I would think the config to check would be $Config{ivsize}. Well, unless you know for sure that some detail of 32-bit windows perl builds prevented 64-bit file offsets.

Replies are listed 'Best First'.
Re^3: file truncate not working on 128GB file in Windows
by syphilis (Archbishop) on Feb 09, 2024 at 00:07 UTC
    Are you sure about that?

    Good question.
    I readily accepted sectokia's assertion, but I don't really know.

    One can (and I routinely do) build "MSWin32-x86" perls on my 64-bit Windows 11 box.
    Would the same limitation apply to those perls ?
    Some of those 32-bit builds have ivsize of 4, others have ivsize of 8, but they all have ptrsize of only 4.

    Cheers,
    Rob