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 Date: Tue, 4 Mar 2003 00:41:59 -0500 From: Christopher Faylor To: cygwin AT cygwin DOT com Subject: Re: Question on sync Message-ID: <20030304054158.GA26575@redhat.com> Reply-To: cygwin AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.1i On Tue, Mar 04, 2003 at 10:52:35AM +0530, Manik, Raina (IE10) wrote: >Does sync()on cygwin give the same guarantees as it does on other >unices ? Does it guarantee that all the file blocks in memory caches >are flushed onto disk ? No. In fact sync() on cygwin does nothing at all. It probably should set ENOSYS. fsync() works, though. It is just a wrapper around this: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/fileio/base/flushfilebuffers.asp cgf -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/