Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Message-ID: <417FDAF4.6050404@x-ray.at> Date: Wed, 27 Oct 2004 19:29:24 +0200 From: Reini Urban User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; de-AT; rv:1.8a3) Gecko/20040817 MIME-Version: 1.0 To: cygwin Subject: sync(2) Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes 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/