Can anyone tell me how to force a windows system to commit it's write buffers to disk. This doesn't work on windows ...
O_SYNC being undefined on win32. I don't care how the data is written (syswrite, print, write etc) so long as its actually committed to disk immediately by the OS.