From owner-cvs-src-old@FreeBSD.ORG Wed Oct 27 07:15:03 2010 Return-Path: Delivered-To: cvs-src-old@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B33A010656A7 for ; Wed, 27 Oct 2010 07:15:03 +0000 (UTC) (envelope-from edwin@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id 9AF7F8FC15 for ; Wed, 27 Oct 2010 07:15:03 +0000 (UTC) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.4/8.14.4) with ESMTP id o9R7F3C9001482 for ; Wed, 27 Oct 2010 07:15:03 GMT (envelope-from edwin@repoman.freebsd.org) Received: (from svn2cvs@localhost) by repoman.freebsd.org (8.14.4/8.14.4/Submit) id o9R7F3G4001481 for cvs-src-old@freebsd.org; Wed, 27 Oct 2010 07:15:03 GMT (envelope-from edwin@repoman.freebsd.org) Message-Id: <201010270715.o9R7F3G4001481@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: svn2cvs set sender to edwin@repoman.freebsd.org using -f From: Edwin Groothuis Date: Wed, 27 Oct 2010 07:14:46 +0000 (UTC) To: cvs-src-old@freebsd.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/contrib/tzcode/stdtime asctime.c localtime.c src/contrib/tzcode/zic zic.8 zic.c X-BeenThere: cvs-src-old@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: **OBSOLETE** CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 27 Oct 2010 07:15:03 -0000 edwin 2010-10-27 07:14:46 UTC FreeBSD src repository Modified files: contrib/tzcode/stdtime asctime.c localtime.c contrib/tzcode/zic zic.8 zic.c Log: SVN rev 214411 on 2010-10-27 07:14:46Z by edwin Sync code with tzcode2010m asctime.c: * Set errno to EINVAL and return "??? ??? ?? ??:??:?? ????\n" if asctime_r is called with a NULL struct tm pointer. (Note that asctime_r is called by ctime_r and asctime; asctime is called by ctime.) localtime.c: * Set errno to EINVAL and return WRONG if time1 is called with a NULL struct tm pointer; avoid dereference if a NULL struct tm pointer is passed to timelocal, timegm, or timeoff. (Note that time1 is called by mktime, timegm, and timeoff; mktime is called by timelocal.) * more core-avoidance work * Change to set timezone and altzone based on time types with greatest transition times (for the benefit of Asia/Seoul). zic.8: * Warning about case-sensitivity of names, but not of abbrevations zic.c: * Conditionally output extra types with most-recently-use offsets last (for use by systems with pre-2011 versions of localtime.c, helping to ensure that globals "altzone and "timezone" get set correctly). The code has been running for nearly four weeks on my laptop running FreeBSD 8.1 without a problem. MFC after: 1 month Revision Changes Path 1.2 +8 -5 src/contrib/tzcode/stdtime/asctime.c 1.2 +23 -22 src/contrib/tzcode/stdtime/localtime.c 1.3 +4 -1 src/contrib/tzcode/zic/zic.8 1.2 +48 -1 src/contrib/tzcode/zic/zic.c