[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug #32472] Shouldn't use sync ()

From: КоренбергМарк
Subject: [bug #32472] Shouldn't use sync ()
Date: Fri, 22 Apr 2011 18:01:26 +0000
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US) AppleWebKit/534.16 (KHTML, like Gecko) Ubuntu/10.10 Chromium/10.0.648.205 Chrome/10.0.648.205 Safari/534.16

Follow-up Comment #13, bug #32472 (project grub):

Okay, just what I want to see :) Thanks. Really.

But I have some notes about mingw.

According to http://msdn.microsoft.com/en-us/library/17618685 fsync may be
implemented as:
int fsync(int fd) 
   return _commit(fd);
/* Please do not implement as '#define fsync(x) _commit(x)' or '#define fsync
_commit'. */

Googling says, that there is implmentation via FlushFileBuffers(), but
http://support.microsoft.com/kb/99456 says, that 
_commit is equivalent of FlushFileBuffers, so _commit() is preffered, as it
automatically set errno in case of error.

2. Unused sync() stub for mingw should be removed, as I think.


Reply to this item at:


  Message sent via/by Savannah

reply via email to

[Prev in Thread] Current Thread [Next in Thread]