[fpc-pascal] Calling DO_SYSCALL on Mac OS X

Roland Turcan konf at rotursoft.sk
Wed May 20 15:40:49 CEST 2009


Hello FPC-Pascal users discussions!

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.

When my application crashes all files modified over TFileStream are
broken.

How to force flushing file stream?

Thanks.

-- 
Best regards, TRoland
http://www.rotursoft.sk
http://exekutor.rotursoft.sk




More information about the fpc-pascal mailing list