[Mono-devel-list] Flushing a FileStream to disk
jeroen at sumatra.nl
Sun Nov 7 08:09:11 EST 2004
Dick Porter wrote:
> Sounds like fsync or fdatasync (both in Mono.Posix.Syscall)
> are what you need, depending on whether you want to update the
> metadata too.
> FileStream.Handle corresponds to the file descriptor since
> version 1.0.1 or so. Works for sockets too.
Thanks. I'll use FlushFileBuffers on Windows and on non-Windows systems
I'll use Mono.Posix.Syscall.fsync and I'll fall back to
System.IO.MonoIO.Flush on Mono 1.0.
Miguel: It might be a good suggestion for ECMA to add Sync() to
More information about the Mono-devel-list