
17 Jul
2006
17 Jul
'06
10:41 a.m.
Bulat Ziganshin wrote:
- I include file io.h, but this particular system has "sys/io.h" instead.
Just out of the blue: could it be that you rather need
- mingw supports _commit operation which (as i guess) saves to disk buffers of given file. Is that true that regular unixes has fsync function to perform the same action? (and what the hell MS don't use the same name??)
Not all unixes (unii?) have fsync() syscall, but most of them do. And all modern ones, I guess. If your platform does not have fsync(), it is recommended to fallback to sync(). Eugene