In our previous episode, Roland Turcan said:
[ Charset windows-1250 unsupported, converting... ]
> 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?

baseunix.Fpfsync .

fdatasync is just a newer "lighter" version of that, but not unices support
it yet. FreeBSD doesn't have it either, which is why it is in the OS
specific unit Linux.
_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Reply via email to