From owner-cvs-src@FreeBSD.ORG Fri Jan 19 01:16:36 2007 Return-Path: X-Original-To: cvs-src@FreeBSD.org Delivered-To: cvs-src@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 3C91E16A415; Fri, 19 Jan 2007 01:16:36 +0000 (UTC) (envelope-from imp@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [69.147.83.41]) by mx1.freebsd.org (Postfix) with ESMTP id 0F35813C441; Fri, 19 Jan 2007 01:16:36 +0000 (UTC) (envelope-from imp@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.6/8.13.6) with ESMTP id l0J1GZvb021865; Fri, 19 Jan 2007 01:16:35 GMT (envelope-from imp@repoman.freebsd.org) Received: (from imp@localhost) by repoman.freebsd.org (8.13.6/8.13.4/Submit) id l0J1GZcD021864; Fri, 19 Jan 2007 01:16:35 GMT (envelope-from imp) Message-Id: <200701190116.l0J1GZcD021864@repoman.freebsd.org> From: Warner Losh Date: Fri, 19 Jan 2007 01:16:35 +0000 (UTC) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Cc: Subject: cvs commit: src/lib/libc/stdtime localtime.c X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 19 Jan 2007 01:16:36 -0000 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