This is the mail archive of the
cygwin
mailing list for the Cygwin project.
sync(2)
- From: Reini Urban <rurban at x-ray dot at>
- To: cygwin <cygwin at cygwin dot com>
- Date: Wed, 27 Oct 2004 19:29:24 +0200
- Subject: 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/