Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 29 Apr 1998 20:21:13 +0900
From:      horikawa@jp.freebsd.org
To:        FreeBSD-gnats-submit@FreeBSD.ORG
Subject:   docs/6454: In tzfile.5, tzfile.h does not exist, and tzh_timecnt is misused.
Message-ID:  <19980429202113Y.k-horik@yk.rim.or.jp>

next in thread | raw e-mail | index | archive | help

>Number:         6454
>Category:       docs
>Synopsis:       In tzfile.5, tzfile.h does not exist, and tzh_timecnt is misused.
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-doc
>State:          open
>Quarter:
>Keywords:
>Date-Required:
>Class:          doc-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Apr 29 04:30:01 PDT 1998
>Last-Modified:
>Originator:     Kazuo Horikawa
>Organization:
personal user
>Release:        FreeBSD 2.2.5-RELEASE i386
>Environment:

	2.2.5-RELEASE and 2.2.6-RELEASE

>Description:

	1) /usr/include/tzfile.h does not exist.  But tzfile.5 shows:

SYNOPSIS
     #include <tzfile.h>

	  I searched tzfile.h using `find / -name tzfile.h', but I can
	  not find it.


	2) tzh_timecnt is misused for tzh_typecnt.  The tzfile.5 shows:

     tzh_timecnt     The number of ``transition times'' for which data is
                     stored in the file.
     tzh_typecnt     The number of ``local time types'' for which data is
                     stored in the file (must not be zero).
[snip]
     The above header is followed by tzh_timecnt four-byte values of type
     long, sorted in ascending order.  These values are written in ``stan-
     dard'' byte order.  Each is used as a transition time (as returned by
     time(3))  at which the rules for computing local time change.  Next come
     tzh_timecnt one-byte values of type unsigned char; each one tells which
     ^^^^^^^^^^^
	I think this should be tzh_typecnt.
    
     of the different types of ``local time'' types described in the file is
     associated with the same-indexed transition time.  These values serve as
     indices into an array of ttinfo structures that appears next in the file;
     these structures are defined as follows:
	

>How-To-Repeat:

	`man 5 tzfile' on 2.2.5-RELEASE or 2.2.6-RELEASE.

>Fix:

--- tzfile.5.bak	Wed Apr 29 20:09:33 1998
+++ tzfile.5	Wed Apr 29 20:10:06 1998
@@ -4,8 +4,6 @@
 .Sh NAME
 .Nm tzfile
 .Nd timezone information
-.Sh SYNOPSIS
-.Fd #include <tzfile.h>
 .Sh DESCRIPTION
 The time zone information files used by
 .Xr tzset 3
@@ -43,7 +41,7 @@
 .Xr time 3 )
 at which the rules for computing local time change.
 Next come
-.Li tzh_timecnt
+.Li tzh_typecnt
 one-byte values of type
 .Fa "unsigned char" ;
 each one tells which of the different types of ``local time'' types

>Audit-Trail:
>Unformatted:

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?19980429202113Y.k-horik>