delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2013/05/13/12:57:35

X-Recipient: archive-cygwin AT delorie DOT com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:date:from:to:subject:message-id:reply-to
:references:mime-version:content-type:in-reply-to; q=dns; s=
default; b=BM/t1jhYa0eAIfglxUv39cKbF2EzjE5tWxupC5qWMAFlpJSM19ZFT
yYehxGz6J7J2wUG2mCjXTyHjVGrXr7RnjObk9fESHVj1ymoErZodSzTJq9VMvnUl
CerKrfe7In8nGCVyu/N7nECZz3tYUa1bRKRiajT6c9soAR8tovB7mo=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:date:from:to:subject:message-id:reply-to
:references:mime-version:content-type:in-reply-to; s=default;
bh=97CSRsY9DKG61Xj0RVCJWmilMNY=; b=Mq/sOOtVywaD7Lw1N5Nq5YeRtYvu
+70yPv1yN3ohK5IK3qbn6NcpX4TJZN+PF7XuZ8nRYx3pG1hXgigpjF4Bp4PcQ0YZ
N9qJsbcmeUfpgcS+Tqu2XRvBDcDst4FUDhg96FtxRkVLF8D8mTzAZiUMhng6Vjlx
xsWwz1dxsLeGkIw=
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
X-Spam-SWARE-Status: No, score=-1.9 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=3.3.1
Date: Mon, 13 May 2013 18:57:12 +0200
From: Corinna Vinschen <corinna-cygwin AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: mktime loop
Message-ID: <20130513165712.GH8890@calimero.vinschen.de>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
References: <5244063b734b165baf34bdebaff0aca5 AT denis-excoffier DOT org> <20130513153651 DOT GD5045 AT calimero DOT vinschen DOT de> <20130513154921 DOT GF8890 AT calimero DOT vinschen DOT de> <27BBE8FE-303A-432D-94AA-AF834124D125 AT Denis-Excoffier DOT org>
MIME-Version: 1.0
In-Reply-To: <27BBE8FE-303A-432D-94AA-AF834124D125@Denis-Excoffier.org>
User-Agent: Mutt/1.5.21 (2010-09-15)

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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019