Mailing-List: contact cygwin-developers-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-developers-owner AT sources DOT redhat DOT com Delivered-To: mailing list cygwin-developers AT sources DOT redhat DOT com Date: Tue, 18 Sep 2001 11:35:23 -0400 From: Christopher Faylor To: cygwin-developers AT cygwin DOT com Subject: Re: WriteFile() whacks st_atime patch Message-ID: <20010918113523.B510@redhat.com> Reply-To: cygwin-developers AT cygwin DOT com Mail-Followup-To: cygwin-developers AT cygwin DOT com References: <20010917183734 DOT D10081 AT cygbert DOT vinschen DOT de> <20010918103321 DOT B1332 AT dothill DOT com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20010918103321.B1332@dothill.com> User-Agent: Mutt/1.3.21i On Tue, Sep 18, 2001 at 10:33:21AM -0400, Jason Tishler wrote: >Corinna, > >On Mon, Sep 17, 2001 at 06:37:34PM +0200, Corinna Vinschen wrote: >> since your both patches to set the file time will probably result in a >> performance loss > >You are being too gentle, my proposed patches will definitely be a >performance hit. The only question that remains is how much? > >> and since only a few applications have a problem with >> the windows behaviour... what do you think about conditionalize your >> patch using a global flag (e.g. force_unix_ftime_behaviour) which is >> set to FALSE by default? > >The above may be a good compromise. However, this means that one must be >careful that *all* necessary apps are built appropriately. For example, >the mutt maintainer (currently you) and the procmail maintainer (most >likely me) will have to both link against the proposed setftime.o. >Otherwise, the mailbox access times will not behave Posix-like. >Furthermore, if someone (occasionally) uses an apps not built >appropriately to access/process their mailbox files, then they may get >"transient," unexpected behavior. > >At the risk of Chris's wrath... Um, er, what about a new CYGWIN setting >so that my proposed patches can affect all apps or no apps? In this >way, users can choose their policy -- strict Posix st_atime compliance >at the expense of performance or vice versa. I actually proposed the link option since it fixes the problem at the source. If you link mutt with setftime.o you will not be constantly saying "Didn't you read the FAQ, you idiot? You have to set CYGWIN=ftime!" mutt will just work. The issue of mutt not working correctly has been a hot mailing list topic. However, I don't think that the issue of atime not being set the same way UNIX sets it has really been of generic enough interest to warrant YA CYGWIN variable. cgf