From owner-freebsd-doc@FreeBSD.ORG Thu Aug 28 10:24:52 2003 Return-Path: Delivered-To: freebsd-doc@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D9B0B16A4BF for ; Thu, 28 Aug 2003 10:24:52 -0700 (PDT) Received: from uri.sublimemail.com (uri.sublimemail.com [66.45.27.201]) by mx1.FreeBSD.org (Postfix) with ESMTP id 24BFB43FEC for ; Thu, 28 Aug 2003 10:24:52 -0700 (PDT) (envelope-from steve@havk.org) Received: from bsd.havk.org (unknown [208.3.11.173]) by uri.sublimemail.com (Postfix) with ESMTP id 6A21A4FC03E for ; Thu, 28 Aug 2003 12:24:51 -0500 (CDT) Received: by bsd.havk.org (Postfix, from userid 1001) id B78301A7BE; Thu, 28 Aug 2003 12:24:45 -0500 (CDT) Date: Thu, 28 Aug 2003 12:24:45 -0500 From: Steve Price To: freebsd-docs@freebsd.org Message-ID: <20030828172445.GU424@bsd.havk.org> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="+QahgC5+KEYLbs62" Content-Disposition: inline User-Agent: Mutt/1.3.27i X-Operating-System: FreeBSD 4.7-STABLE i386 Subject: FW: [PATCH] manpage fix X-BeenThere: freebsd-doc@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Documentation project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 28 Aug 2003 17:24:53 -0000 --+QahgC5+KEYLbs62 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Can someone please verify this patch and get it committed if appropriate? Please Cc me on any replies. Thanks. -steve ----- Forwarded message from Tilghman Lesher ----- While looking at the source for libc, I realized that the tzfile.5 manpage is missing part of the file format, which could seriously screw up anybody attempting to parse the file(s). Attached is a patch for this. The file is normally found at: /usr/src/lib/libc/stdtime/tzfile.5 /usr/share/man/man5/tzfile.5.gz This patch is hereby disclaimed under the same license under which FreeBSD itself is distributed. -Tilghman ----- End forwarded message ----- --+QahgC5+KEYLbs62 Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="tzfile.5.patch" --- tzfile.5.old Fri Aug 17 10:42:43 2001 +++ tzfile.5.fix Thu Aug 28 11:15:00 2003 @@ -15,7 +15,7 @@ to identify them as time zone information files, followed by sixteen bytes reserved for future use, -followed by four four-byte values +followed by six four-byte values written in a ``standard'' byte order (the high-order byte of the value is written first). These values are, @@ -89,6 +89,13 @@ that follow the .Li ttinfo structure(s) in the file. +.Pp +Then there are +.Va tzh_charcnt +bytes of ``timezone identification strings'' in standard C +(null-terminated) notation. See +.Va tt_abbrind +above for how these strings are referenced. .Pp Then there are .Va tzh_leapcnt --+QahgC5+KEYLbs62--