delorie.com/archives/browse.cgi | search |
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 |
Message-ID: | <4078D165.3020303@att.net> |
Date: | Sun, 11 Apr 2004 01:02:29 -0400 |
From: | David Fritz <zeroxdf AT att DOT net> |
User-Agent: | Mozilla Thunderbird 0.5 (Windows/20040207) |
MIME-Version: | 1.0 |
To: | cygwin AT cygwin DOT com |
Subject: | Re: working sync() code |
X-IsSubscribed: | yes |
GARY VANSICKLE wrote: [...] > FlushFileBuffers() doesn't actually do much last I checked. Despite its > misleading name, it is not a > "commit-to-disk-and-don't-return-until-its-done" [...] SUSv3 has this to say about sync(): <quote> The sync() function shall cause all information in memory that updates file systems to be scheduled for writing out to all file systems. The writing, although scheduled, is not necessarily complete upon return from sync(). </quote> So such semantics don't seem to be necessary. It also indicates that sync() should return void not int. Cheers -- 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/
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |