delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2001/02/13/14:45:09

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT sources DOT redhat DOT com
Delivered-To: mailing list cygwin AT sources DOT redhat DOT com
Message-ID: <3A898A3A.111A7D5C@beamreachnetworks.com>
Date: Tue, 13 Feb 2001 11:25:46 -0800
From: "Eric M. Monsler" <emonsler AT beamreachnetworks DOT com>
X-Mailer: Mozilla 4.76 [en] (WinNT; U)
X-Accept-Language: en
MIME-Version: 1.0
To: Jonathan Kamens <jik AT curl DOT com>
CC: cygwin AT cygwin DOT com
Subject: Re: Optimizing away "ReadFile" calls when Make calls stat()
References: <20010213183634 DOT 1435 DOT qmail AT lizard DOT curl DOT com>

I don't understand the change that you are proposing, unless it is to
change the API for stat() to include two more flags.

The Cygwin-API reference lists stat() as being compatible with POSIX.1,
so the API is not really changeable, without a significant chance of
breaking every other application under Cygwin that uses stat.

Not to mention that you would have also forked GNU Make, or else added a
compilation dependency, that would need to get folded back in.

On re-reading your post, it appears that you are not proposing an API
change to stat, but rather another call that will set/unset that part of
stat()'s behavior in the DLL.  For everything in the system?  Is your
proposed change MT-safe?  


I believe that the proposal to cache the results of ReadFile() was
intended to suggest that inside stat(), only one ReadFile might be
required.  This seems like a good idea, performance enhancing and
standards preserving.  I don't know ReadFile, and so don't know if this
would be possible.


Eric Monsler

--
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple

- Raw text -


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