Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 19 Jan 2007 01:16:35 +0000 (UTC)
From:      Warner Losh <imp@FreeBSD.org>
To:        src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   cvs commit: src/lib/libc/stdtime localtime.c
Message-ID:  <200701190116.l0J1GZcD021864@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
imp         2007-01-19 01:16:35 UTC

  FreeBSD src repository

  Modified files:
    lib/libc/stdtime     localtime.c 
  Log:
  On FreeBSD/arm, any value > 50 bits will result in a rediculously huge
  number being returned for mktime and timegm calls.  Choose 48 because
  that works well.  This does reduce the dynamic range of tm_year from
  about 2 billion years down to "only" about 9 million years.  Please
  contact me if this restriction poses a problem.
  
  Due to the complexity of the code, I admit that I didn't trace down
  what, exactly, was overflowing with longer bits.  This fixes software
  that we run on the embedded systems we have.
  
  Revision  Changes    Path
  1.41      +2 -2      src/lib/libc/stdtime/localtime.c



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200701190116.l0J1GZcD021864>