[Mono-dev] Cross-platform fsync()

Patrick Earl mono at patearl.net
Tue Jan 9 18:40:12 EST 2007


Greetings all.  I've recently run into the need for a cross platform
fsync() call.  As far as I know, all of the flavors of unix that mono
supports provide the fsync call themselves.  On windows, there is a
_commit() function that does the same thing.  It seems like the
underlying platform support is there, but I'm not sure how to bring
that back up into the .net world so we can, for example, perform some
sort of flush to disk operation on a FileStream.  Suggestions?  Ideas?

        Patrick



More information about the Mono-devel-list mailing list