[squeak-dev] filesize reporting 0 for very large files

Nicolai Hess nicolaihess at googlemail.com
Sun Mar 18 20:31:05 UTC 2012


Am 18. März 2012 21:06 schrieb Nicolai Hess <nicolaihess at web.de>:

> 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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20120318/02dd24de/attachment.htm


More information about the Squeak-dev mailing list