[Vm-dev] Fwd: filesize reporting 0 for very large files
Bert Freudenberg
bert at freudenbergs.de
Sun Mar 18 22:32:37 UTC 2012
Begin forwarded message:
> From: Nicolai Hess <nicolaihess at googlemail.com>
> Subject: Re: [squeak-dev] filesize reporting 0 for very large files
> Date: 18. März 2012 21:31:05 MEZ
> To: The general-purpose Squeak developers list <squeak-dev at lists.squeakfoundation.org>
> Reply-To: The general-purpose Squeak developers list <squeak-dev at lists.squeakfoundation.org>
>
> For the 32Bit unix VM,
> primitiveDirectoryLookup and primitiveFileSize doesn't work with files larger than
> 2^32 bits.
> Possible workaround/fix.
> Build with -D_FILE_OFFSET_BITS=64
> and replace ftell,fseek in sqFilePluginBasicPrims with ftello,fseeko.
> Now reading filesize for files larger than 2^32 bits works, but I don't know if
> there are any side effects.
>
> regards
> Nicolai
>
>
More information about the Vm-dev
mailing list