PostgreSQL Source Code
git master
|
#include "postgres_fe.h"
#include <fcntl.h>
#include <sys/stat.h>
#include <time.h>
#include "pg_getopt.h"
#include "private.h"
#include "tzfile.h"
Go to the source code of this file.
Data Structures | |
struct | rule |
struct | zone |
struct | link |
struct | lookup |
struct | attype |
struct | timerange |
Macros | |
#define | ZIC_VERSION_PRE_2013 '2' |
#define | ZIC_VERSION '3' |
#define | ZIC_MIN PG_INT64_MIN |
#define | ZIC_MAX PG_INT64_MAX |
#define | ZIC_MAX_ABBR_LEN_WO_WARN 6 |
#define | MKDIR_UMASK 0755 |
#define | DC_DOM 0 /* 1..31 */ /* unused */ |
#define | DC_DOWGEQ 1 /* 1..31 */ /* 0..6 (Sun..Sat) */ |
#define | DC_DOWLEQ 2 /* 1..31 */ /* 0..6 (Sun..Sat) */ |
#define | linkat(targetdir, target, linknamedir, linkname, flag) (itssymlink(target) ? (errno = ENOTSUP, -1) : link(target, linkname)) |
#define | LC_RULE 0 |
#define | LC_ZONE 1 |
#define | LC_LINK 2 |
#define | LC_LEAP 3 |
#define | LC_EXPIRES 4 |
#define | ZF_NAME 1 |
#define | ZF_STDOFF 2 |
#define | ZF_RULE 3 |
#define | ZF_FORMAT 4 |
#define | ZF_TILYEAR 5 |
#define | ZF_TILMONTH 6 |
#define | ZF_TILDAY 7 |
#define | ZF_TILTIME 8 |
#define | ZONE_MINFIELDS 5 |
#define | ZONE_MAXFIELDS 9 |
#define | ZFC_STDOFF 0 |
#define | ZFC_RULE 1 |
#define | ZFC_FORMAT 2 |
#define | ZFC_TILYEAR 3 |
#define | ZFC_TILMONTH 4 |
#define | ZFC_TILDAY 5 |
#define | ZFC_TILTIME 6 |
#define | ZONEC_MINFIELDS 3 |
#define | ZONEC_MAXFIELDS 7 |
#define | RF_NAME 1 |
#define | RF_LOYEAR 2 |
#define | RF_HIYEAR 3 |
#define | RF_COMMAND 4 |
#define | RF_MONTH 5 |
#define | RF_DAY 6 |
#define | RF_TOD 7 |
#define | RF_SAVE 8 |
#define | RF_ABBRVAR 9 |
#define | RULE_FIELDS 10 |
#define | LF_TARGET 1 |
#define | LF_LINKNAME 2 |
#define | LINK_FIELDS 3 |
#define | LP_YEAR 1 |
#define | LP_MONTH 2 |
#define | LP_DAY 3 |
#define | LP_TIME 4 |
#define | LP_CORR 5 |
#define | LP_ROLL 6 |
#define | LEAP_FIELDS 7 |
#define | EXPIRES_FIELDS 5 |
#define | YR_MINIMUM 0 |
#define | YR_MAXIMUM 1 |
#define | YR_ONLY 2 |
#define | TIME_T_BITS_IN_FILE 64 |
#define | ZIC_BLOAT_DEFAULT "slim" |
#define | DO(field) fwrite(tzh.field, sizeof tzh.field, 1, fp) |
#define | LDAYSPERWEEK ((zic_t) DAYSPERWEEK) |
Typedefs | |
typedef int64 | zic_t |
typedef int | lineno_t |
Enumerations | |
enum | { PERCENT_Z_LEN_BOUND = sizeof "+995959" - 1 } |
enum | { WORK_AROUND_QTBUG_53071 = true } |
Functions | |
int | link (const char *target, const char *linkname) |
static void | memory_exhausted (const char *msg) pg_attribute_noreturn() |
static void | verror (const char *string, va_list args) pg_attribute_printf(1 |
static void static void | error (const char *string,...) pg_attribute_printf(1 |
static void static void static void | warning (const char *string,...) pg_attribute_printf(1 |
static void static void static void static void | usage (FILE *stream, int status) pg_attribute_noreturn() |
static void | addtt (zic_t starttime, int type) |
static int | addtype (zic_t, char const *, bool, bool, bool) |
static void | leapadd (zic_t, int, int) |
static void | adjleap (void) |
static void | associate (void) |
static void | dolink (const char *, const char *, bool) |
static char ** | getfields (char *buf) |
static zic_t | gethms (const char *string, const char *errstring) |
static zic_t | getsave (char *, bool *) |
static void | inexpires (char **, int) |
static void | infile (const char *filename) |
static void | inleap (char **fields, int nfields) |
static void | inlink (char **fields, int nfields) |
static void | inrule (char **fields, int nfields) |
static bool | inzcont (char **fields, int nfields) |
static bool | inzone (char **fields, int nfields) |
static bool | inzsub (char **, int, bool) |
static bool | itsdir (char const *) |
static bool | itssymlink (char const *) |
static bool | is_alpha (char a) |
static char | lowerit (char) |
static void | mkdirs (char const *, bool) |
static void | newabbr (const char *abbr) |
static zic_t | oadd (zic_t t1, zic_t t2) |
static void | outzone (const struct zone *zp, ptrdiff_t ntzones) |
static zic_t | rpytime (const struct rule *rp, zic_t wantedy) |
static void | rulesub (struct rule *rp, const char *loyearp, const char *hiyearp, const char *typep, const char *monthp, const char *dayp, const char *timep) |
static zic_t | tadd (zic_t t1, zic_t t2) |
static struct lookup const * | byword (const char *string, const struct lookup *lp) |
static size_t | size_product (size_t nitems, size_t itemsize) |
static void * | memcheck (void *ptr) |
static void * | emalloc (size_t size) |
static void * | erealloc (void *ptr, size_t size) |
static char * | ecpyalloc (char const *str) |
static void * | growalloc (void *ptr, size_t itemsize, ptrdiff_t nitems, ptrdiff_t *nitems_alloc) |
static void | eats (char const *name, lineno_t num, char const *rname, lineno_t rnum) |
static void | eat (char const *name, lineno_t num) |
static void | close_file (FILE *stream, char const *dir, char const *name) |
static void | change_directory (char const *dir) |
static bool | timerange_option (char *timerange) |
static bool | want_bloat (void) |
int | main (int argc, char **argv) |
static bool | componentcheck (char const *name, char const *component, char const *component_end) |
static bool | namecheck (const char *name) |
static int | hardlinkerr (char const *target, char const *linkname) |
static int | rcomp (const void *cp1, const void *cp2) |
static zic_t | getleapdatetime (char **fields, int nfields, bool expire_line) |
static void | convert (const int32 val, char *const buf) |
static void | convert64 (const zic_t val, char *const buf) |
static void | puttzcode (const int32 val, FILE *const fp) |
static void | puttzcodepass (zic_t val, FILE *fp, int pass) |
static int | atcomp (const void *avp, const void *bvp) |
static struct timerange | limitrange (struct timerange r, zic_t lo, zic_t hi, zic_t const *ats, unsigned char const *types) |
static void | writezone (const char *const name, const char *const string, char version, int defaulttype) |
static char const * | abbroffset (char *buf, zic_t offset) |
static size_t | doabbr (char *abbr, struct zone const *zp, char const *letters, bool isdst, zic_t save, bool doquotes) |
static void | updateminmax (const zic_t x) |
static int | stringoffset (char *result, zic_t offset) |
static int | stringrule (char *result, struct rule *const rp, zic_t save, zic_t stdoff) |
static int | rule_cmp (struct rule const *a, struct rule const *b) |
static int | stringzone (char *result, struct zone const *zpfirst, ptrdiff_t zonecount) |
static bool | is_space (char a) |
static bool | ciequal (const char *ap, const char *bp) |
static bool | itsabbr (const char *abbr, const char *word) |
static bool | ciprefix (char const *abbr, char const *word) |
static void | time_overflow (void) |
Variables | |
static ptrdiff_t const | PTRDIFF_MAX = MAXVAL(ptrdiff_t, TYPE_BIT(ptrdiff_t)) |
static int | charcnt |
static bool | errors |
static bool | warnings |
static const char * | filename |
static int | leapcnt |
static bool | leapseen |
static zic_t | leapminyear |
static zic_t | leapmaxyear |
static lineno_t | linenum |
static int | max_abbrvar_len = PERCENT_Z_LEN_BOUND |
static int | max_format_len |
static zic_t | max_year |
static zic_t | min_year |
static bool | noise |
static bool | print_abbrevs |
static zic_t | print_cutoff |
static const char * | rfilename |
static lineno_t | rlinenum |
static const char * | progname |
static ptrdiff_t | timecnt |
static ptrdiff_t | timecnt_alloc |
static int | typecnt |
static struct rule * | rules |
static ptrdiff_t | nrules |
static ptrdiff_t | nrules_alloc |
static struct zone * | zones |
static ptrdiff_t | nzones |
static ptrdiff_t | nzones_alloc |
static struct link * | links |
static ptrdiff_t | nlinks |
static ptrdiff_t | nlinks_alloc |
static struct lookup const | zi_line_codes [] |
static struct lookup const | leap_line_codes [] |
static struct lookup const | mon_names [] |
static struct lookup const | wday_names [] |
static struct lookup const | lasts [] |
static struct lookup const | begin_years [] |
static struct lookup const | end_years [] |
static struct lookup const | leap_types [] |
static const int | len_months [2][MONSPERYEAR] |
static const int | len_years [2] |
static struct attype * | attypes |
static zic_t | utoffs [TZ_MAX_TYPES] |
static char | isdsts [TZ_MAX_TYPES] |
static unsigned char | desigidx [TZ_MAX_TYPES] |
static bool | ttisstds [TZ_MAX_TYPES] |
static bool | ttisuts [TZ_MAX_TYPES] |
static char | chars [TZ_MAX_CHARS] |
static zic_t | trans [TZ_MAX_LEAPS] |
static zic_t | corr [TZ_MAX_LEAPS] |
static char | roll [TZ_MAX_LEAPS] |
static zic_t const | min_time = MINVAL(zic_t, TIME_T_BITS_IN_FILE) |
static zic_t const | max_time = MAXVAL(zic_t, TIME_T_BITS_IN_FILE) |
static zic_t | lo_time = MINVAL(zic_t, TIME_T_BITS_IN_FILE) |
static zic_t | hi_time = MAXVAL(zic_t, TIME_T_BITS_IN_FILE) |
static zic_t | leapexpires = -1 |
static zic_t | comment_leapexpires = -1 |
static const char * | psxrules |
static const char * | lcltime |
static const char * | directory |
static const char * | leapsec |
static const char * | tzdefault |
static int | bloat |
#define DC_DOM 0 /* 1..31 */ /* unused */ |
Definition at line 89 of file zic.c.
Referenced by outzone(), rulesub(), stringrule(), and stringzone().
#define DC_DOWGEQ 1 /* 1..31 */ /* 0..6 (Sun..Sat) */ |
Definition at line 90 of file zic.c.
Referenced by rpytime(), rulesub(), and stringrule().
#define DC_DOWLEQ 2 /* 1..31 */ /* 0..6 (Sun..Sat) */ |
Definition at line 91 of file zic.c.
Referenced by rpytime(), rulesub(), and stringrule().
#define DO | ( | field | ) | fwrite(tzh.field, sizeof tzh.field, 1, fp) |
Referenced by writezone().
#define EXPIRES_FIELDS 5 |
Definition at line 271 of file zic.c.
Referenced by inexpires().
#define LDAYSPERWEEK ((zic_t) DAYSPERWEEK) |
Referenced by rpytime().
#define linkat | ( | targetdir, | |
target, | |||
linknamedir, | |||
linkname, | |||
flag | |||
) | (itssymlink(target) ? (errno = ENOTSUP, -1) : link(target, linkname)) |
Definition at line 116 of file zic.c.
Referenced by hardlinkerr().
#define LP_DAY 3 |
Definition at line 264 of file zic.c.
Referenced by getleapdatetime().
#define LP_MONTH 2 |
Definition at line 263 of file zic.c.
Referenced by getleapdatetime().
#define LP_TIME 4 |
Definition at line 265 of file zic.c.
Referenced by getleapdatetime().
#define LP_YEAR 1 |
Definition at line 262 of file zic.c.
Referenced by getleapdatetime().
#define ZIC_MAX PG_INT64_MAX |
Definition at line 27 of file zic.c.
Referenced by gethms(), limitrange(), oadd(), outzone(), rpytime(), rulesub(), stringzone(), and writezone().
#define ZIC_MIN PG_INT64_MIN |
|
static |
Definition at line 2584 of file zic.c.
References _, buf, error(), MINSPERHOUR, SECSPERMIN, and sign.
Referenced by doabbr().
|
static |
Definition at line 3346 of file zic.c.
References attype::at, attypes, attype::dontmerge, growalloc(), timecnt, generate_unaccent_rules::type, and attype::type.
Referenced by outzone().
Definition at line 3356 of file zic.c.
References _, charcnt, error(), EXIT_FAILURE, i, newabbr(), typecnt, TZ_MAX_TYPES, and want_bloat().
Referenced by outzone(), and writezone().
|
static |
Definition at line 3423 of file zic.c.
References _, comment_leapexpires, error(), EXIT_FAILURE, i, leapcnt, oadd(), SECSPERDAY, tadd(), and warning().
Referenced by main().
|
static |
Definition at line 1156 of file zic.c.
References _, eat(), error(), EXIT_FAILURE, getsave(), i, nrules, nzones, qsort, rule::r_filename, rule::r_linenum, rule::r_name, rcomp(), warning(), zone::z_filename, zone::z_format_specifier, zone::z_isdst, zone::z_linenum, zone::z_nrules, zone::z_rule, zone::z_rules, and zone::z_save.
Referenced by main().
|
static |
Definition at line 3649 of file zic.c.
References _, ciequal(), ciprefix(), itsabbr(), lookup::l_word, warning(), and wday_names.
Referenced by getleapdatetime(), infile(), inleap(), and rulesub().
|
static |
|
static |
|
static |
|
static |
|
static |
Definition at line 857 of file zic.c.
References _, error(), and warning().
Referenced by namecheck().
|
static |
Definition at line 1990 of file zic.c.
References i.
Referenced by ExecInitExprRec(), fmtfloat(), fmtint(), fmtptr(), get_rule_expr(), pg_strfromd(), print_double(), puttzcode(), and writezone().
|
static |
|
static |
Definition at line 2628 of file zic.c.
References abbroffset(), format, is_alpha(), PERCENT_Z_LEN_BOUND, sprintf, zone::z_format, zone::z_format_specifier, and zone::z_stdoff.
Referenced by outzone(), and stringzone().
|
static |
Definition at line 1002 of file zic.c.
References _, close_file(), ENOTSUP, EXIT_FAILURE, fprintf, free, hardlinkerr(), itsdir(), itssymlink(), mkdirs(), relname, strerror, symlink, and warning().
Referenced by main().
|
static |
|
static |
|
static |
Definition at line 432 of file zic.c.
References malloc, and memcheck().
Referenced by getfields(), itsdir(), namecheck(), outzone(), and writezone().
|
static |
Definition at line 438 of file zic.c.
References memcheck(), and realloc.
Referenced by growalloc().
|
static |
Definition at line 502 of file zic.c.
References generate_unaccent_rules::args, and verror().
Referenced by abbroffset(), addtype(), adjleap(), associate(), componentcheck(), getfields(), gethms(), getleapdatetime(), inexpires(), infile(), inleap(), inlink(), inrule(), inzcont(), inzone(), inzsub(), leapadd(), main(), mkdirs(), newabbr(), outzone(), rpytime(), rulesub(), time_overflow(), and writezone().
|
static |
Definition at line 3715 of file zic.c.
References _, emalloc(), error(), EXIT_FAILURE, is_space(), and size_product().
Referenced by infile().
|
static |
Definition at line 1363 of file zic.c.
References _, error(), HOURSPERDAY, MINSPERHOUR, oadd(), SECSPERHOUR, SECSPERMIN, sign, warning(), and ZIC_MAX.
Referenced by getleapdatetime(), getsave(), inzsub(), and rulesub().
Definition at line 1664 of file zic.c.
References _, byword(), EPOCH_YEAR, error(), gethms(), i, isleap, lookup::l_value, LP_DAY, LP_MONTH, LP_TIME, LP_YEAR, oadd(), SECSPERDAY, tadd(), and TM_JANUARY.
Referenced by inexpires(), and inleap().
|
static |
Definition at line 450 of file zic.c.
References _, erealloc(), memory_exhausted(), PTRDIFF_MAX, size_product(), and WORK_AROUND_QTBUG_53071.
|
static |
|
static |
Definition at line 1785 of file zic.c.
References _, error(), EXPIRES_FIELDS, and getleapdatetime().
Referenced by infile().
|
static |
Definition at line 1241 of file zic.c.
References _, buf, byword(), close_file(), eat(), error(), EXIT_FAILURE, fprintf, free, getfields(), inexpires(), inleap(), inlink(), inrule(), inzcont(), inzone(), lookup::l_value, LC_EXPIRES, LC_LEAP, LC_LINK, LC_RULE, LC_ZONE, leap_line_codes, strerror, and zi_line_codes.
Referenced by AlterSystemSetConfigFile(), convert_sourcefiles_in(), isolation_start_test(), main(), psql_start_test(), and readfile().
|
static |
Definition at line 1753 of file zic.c.
References _, byword(), error(), getleapdatetime(), lookup::l_value, LEAP_FIELDS, leapadd(), LP_CORR, and LP_ROLL.
Referenced by infile().
|
static |
Definition at line 1796 of file zic.c.
References _, ecpyalloc(), error(), filename, growalloc(), link::l_filename, link::l_linenum, link::l_linkname, link::l_target, LF_LINKNAME, LF_TARGET, linenum, LINK_FIELDS, and namecheck().
Referenced by infile().
|
static |
Definition at line 1469 of file zic.c.
References _, ecpyalloc(), error(), filename, getsave(), growalloc(), linenum, rule::r_abbrvar, rule::r_filename, rule::r_isdst, rule::r_linenum, rule::r_name, rule::r_save, RF_ABBRVAR, RF_COMMAND, RF_DAY, RF_HIYEAR, RF_LOYEAR, RF_MONTH, RF_NAME, RF_SAVE, RF_TOD, RULE_FIELDS, and rulesub().
Referenced by infile().
|
static |
|
static |
Definition at line 1565 of file zic.c.
References _, ecpyalloc(), error(), filename, gethms(), growalloc(), linenum, namecheck(), rule::r_filename, rule::r_linenum, rule::r_loyear, rpytime(), rulesub(), warning(), zone::z_filename, zone::z_format, zone::z_format_specifier, zone::z_linenum, zone::z_name, zone::z_rule, zone::z_stdoff, zone::z_untilrule, zone::z_untiltime, ZF_FORMAT, ZF_NAME, ZF_RULE, ZF_STDOFF, ZF_TILDAY, ZF_TILMONTH, ZF_TILTIME, ZF_TILYEAR, ZFC_FORMAT, ZFC_RULE, ZFC_STDOFF, ZFC_TILDAY, ZFC_TILMONTH, ZFC_TILTIME, and ZFC_TILYEAR.
Referenced by inzcont(), and inzone().
|
static |
|
static |
Definition at line 3466 of file zic.c.
Referenced by getfields().
|
static |
|
static |
|
static |
|
static |
Definition at line 3401 of file zic.c.
References _, error(), EXIT_FAILURE, i, leapcnt, and TZ_MAX_LEAPS.
Referenced by inleap().
|
static |
Definition at line 2053 of file zic.c.
References timerange::defaulttype, types, and ZIC_MAX.
Referenced by writezone().
|
static |
int main | ( | int | argc, |
char ** | argv | ||
) |
Definition at line 652 of file zic.c.
References _, adjleap(), associate(), change_directory(), close_file(), dolink(), eat(), error(), EXIT_FAILURE, EXIT_SUCCESS, fprintf, getopt(), i, infile(), nlinks, nzones, optarg, optind, outzone(), printf, S_IWGRP, S_IWOTH, generate_unaccent_rules::stdout, timerange_option(), TYPE_BIT, TZDEFAULT, TZDEFRULES, usage(), warning(), zone::z_name, and ZIC_BLOAT_DEFAULT.
|
static |
Definition at line 424 of file zic.c.
References memory_exhausted(), and strerror.
Referenced by ecpyalloc(), emalloc(), and erealloc().
|
static |
Definition at line 409 of file zic.c.
References _, EXIT_FAILURE, and fprintf.
Referenced by growalloc(), memcheck(), and size_product().
|
static |
Definition at line 3946 of file zic.c.
References _, _dosmaperr(), ecpyalloc(), error(), EXIT_FAILURE, free, itsdir(), link(), mkdir, MKDIR_UMASK, name, and strerror.
Referenced by change_directory(), dolink(), and writezone().
|
static |
Definition at line 901 of file zic.c.
References _, componentcheck(), emalloc(), i, name, relname, and warning().
|
static |
Definition at line 3908 of file zic.c.
References _, error(), EXIT_FAILURE, GRANDPARENTED, i, is_alpha(), TZ_MAX_CHARS, warning(), and ZIC_MAX_ABBR_LEN_WO_WARN.
Referenced by addtype().
Definition at line 3762 of file zic.c.
References time_overflow(), ZIC_MAX, and ZIC_MIN.
Referenced by adjleap(), gethms(), getleapdatetime(), outzone(), and rpytime().
|
static |
Definition at line 2944 of file zic.c.
References _, addtt(), addtype(), attype::at, attypes, compat, DC_DOM, doabbr(), attype::dontmerge, eat(), eats(), emalloc(), EPOCH_YEAR, error(), free, i, INITIALIZE, max_abbrvar_len, max_year, oadd(), rule::r_abbrvar, rule::r_dayofmonth, rule::r_dycode, rule::r_filename, rule::r_hiwasnum, rule::r_hiyear, rule::r_isdst, rule::r_linenum, rule::r_lowasnum, rule::r_loyear, rule::r_month, rule::r_save, rule::r_temp, rule::r_tod, rule::r_todisstd, rule::r_todisut, rule::r_todo, rpytime(), stringzone(), tadd(), timecnt, TM_JANUARY, generate_unaccent_rules::type, attype::type, updateminmax(), want_bloat(), warning(), writezone(), YEARSPERREPEAT, zone::z_filename, zone::z_format, zone::z_isdst, zone::z_linenum, zone::z_name, zone::z_nrules, zone::z_rules, zone::z_save, zone::z_stdoff, zone::z_untilrule, zone::z_untiltime, ZIC_MAX, ZIC_MIN, ZIC_VERSION, and ZIC_VERSION_PRE_2013.
Referenced by main().
|
static |
Definition at line 2012 of file zic.c.
References buf, and convert().
Referenced by puttzcodepass(), and writezone().
|
static |
Definition at line 2021 of file zic.c.
References buf, convert64(), and puttzcode().
Referenced by writezone().
|
static |
Definition at line 1149 of file zic.c.
References rule::r_name.
Referenced by associate().
Definition at line 3799 of file zic.c.
References _, DC_DOWGEQ, DC_DOWLEQ, EPOCH_WDAY, EPOCH_YEAR, error(), EXIT_FAILURE, i, isleap, LDAYSPERWEEK, max_time, min_time, oadd(), rule::r_dayofmonth, rule::r_dycode, rule::r_month, rule::r_tod, rule::r_wday, SECSPERDAY, SECSPERREPEAT, tadd(), TM_FEBRUARY, TM_JANUARY, warning(), YEARSPERREPEAT, ZIC_MAX, and ZIC_MIN.
Definition at line 2795 of file zic.c.
References rule::r_dayofmonth, rule::r_hiyear, and rule::r_month.
Referenced by stringzone().
|
static |
Definition at line 1821 of file zic.c.
References _, byword(), DC_DOM, DC_DOWGEQ, DC_DOWLEQ, ecpyalloc(), error(), EXIT_FAILURE, fprintf, free, gethms(), lookup::l_value, lowerit(), rule::r_dayofmonth, rule::r_dycode, rule::r_hiwasnum, rule::r_hiyear, rule::r_lowasnum, rule::r_loyear, rule::r_month, rule::r_tod, rule::r_todisstd, rule::r_todisut, rule::r_wday, YR_MAXIMUM, YR_MINIMUM, YR_ONLY, ZIC_MAX, and ZIC_MIN.
Referenced by inrule(), and inzsub().
|
static |
Definition at line 416 of file zic.c.
References _, and memory_exhausted().
Referenced by getfields(), growalloc(), and writezone().
|
static |
Definition at line 2680 of file zic.c.
References DAYSPERWEEK, HOURSPERDAY, MINSPERHOUR, SECSPERMIN, and sprintf.
Referenced by stringrule(), and stringzone().
Definition at line 2714 of file zic.c.
References compat, DAYSPERWEEK, DC_DOM, DC_DOWGEQ, DC_DOWLEQ, MINSPERHOUR, rule::r_dayofmonth, rule::r_dycode, rule::r_isdst, rule::r_month, rule::r_tod, rule::r_todisstd, rule::r_todisut, rule::r_wday, SECSPERDAY, SECSPERMIN, sprintf, stringoffset(), and TM_FEBRUARY.
Referenced by stringzone().
|
static |
Definition at line 2809 of file zic.c.
References compat, DC_DOM, doabbr(), i, MINSPERHOUR, rule::r_abbrvar, rule::r_dayofmonth, rule::r_dycode, rule::r_hiwasnum, rule::r_hiyear, rule::r_isdst, rule::r_month, rule::r_save, rule::r_tod, rule::r_todisstd, rule::r_todisut, rule_cmp(), SECSPERDAY, SECSPERMIN, stringoffset(), stringrule(), TM_DECEMBER, TM_JANUARY, zone::z_isdst, zone::z_nrules, zone::z_rules, zone::z_stdoff, and ZIC_MAX.
Referenced by outzone().
Definition at line 3770 of file zic.c.
References max_time, min_time, and time_overflow().
Referenced by adjleap(), getleapdatetime(), outzone(), rpytime(), and writezone().
|
static |
|
static |
Definition at line 600 of file zic.c.
References max_time, min_time, PG_INT64_MAX, PG_INT64_MIN, and strtoimax.
Referenced by main().
|
static |
|
static |
Definition at line 541 of file zic.c.
References _, close_file(), EXIT_SUCCESS, and fprintf.
Referenced by main().
|
static |
|
static |
|
static |
Definition at line 513 of file zic.c.
References _, generate_unaccent_rules::args, fprintf, and verror().
Referenced by adjleap(), associate(), byword(), componentcheck(), dolink(), gethms(), inzsub(), main(), namecheck(), newabbr(), outzone(), rpytime(), and writezone().
|
static |
Definition at line 2080 of file zic.c.
References _, addtype(), attype::at, atcomp(), attypes, timerange::base, close_file(), convert(), timerange::count, timerange::defaulttype, DO, emalloc(), error(), EXIT_FAILURE, fprintf, free, i, INT64_FORMAT, timerange::leapbase, leapcnt, timerange::leapcount, limitrange(), lo_time, max_time, MAXALIGN, mkdirs(), PG_INT32_MAX, PG_INT32_MIN, puttzcode(), puttzcodepass(), qsort, size_product(), generate_unaccent_rules::stdout, strerror, tadd(), timecnt, tm, generate_unaccent_rules::type, attype::type, typecnt, types, TZ_MAGIC, TZ_MAX_CHARS, TZ_MAX_TIMES, TZ_MAX_TYPES, tzhead::tzh_charcnt, tzhead::tzh_leapcnt, tzhead::tzh_magic, tzhead::tzh_timecnt, tzhead::tzh_ttisstdcnt, tzhead::tzh_ttisutcnt, tzhead::tzh_typecnt, tzhead::tzh_version, want_bloat(), warning(), WORK_AROUND_QTBUG_53071, and ZIC_MAX.
Referenced by outzone().