[BACK]Return to tzfile.h CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / src / include

Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.

Diff for /src/include/tzfile.h between version 1.2 and 1.6

version 1.2, 1993/08/01 18:45:09 version 1.6, 1998/07/30 14:11:22
Line 1 
Line 1 
   /*      $NetBSD$        */
   
 /*  /*
  * Copyright (c) 1988 Regents of the University of California.   * Copyright (c) 1988, 1993
  * All rights reserved.   *      The Regents of the University of California.  All rights reserved.
  *   *
  * This code is derived from software contributed to Berkeley by   * This code is derived from software contributed to Berkeley by
  * Arthur David Olson of the National Cancer Institute.   * Arthur David Olson of the National Cancer Institute.
Line 33 
Line 35 
  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF   * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  * SUCH DAMAGE.   * SUCH DAMAGE.
  *   *
  *      from: @(#)tzfile.h      5.10 (Berkeley) 4/3/91   *      @(#)tzfile.h    8.1 (Berkeley) 6/2/93
  *      $Id$  
  */   */
   
 #ifndef _TZFILE_H_  #ifndef _TZFILE_H_
Line 52 
Line 53 
 ** Each file begins with. . .  ** Each file begins with. . .
 */  */
   
   #define TZ_MAGIC        "TZif"
   
 struct tzhead {  struct tzhead {
         char    tzh_reserved[24];       /* reserved for future use */          char    tzh_magic[4];           /* TZ_MAGIC */
           char    tzh_reserved[16];       /* reserved for future use */
           char    tzh_ttisgmtcnt[4];      /* coded number of trans. time flags */
         char    tzh_ttisstdcnt[4];      /* coded number of trans. time flags */          char    tzh_ttisstdcnt[4];      /* coded number of trans. time flags */
         char    tzh_leapcnt[4];         /* coded number of leap seconds */          char    tzh_leapcnt[4];         /* coded number of leap seconds */
         char    tzh_timecnt[4];         /* coded number of transition times */          char    tzh_timecnt[4];         /* coded number of transition times */
Line 67  struct tzhead {
Line 72  struct tzhead {
 **      tzh_timecnt (char [4])s         coded transition times a la time(2)  **      tzh_timecnt (char [4])s         coded transition times a la time(2)
 **      tzh_timecnt (unsigned char)s    types of local time starting at above  **      tzh_timecnt (unsigned char)s    types of local time starting at above
 **      tzh_typecnt repetitions of  **      tzh_typecnt repetitions of
 **              one (char [4])          coded GMT offset in seconds  **              one (char [4])          coded UTC offset in seconds
 **              one (unsigned char)     used to set tm_isdst  **              one (unsigned char)     used to set tm_isdst
 **              one (unsigned char)     that's an abbreviation list index  **              one (unsigned char)     that's an abbreviation list index
 **      tzh_charcnt (char)s             '\0'-terminated zone abbreviations  **      tzh_charcnt (char)s             '\0'-terminated zone abbreviations
Line 79  struct tzhead {
Line 84  struct tzhead {
 **                                      transition time is wall clock time  **                                      transition time is wall clock time
 **                                      if absent, transition times are  **                                      if absent, transition times are
 **                                      assumed to be wall clock time  **                                      assumed to be wall clock time
   **      tzh_ttisgmtcnt (char)s          indexed by type; if TRUE, transition
   **                                      time is UTC, if FALSE,
   **                                      transition time is wall clock time
   **                                      if absent, transition times are
   **                                      assumed to be local time
 */  */
   
 /*  /*
Line 147  struct tzhead {
Line 157  struct tzhead {
 ** that will probably do.  ** that will probably do.
 */  */
   
 #define isleap(y) (((y) % 4) == 0 && ((y) % 100) != 0 || ((y) % 400) == 0)  #define isleap(y) ((((y) % 4) == 0 && ((y) % 100) != 0) || ((y) % 400) == 0)
   
 #endif /* !_TZFILE_H_ */  #endif /* !_TZFILE_H_ */

Legend:
Removed from v.1.2  
changed lines
  Added in v.1.6

CVSweb <webmaster@jp.NetBSD.org>