On Wed, 20 May 2015, Peter wrote:

On 20/05/15 16:36, Marco van de Voort wrote:
In our previous episode, Peter said:

It should work if Truncate64 is used instead of Truncate.
I suggest its a bug, albeit probably a wishlist one.

http://man7.org/linux/man-pages/man2/ftruncate.2.html
ftruncate64 is already used for 32-bit CPUs, ftruncate for 64-bit cpus

You can get info on what FPC sends to the kernel using strace.
_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Thanks for that. So is it a bug then? Why is 64-bit not using ftruncate64?


It is a bug in the system unit. I committed a patch in rev. 30892.

Michael.
_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Reply via email to