1986-01-13 17:21:35 -05:00
|
|
|
/* %W% */
|
|
|
|
|
|
|
|
|
|
/*
|
1986-03-02 22:03:25 -05:00
|
|
|
** Information about time zone files.
|
1986-01-13 17:21:35 -05:00
|
|
|
*/
|
|
|
|
|
|
1986-01-21 09:12:11 -05:00
|
|
|
#ifndef TZDIR
|
1986-11-15 20:19:16 -05:00
|
|
|
#define TZDIR "/etc/zoneinfo" /* Time zone object file directory */
|
1986-01-21 09:12:11 -05:00
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
#ifndef TZDEFAULT
|
1986-01-16 08:50:46 -05:00
|
|
|
#define TZDEFAULT "localtime"
|
1986-01-21 09:12:11 -05:00
|
|
|
#endif
|
|
|
|
|
|
1986-03-02 22:03:25 -05:00
|
|
|
/*
|
|
|
|
|
** Each file begins with. . .
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
struct tzhead {
|
1986-11-15 20:19:16 -05:00
|
|
|
char tzh_reserved[32]; /* reserved for future use */
|
|
|
|
|
char tzh_timecnt[4]; /* coded number of transition times */
|
|
|
|
|
char tzh_typecnt[4]; /* coded number of local time types */
|
|
|
|
|
char tzh_charcnt[4]; /* coded number of abbr. chars */
|
1986-03-02 22:03:25 -05:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
|
** . . .followed by. . .
|
|
|
|
|
**
|
1986-11-15 20:19:16 -05:00
|
|
|
** tzh_timecnt (char [4])s coded transition times a la time(2)
|
1986-03-02 22:03:25 -05:00
|
|
|
** tzh_timecnt (unsigned char)s types of local time starting at above
|
1986-11-15 20:19:16 -05:00
|
|
|
** tzh_typecnt repetitions of
|
|
|
|
|
** one (char [4]) coded GMT offset in seconds
|
|
|
|
|
** one (unsigned char) used to set tm_isdt
|
|
|
|
|
** one (unsigned char) that's an abbreviation list index
|
1986-03-02 22:03:25 -05:00
|
|
|
** tzh_charcnt (char)s '\0'-terminated zone abbreviaton strings
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
|
** In the current implementation, "settz()" refuses to deal with files that
|
|
|
|
|
** exceed any of the limits below.
|
|
|
|
|
*/
|
|
|
|
|
|
1986-02-15 17:44:41 -05:00
|
|
|
#ifndef TZ_MAX_TIMES
|
1986-11-19 19:39:03 -05:00
|
|
|
#ifndef SAUDI
|
|
|
|
|
#define TZ_MAX_TIMES 300 /* Maximum number of transition times */
|
|
|
|
|
#endif
|
|
|
|
|
#ifdef SAUDI
|
|
|
|
|
#define TZ_MAX_TIMES 370 /* A bit more than a year's worth */
|
|
|
|
|
#endif
|
1986-11-15 20:19:16 -05:00
|
|
|
#define TZ_MAX_TIMES 300 /* Maximum number of transition times */
|
1986-01-21 09:12:11 -05:00
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
#ifndef TZ_MAX_TYPES
|
1986-11-19 19:39:03 -05:00
|
|
|
#ifndef SAUDI
|
1986-03-02 22:03:25 -05:00
|
|
|
#define TZ_MAX_TYPES 10 /* Maximum number of local time types */
|
1986-01-21 09:12:11 -05:00
|
|
|
#endif
|
1986-11-19 19:39:03 -05:00
|
|
|
#ifdef SAUDI
|
|
|
|
|
#define TZ_MAX_TYPES 370 /* A bit more than a year's worth */
|
|
|
|
|
#endif
|
|
|
|
|
#endif
|
1986-01-21 09:12:11 -05:00
|
|
|
|
1986-03-02 22:03:25 -05:00
|
|
|
#ifndef TZ_MAX_CHARS
|
|
|
|
|
#define TZ_MAX_CHARS 50 /* Maximum number of abbreviation characters */
|
1986-01-21 09:12:11 -05:00
|
|
|
#endif
|