X-Spam-Check-By: sourceware.org
Date: Fri, 20 Jan 2006 19:22:39 +0200
Message-Id: <uk6curezk.fsf@gnu.org>
From: Eli Zaretskii <eliz@gnu.org>
To: ericblake@comcast.net (Eric Blake)
CC: cygwin@cygwin.com, henman@it.to-be.co.jp, emacs-devel@gnu.org
In-reply-to:  	<012020061701.4999.43D11771000C3BE00000138722058861720A050E040D0C079D0A@comcast.net> 	(ericblake@comcast.net)
Subject: Re: New platform independent problem
Reply-to: Eli Zaretskii <eliz@gnu.org>
References:  <012020061701.4999.43D11771000C3BE00000138722058861720A050E040D0C079D0A@comcast.net>
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
Precedence: bulk
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie.com@cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com

> From: ericblake@comcast.net (Eric Blake)
> Cc: cygwin@cygwin.com, henman@it.to-be.co.jp, emacs-devel@gnu.org
> Date: Fri, 20 Jan 2006 17:01:37 +0000
> 
> > You could have a flag that, if set, will instruct readdir to do the
> > expensive processing.  Applications that need the real inode will set
> > that flag.
> 
> And then we would have to change applications to call this nonstandard
> entry point at the beginning of their program to set the flag.

Not necessarily, you could do that in a static constructor in a
Cygwin-specific source file, far from the application's sources, which
will remain unpolluted.

> As long as we are editing programs, we might as well teach them to
> respect a sentinel of -1 without having to resort to adding a
> nonstandard entry point.

I don't see how this is better: -1 is an arbitrarily picked value,
with no relation to any standard.  Why should applications learn about
it?

--
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/

