[fpc-pascal] FlushBuffers of FileStream

Roland Turcan konf at rotursoft.sk
Thu Apr 30 14:50:35 CEST 2009


Hello FPC-Pascal users discussions!

I have used this Delphi/Kylix3 this code for flushing of buffers in my
own stream descendant

{$IFDEF WIN32}
  FlushFileBuffers (Handle);
{$ELSE}
  fdatasync (Handle);
{$ENDIF}

I have found in linux.pp calling of fdatesync, but ...

How to flush buffers in Mac OS X?

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




More information about the fpc-pascal mailing list