[fpc-pascal] Truncate procedure unable to work under Linux, is this a bug?

Marco van de Voort marcov at stack.nl
Wed May 20 18:33:31 CEST 2015

In our previous episode, Peter said:
> >
> Thanks for that. So is it a bug then? Why is 64-bit not using ftruncate64?

I'm no linux expert, but I assume because it is only for 32-bit. On 64-bit,
off_t already is 64-bit, so the posix template matches 1:1, and there is no
need for another function.

Most BSDs have off_t at 64-bit, and therefore don't have this problem.

More information about the fpc-pascal mailing list