Mailing-List: contact cygwin-help@sourceware.cygnus.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@sources.redhat.com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin@sources.redhat.com>
List-Help: <mailto:cygwin-help@sources.redhat.com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner@sources.redhat.com
Delivered-To: mailing list cygwin@sources.redhat.com
Date: Tue, 13 Feb 2001 15:23:13 -0500
From: Christopher Faylor <cgf@redhat.com>
To: cygwin@cygwin.com
Subject: Re: Optimizing away "ReadFile" calls when Make calls stat()
Message-ID: <20010213152313.A12830@redhat.com>
Reply-To: cygwin@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
References: <4.3.1.2.20010213134821.019a7130@pop.ma.ultranet.com> <20010213190131.14369.qmail@lizard.curl.com> <200102131935.OAA09136@envy.delorie.com> <20010213194612.17311.qmail@lizard.curl.com> <200102131954.OAA09284@envy.delorie.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
User-Agent: Mutt/1.3.11i
In-Reply-To: <200102131954.OAA09284@envy.delorie.com>; from dj@delorie.com on Tue, Feb 13, 2001 at 02:54:01PM -0500

On Tue, Feb 13, 2001 at 02:54:01PM -0500, DJ Delorie wrote:
>> But it does nothing at all for the "usual case" I'm trying to
>> optimize, which is Make stat()ing a file but never reading it.
>
>It does, because stat() reads the file twice, once to see if it's a
>symlink, and once to see if the executable bit needs to be set.

If it is actually doing this, then that's a bug.  I went to some effort
a year or so ago to do away with the second read.

cgf

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

