From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 6709 invoked by alias); 13 May 2013 16:57:20 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 6690 invoked by uid 89); 13 May 2013 16:57:20 -0000 X-Spam-SWARE-Status: No, score=-1.9 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=3.3.1 Received: from aquarius.hirmke.de (HELO calimero.vinschen.de) (217.91.18.234) by sourceware.org (qpsmtpd/0.84/v0.84-167-ge50287c) with ESMTP; Mon, 13 May 2013 16:57:15 +0000 Received: by calimero.vinschen.de (Postfix, from userid 500) id 75E9C5201ED; Mon, 13 May 2013 18:57:12 +0200 (CEST) Date: Mon, 13 May 2013 16:57:00 -0000 From: Corinna Vinschen To: cygwin@cygwin.com Subject: Re: mktime loop Message-ID: <20130513165712.GH8890@calimero.vinschen.de> Reply-To: cygwin@cygwin.com Mail-Followup-To: cygwin@cygwin.com References: <5244063b734b165baf34bdebaff0aca5@denis-excoffier.org> <20130513153651.GD5045@calimero.vinschen.de> <20130513154921.GF8890@calimero.vinschen.de> <27BBE8FE-303A-432D-94AA-AF834124D125@Denis-Excoffier.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <27BBE8FE-303A-432D-94AA-AF834124D125@Denis-Excoffier.org> User-Agent: Mutt/1.5.21 (2010-09-15) X-SW-Source: 2013-05/txt/msg00141.txt.bz2 On May 13 18:41, Denis Excoffier wrote: > On 2013-05-13 17:49, Corinna Vinschen wrote: > > Erm... hang on. Is that really a problem? 2147483647 is 0x7fffffff, > > which is the maximum you get with a 4 byte time_t (== signed long) > > anyway. If you switch the date to 2038-01-20, the value will be > > negative, and therefore outside the scope of the 4 byte time_t. So this > > is a hard restriction of using 4 byte time_t. > > > > The solution is: > > > > - Either somebody changes 32 bit Cygwin to 8 byte time_t while keeping > > all the 4 byte time_t APIs intact to maintain compatibility with > > existing binaries(*), > > > > - or, you switch to a 64 bit Windows and use 64 bit Cygwin ;) > > > I understand. > > I suppose you will however be willing to provide us a means to workaround > the "autoconf mktime usability test failing" (see for example in > gawk-4.1.0 where all the tm fields are set to 128). Now, instead of only > failing (i presume), it hangs. Sorry, this specific point should have been > noticed in my original post. > > Or do we have to patch every impacted ./configure? Good point. I guess the right thing to do here is for mktime to return -1 instead of hanging. I look into that. Corinna -- Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Maintainer cygwin AT cygwin DOT com Red Hat -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple