Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT sources DOT redhat DOT com Delivered-To: mailing list cygwin AT sources DOT redhat DOT com Date: Tue, 13 Feb 2001 15:23:13 -0500 From: Christopher Faylor To: cygwin AT cygwin DOT com Subject: Re: Optimizing away "ReadFile" calls when Make calls stat() Message-ID: <20010213152313.A12830@redhat.com> Reply-To: cygwin AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com References: <4 DOT 3 DOT 1 DOT 2 DOT 20010213134821 DOT 019a7130 AT pop DOT ma DOT ultranet DOT com> <20010213190131 DOT 14369 DOT qmail AT lizard DOT curl DOT com> <200102131935 DOT OAA09136 AT envy DOT delorie DOT com> <20010213194612 DOT 17311 DOT qmail AT lizard DOT curl DOT com> <200102131954 DOT OAA09284 AT envy DOT delorie DOT 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