Date: Thu, 30 Sep 1999 00:40:01 -0700 (PDT) From: <jkoshy@FreeBSD.org> To: freebsd-doc@freebsd.org Subject: Re: docs/14035: tzfile.h referenced in tzfile(5) doesn't exist Message-ID: <199909300740.AAA27737@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
The following reply was made to PR docs/14035; it has been noted by GNATS. From: <jkoshy@FreeBSD.org> To: freebsd-gnats-submit@freebsd.org, wollman@FreeBSD.org Cc: Subject: Re: docs/14035: tzfile.h referenced in tzfile(5) doesn't exist Date: Thu, 30 Sep 1999 00:33:46 -0700 (PDT) This is a multipart MIME message. --==_Exmh_-5370710300 Content-Type: text/plain Looking at docs/14035, I came across the following anomalies in a) tzfile.5 refers to 4 4-byte quantities in the header, however the header file "tzfile.h" defines 6. This bug is there is -CURRENT too. b) Missing word '20' in the description in -STABLE. c) The first field of the header is tzh_ttisgmtcnt in -STABLE (and in -CURRENT), not tzh_ttisstdcnt as claimed. The following patch for -STABLE corrects these errors and adds copyright info as a comment. Could you please review? Koshy <jkoshy@freebsd.org> --==_Exmh_-5370710300 Content-Type: text/plain ; name="patch" Content-Description: patch Content-Disposition: attachment; filename="patch" Index: tzfile.5 =================================================================== RCS file: /home/ncvs/src/lib/libc/stdtime/tzfile.5,v retrieving revision 1.5 diff -u -r1.5 tzfile.5 --- tzfile.5 1998/05/10 21:21:01 1.5 +++ tzfile.5 1999/09/30 12:20:23 @@ -5,18 +5,20 @@ .Nm tzfile .Nd timezone information .Sh SYNOPSIS -.Fd #include <tzfile.h> +.Fd #include "/usr/src/lib/libc/stdtime/tzfile.h" .Sh DESCRIPTION The time zone information files used by .Xr tzset 3 -begin with bytes reserved for future use, -followed by four four-byte values +begin with 20 bytes reserved for future use, +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, in order: .Pp .Bl -tag -compact -width tzh_ttisstdcnt +.It Li tzh_ttisgmtcnt +The number of UTC/local indicators stored in the file. .It Li tzh_ttisstdcnt The number of standard/wall indicators stored in the file. .It Li tzh_leapcnt @@ -119,3 +121,5 @@ .Xr time2posix 3 , .Xr zic 8 .\" @(#)tzfile.5 7.2 +.\" This file is in the public domain, so clarified as of +.\" 1996-06-05 by Arthur David Olson (arthur_david_olson@nih.gov). --==_Exmh_-5370710300-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-doc" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199909300740.AAA27737>