[fpc-pascal] Calling DO_SYSCALL on Mac OS X

Jonas Maebe jonas.maebe at elis.ugent.be
Wed May 20 15:54:26 CEST 2009


On 20 May 2009, at 15:40, Roland Turcan wrote:

> I need to flush buffers from TFileStream which I should use function
> "fpfsync (Handle)", but as far as I found, there is no implementation
> of DO_SYSCALL for mac. DO_SYSCALL is implemented only for BSD.

Why do you think that you need DO_SYSCALL?

> When my application crashes all files modified over TFileStream are
> broken.
>
> How to force flushing file stream?

uses
   unix;
...
   fpfsync(handle).


Jonas




More information about the fpc-pascal mailing list