delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2003/03/04/00:41:58

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
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 <cgf-cygwin AT cygwin DOT com>
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: <CDDB93E84A8DD411B01900D0B78278400F0A576D AT IE10-SAHARA>
Mime-Version: 1.0
In-Reply-To: <CDDB93E84A8DD411B01900D0B78278400F0A576D@IE10-SAHARA>
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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019