This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

sync(2)


Is anybody aware of any cygwin app (supported or not) which uses/needs the sync() system call?
I found some occasional encounters of fsync(), but luckily no sync() yet. only in some unused testsuites :)


sync() should flush all open or cached file data and metadata. and volume master blocks.

The problem is that I have a simple patch, but this might get tricky if there are more processes involved, which I doubt. I doubt that there such a thing exists and that it will be useful at all.
We could also just flush all local NTFS volumes, but this would need Administrator privileges (and therefore probably cygserver support).


* http://www.sysinternals.com/ntw2k/source/misc.shtml#sync
* http://msdn.microsoft.com/library/en-us/fileio/base/flushfilebuffers.asp * http://www.cygwin.com/ml/cygwin-patches/2004-q4/msg00086.html
--
Reini Urban
http://xarch.tu-graz.ac.at/home/rurban/



-- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]