# 2.11BSD#431 - /usr/include/tzfile.h

##### Macros

    DAYS_PER_LYEAR    X
    DAYS_PER_NYEAR    X
    DAYS_PER_WEEK     X
    EPOCH_WDAY        X
    EPOCH_YEAR        X
    HOURS_PER_DAY     X
    MINS_PER_HOUR     X
    MONS_PER_YEAR     X
    NOSOLAR           X
    SECS_PER_DAY      X
    SECS_PER_HOUR     X
    SECS_PER_MIN      X
    TM_APRIL          X
    TM_AUGUST         X
    TM_DECEMBER       X
    TM_FEBRUARY       X
    TM_FRIDAY         X
    TM_JANUARY        X
    TM_JULY           X
    TM_JUNE           X
    TM_MARCH          X
    TM_MAY            X
    TM_MONDAY         X
    TM_NOVEMBER       X
    TM_OCTOBER        X
    TM_SATURDAY       X
    TM_SEPTEMBER      X
    TM_SUNDAY         X
    TM_THURSDAY       X
    TM_TUESDAY        X
    TM_WEDNESDAY      X
    TM_YEAR_BASE      X
    TZDEFAULT         X
    TZDIR             X
    TZ_MAX_CHARS      X
    TZ_MAX_TIMES      X
    TZ_MAX_TYPES      X
    isleap            X

##### struct's

    tzhead            X

       1: /*
       2:  *	@(#)tzfile.h	5.2.1 (2.11BSD) 1996/11/29
       3:  */
       4:
       5: /*
       6: ** Information about time zone files.
       7: */
       8:
       9:             /* Time zone object file directory */
      10: #define TZDIR       "/usr/share/zoneinfo"
      11: #define TZDEFAULT   "/etc/localtime"
      12:
      13: /*
      14: ** Each file begins with. . .
      15: */
      16:
      17: struct tzhead {
      18:     char    tzh_reserved[32];   /* reserved for future use */
      19:     char    tzh_timecnt[4];     /* coded number of transition times */
      20:     char    tzh_typecnt[4];     /* coded number of local time types */
      21:     char    tzh_charcnt[4];     /* coded number of abbr. chars */
      22: };
      23:
      24: /*
      25: ** . . .followed by. . .
      26: **
      27: **	tzh_timecnt (char [4])s		coded transition times a la time(2)
      28: **	tzh_timecnt (unsigned char)s	types of local time starting at above
      29: **	tzh_typecnt repetitions of
      30: **		one (char [4])		coded GMT offset in seconds
      31: **		one (unsigned char)	used to set tm_isdt
      32: **		one (unsigned char)	that's an abbreviation list index
      33: **	tzh_charcnt (char)s		'\0'-terminated zone abbreviaton strings
      34: */
      35:
      36: /*
      37: ** In the current implementation, "tzset()" refuses to deal with files that
      38: ** exceed any of the limits below.
      39: */
      40:
      41: /*
      42: ** The TZ_MAX_TIMES value below is enough to handle a bit more than a
      43: ** year's worth of solar time (corrected daily to the nearest second) or
      44: ** 138 years of Pacific Presidential Election time
      45: ** (where there are three time zone transitions every fourth year).
      46: */
      47: #define TZ_MAX_TIMES    370
      48:
      49: #define NOSOLAR         /* We currently don't handle solar time */
      50:
      51: #ifndef NOSOLAR
      52: #define TZ_MAX_TYPES    256 /* Limited by what (unsigned char)'s can hold */
      53: #else /* !NOSOLAR */
      54: #define TZ_MAX_TYPES    10  /* Maximum number of local time types */
      55: #endif /* !NOSOLAR */
      56:
      57: #define TZ_MAX_CHARS    50  /* Maximum number of abbreviation characters */
      58:
      59: #define SECS_PER_MIN    60
      60: #define MINS_PER_HOUR   60
      61: #define HOURS_PER_DAY   24
      62: #define DAYS_PER_WEEK   7
      63: #define DAYS_PER_NYEAR  365
      64: #define DAYS_PER_LYEAR  366
      65: #define SECS_PER_HOUR   (SECS_PER_MIN * MINS_PER_HOUR)
      66: #define SECS_PER_DAY    ((long) SECS_PER_HOUR * HOURS_PER_DAY)
      67: #define MONS_PER_YEAR   12
      68:
      69: #define TM_SUNDAY   0
      70: #define TM_MONDAY   1
      71: #define TM_TUESDAY  2
      72: #define TM_WEDNESDAY    3
      73: #define TM_THURSDAY 4
      74: #define TM_FRIDAY   5
      75: #define TM_SATURDAY 6
      76:
      77: #define TM_JANUARY  0
      78: #define TM_FEBRUARY 1
      79: #define TM_MARCH    2
      80: #define TM_APRIL    3
      81: #define TM_MAY      4
      82: #define TM_JUNE     5
      83: #define TM_JULY     6
      84: #define TM_AUGUST   7
      85: #define TM_SEPTEMBER    8
      86: #define TM_OCTOBER  9
      87: #define TM_NOVEMBER 10
      88: #define TM_DECEMBER 11
      89: #define TM_SUNDAY   0
      90:
      91: #define TM_YEAR_BASE    1900
      92:
      93: #define EPOCH_YEAR  1970
      94: #define EPOCH_WDAY  TM_THURSDAY
      95:
      96: /*
      97: ** Accurate only for the past couple of centuries;
      98: ** that will probably do.
      99: */
     100:
     101: #define isleap(y) (((y) % 4) == 0 && ((y) % 100) != 0 || ((y) % 400) == 0)

#### Defined struct's

tzhead defined in line 17; used 8 times

- in /usr/src/lib/libc/gen/ctime.c line 142(2), 148(2)
- in /usr/src/share/zoneinfo/zdump.c line 130(2)
- in /usr/src/share/zoneinfo/zic.c line 1022(2)

#### Defined macros

DAYS_PER_LYEAR defined in line 64; used 3 times

- in /usr/src/bin/date.c line 221
- in /usr/src/lib/libc/gen/ctime.c line 330
- in /usr/src/share/zoneinfo/zic.c line 276

DAYS_PER_NYEAR defined in line 63; used 4 times

- in /usr/src/bin/date.c line 221
- in /usr/src/lib/libc/gen/ctime.c line 330
- in /usr/src/share/zoneinfo/zdump.c line 82
- in /usr/src/share/zoneinfo/zic.c line 276

DAYS_PER_WEEK defined in line 62; used 4 times

- in /usr/src/lib/libc/gen/ctime.c line 33, 362-364(2)
- in /usr/src/share/zoneinfo/zic.c line 1443

EPOCH_WDAY defined in line 94; used 2 times

- in /usr/src/lib/libc/gen/ctime.c line 362
- in /usr/src/share/zoneinfo/zic.c line 1444

EPOCH_YEAR defined in line 93; used 5 times

- in /usr/src/bin/date.c line 216-220(2)
- in /usr/src/lib/libc/gen/ctime.c line 365
- in /usr/src/share/zoneinfo/zdump.c line 81
- in /usr/src/share/zoneinfo/zic.c line 1413

HOURS_PER_DAY defined in line 61; used 7 times

- in line 66
- in /usr/src/bin/date.c line 225
- in /usr/src/share/zoneinfo/zdump.c line 82, 140, 161-163(2)
- in /usr/src/share/zoneinfo/zic.c line 666

MINS_PER_HOUR defined in line 60; used 4 times

- in line 65
- in /usr/src/bin/date.c line 226
- in /usr/src/share/zoneinfo/zic.c line 667, 673

MONS_PER_YEAR defined in line 67; used 3 times

- in /usr/src/lib/libc/gen/ctime.c line 36, 324
- in /usr/src/share/zoneinfo/zic.c line 270

NOSOLAR defined in line 49; used 1 times

- in line 51

SECS_PER_DAY defined in line 66; used 7 times

- in /usr/src/lib/libc/gen/ctime.c line 347-355(5)
- in /usr/src/share/zoneinfo/zic.c line 1478-1482(2)

SECS_PER_HOUR defined in line 65; used 8 times

- in line 66
- in /usr/src/bin/date.c line 114
- in /usr/src/lib/libc/gen/ctime.c line 358-359(2)
- in /usr/src/share/zoneinfo/zdump.c line 82, 140, 161-163(2)

SECS_PER_MIN defined in line 59; used 8 times

- in line 65
- in /usr/src/bin/date.c line 111, 227
- in /usr/src/lib/libc/gen/ctime.c line 231, 360-361(2)
- in /usr/src/share/zoneinfo/zic.c line 668, 674

TM_APRIL defined in line 80; used 1 times

- in /usr/src/share/zoneinfo/zic.c line 223

TM_AUGUST defined in line 84; used 1 times

- in /usr/src/share/zoneinfo/zic.c line 227

TM_DECEMBER defined in line 88; used 1 times

- in /usr/src/share/zoneinfo/zic.c line 231

TM_FEBRUARY defined in line 78; used 2 times

- in /usr/src/share/zoneinfo/zic.c line 221, 1430

TM_FRIDAY defined in line 74; used 2 times

- in /usr/src/share/zoneinfo/zic.c line 241, 252

TM_JANUARY defined in line 77; used 2 times

- in /usr/src/share/zoneinfo/zic.c line 220, 1412

TM_JULY defined in line 83; used 1 times

- in /usr/src/share/zoneinfo/zic.c line 226

TM_JUNE defined in line 82; used 1 times

- in /usr/src/share/zoneinfo/zic.c line 225

TM_MARCH defined in line 79; used 1 times

- in /usr/src/share/zoneinfo/zic.c line 222

TM_MAY defined in line 81; used 1 times

- in /usr/src/share/zoneinfo/zic.c line 224

TM_MONDAY defined in line 70; used 2 times

- in /usr/src/share/zoneinfo/zic.c line 237, 248

TM_NOVEMBER defined in line 87; used 1 times

- in /usr/src/share/zoneinfo/zic.c line 230

TM_OCTOBER defined in line 86; used 1 times

- in /usr/src/share/zoneinfo/zic.c line 229

TM_SATURDAY defined in line 75; used 2 times

- in /usr/src/share/zoneinfo/zic.c line 242, 253

TM_SEPTEMBER defined in line 85; used 1 times

- in /usr/src/share/zoneinfo/zic.c line 228

TM_SUNDAY defined in line 89; used 2 times

- in /usr/src/share/zoneinfo/zic.c line 236, 247

TM_THURSDAY defined in line 73; used 3 times

- in line 94
- in /usr/src/share/zoneinfo/zic.c line 240, 251

TM_TUESDAY defined in line 71; used 2 times

- in /usr/src/share/zoneinfo/zic.c line 238, 249

TM_WEDNESDAY defined in line 72; used 2 times

- in /usr/src/share/zoneinfo/zic.c line 239, 250

TM_YEAR_BASE defined in line 91; used 9 times

- in /usr/src/bin/date.c line 213
- in /usr/src/bin/login/login.c line 344, 354
- in /usr/src/lib/libc/gen/ctime.c line 47, 379
- in /usr/src/lib/libc/gen/strftime.c line 219-224(2)
- in /usr/src/share/zoneinfo/zic.c line 466-467(2)

TZDEFAULT defined in line 11; used 6 times

- in /usr/src/lib/libc/gen/ctime.c line 111
- in /usr/src/share/zoneinfo/zic.c line 437-441(3), 714-717(2)

TZDIR defined in line 10; used 5 times

- in /usr/src/lib/libc/gen/ctime.c line 120
- in /usr/src/share/zoneinfo/zdump.c line 112-119(3)
- in /usr/src/share/zoneinfo/zic.c line 399

TZ_MAX_CHARS defined in line 57; used 5 times

- in /usr/src/lib/libc/gen/ctime.c line 74, 155
- in /usr/src/lib/libc/gen/timezone.c line 26
- in /usr/src/share/zoneinfo/zic.c line 284, 1500

TZ_MAX_TIMES defined in line 47; used 6 times

- in /usr/src/lib/libc/gen/ctime.c line 71-72(2), 152
- in /usr/src/share/zoneinfo/zic.c line 279-280(2), 1196

TZ_MAX_TYPES defined in line 54; used 6 times

- in /usr/src/lib/libc/gen/ctime.c line 73, 154
- in /usr/src/share/zoneinfo/zic.c line 281-283(3), 1225

isleap defined in line 101; used 9 times

- in /usr/src/bin/date.c line 218-221(2)
- in /usr/src/lib/libc/gen/ctime.c line 368, 376
- in /usr/src/share/zoneinfo/zic.c line 1416-1430(4), 1467

#### Usage of this include

tzfile.h used 10 times

- in /usr/src/bin/ar/contents.c line 45
- in /usr/src/bin/date.c line 25
- in /usr/src/bin/login/login.c line 51
- in /usr/src/lib/libc/gen/ctime.c line 13
- in /usr/src/lib/libc/gen/strftime.c line 40
- in /usr/src/lib/libc/gen/timezone.c line 16
- in /usr/src/share/zoneinfo/zdump.c line 8
- in /usr/src/share/zoneinfo/zic.c line 12
- in /usr/src/ucb/finger/lprint.c line 29
- in /usr/src/ucb/finger/sprint.c line 27

Last modified: 1996-11-30 Generated: 2016-12-26 | Generated by src2html V0.67 page hit count: 1059 |