|
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 INT_FAST64_MIN |
| #define | ZIC_MAX INT_FAST64_MAX |
| #define | PRIdZIC PRIdFAST64 |
| #define | SCNdZIC SCNdFAST64 |
| #define | ZIC_MAX_ABBR_LEN_WO_WARN 6 |
| #define | MKDIR_UMASK 0755 |
| #define | _Alignof(type) offsetof(struct { char a; type b; }, b) |
| #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 int_fast64_t | zic_t |
| typedef intmax_t | 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 | verror (const char *const string, va_list args) pg_attribute_printf(1 |
| static void static void | error (const char *const string,...) pg_attribute_printf(1 |
| static void static void static void | warning (const char *const string,...) pg_attribute_printf(1 |
| static void static void static void static void | addtt (zic_t starttime, int type) |
| static int | addtype (zic_t utoff, char const *abbr, bool isdst, bool ttisstd, bool ttisut) |
| static void | leapadd (zic_t t, int correction, int rolling) |
| static void | adjleap (void) |
| static void | associate (void) |
| static void | dolink (const char *target, const char *linkname, bool staysymlink) |
| static char ** | getfields (char *cp) |
| static zic_t | gethms (const char *string, const char *errstring) |
| static zic_t | getsave (char *field, bool *isdst) |
| static void | inexpires (char **fields, int nfields) |
| static void | infile (const char *name) |
| 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 **fields, int nfields, bool iscont) |
| static bool | itsdir (char const *name) |
| static bool | itssymlink (char const *name) |
| static bool | is_alpha (char a) |
| static char | lowerit (char a) |
| static void | mkdirs (char const *argname, bool ancestors) |
| static void | newabbr (const char *string) |
| static zic_t | oadd (zic_t t1, zic_t t2) |
| static void | outzone (const struct zone *zpfirst, ptrdiff_t zonecount) |
| 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 *word, const struct lookup *table) |
| static _Noreturn void | memory_exhausted (const char *msg) |
| static size_t | size_product (size_t nitems, size_t itemsize) |
| static size_t | align_to (size_t size, size_t alignment) |
| 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 _Noreturn void | usage (FILE *stream, int status) |
| 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 char * | relname (char const *target, char const *linkname) |
| 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 int_fast32_t val, char *const buf) |
| static void | convert64 (const zic_t val, char *const buf) |
| static void | puttzcode (const int_fast32_t 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 _Noreturn 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 DO | ( | field | ) | fwrite(tzh.field, sizeof tzh.field, 1, fp) |
| #define LDAYSPERWEEK ((zic_t) DAYSPERWEEK) |
| #define linkat | ( | targetdir, | |
| target, | |||
| linknamedir, | |||
| linkname, | |||
| flag | |||
| ) | (itssymlink(target) ? (errno = ENOTSUP, -1) : link(target, linkname)) |
|
static |
Definition at line 2575 of file zic.c.
References _, buf, error(), MINSPERHOUR, SECSPERMIN, and sign.
Referenced by doabbr().
|
static |
Definition at line 3337 of file zic.c.
References attype::at, attypes, attype::dontmerge, growalloc(), timecnt, timecnt_alloc, type, and attype::type.
Referenced by outzone().
|
static |
Definition at line 3347 of file zic.c.
References _, charcnt, chars, desigidx, error(), EXIT_FAILURE, i, isdsts, j, newabbr(), ttisstds, ttisuts, typecnt, TZ_MAX_TYPES, utoffs, and want_bloat().
Referenced by outzone(), and writezone().
|
static |
Definition at line 3414 of file zic.c.
References _, comment_leapexpires, corr, error(), EXIT_FAILURE, hi_time, i, leapcnt, leapexpires, oadd(), SECSPERDAY, tadd(), trans, and warning().
Referenced by main().
|
static |
Definition at line 429 of file zic.c.
References _, and memory_exhausted().
Referenced by writezone().
|
static |
Definition at line 1172 of file zic.c.
References _, eat(), error(), errors, EXIT_FAILURE, getsave(), i, j, nrules, nzones, qsort, rule::r_filename, rule::r_linenum, rule::r_name, rcomp(), rules, warning(), zone::z_filename, zone::z_format_specifier, zone::z_isdst, zone::z_linenum, zone::z_nrules, zone::z_rule, zone::z_rules, zone::z_save, and zones.
Referenced by main().
|
static |
Definition at line 3640 of file zic.c.
References _, ciequal(), ciprefix(), itsabbr(), lookup::l_word, lasts, noise, table, warning(), wday_names, and word().
Referenced by getleapdatetime(), infile(), inleap(), and rulesub().
|
static |
Definition at line 576 of file zic.c.
References _, EXIT_FAILURE, fprintf, mkdirs(), progname, and strerror.
Referenced by main().
|
static |
|
static |
|
static |
Definition at line 541 of file zic.c.
References _, EXIT_FAILURE, fprintf, name, progname, and strerror.
Referenced by dolink(), infile(), main(), usage(), and writezone().
|
static |
Definition at line 873 of file zic.c.
References _, error(), len, name, noise, and warning().
Referenced by namecheck().
|
static |
Definition at line 1980 of file zic.c.
References b, buf, i, and val.
Referenced by ExecInitExprRec(), fmtfloat(), fmtint(), fmtptr(), get_rule_expr(), pg_strfromd(), print_double(), puttzcode(), and writezone().
|
static |
|
static |
Definition at line 2619 of file zic.c.
References abbroffset(), format, is_alpha(), len, 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 1018 of file zic.c.
References _, close_file(), directory, ENOTSUP, EXIT_FAILURE, fprintf, free, hardlinkerr(), itsdir(), itssymlink(), mkdirs(), progname, relname(), strerror, symlink, and warning().
Referenced by main().
|
static |
|
static |
|
static |
Definition at line 448 of file zic.c.
References malloc, and memcheck().
Referenced by getfields(), itsdir(), outzone(), relname(), and writezone().
|
static |
Definition at line 454 of file zic.c.
References memcheck(), and realloc.
Referenced by growalloc().
|
static |
Definition at line 518 of file zic.c.
References generate_unaccent_rules::args, errors, 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 3706 of file zic.c.
References _, emalloc(), error(), EXIT_FAILURE, is_space(), and size_product().
Referenced by infile().
|
static |
Definition at line 1366 of file zic.c.
References _, error(), HOURSPERDAY, MINSPERHOUR, noise, oadd(), SCNdZIC, SECSPERHOUR, SECSPERMIN, sign, warning(), and ZIC_MAX.
Referenced by getleapdatetime(), getsave(), inzsub(), and rulesub().
|
static |
Definition at line 1663 of file zic.c.
References _, byword(), EPOCH_YEAR, error(), gethms(), i, isleap, j, lookup::l_value, leapmaxyear, leapminyear, leapseen, len_months, len_years, LP_DAY, LP_MONTH, LP_TIME, LP_YEAR, max_time, min_time, mon_names, oadd(), SCNdZIC, SECSPERDAY, tadd(), and TM_JANUARY.
Referenced by inexpires(), and inleap().
|
static |
Definition at line 1440 of file zic.c.
Referenced by associate(), and inrule().
|
static |
Definition at line 466 of file zic.c.
References _, erealloc(), memory_exhausted(), nitems, PTRDIFF_MAX, size_product(), and WORK_AROUND_QTBUG_53071.
|
static |
|
static |
Definition at line 1782 of file zic.c.
References _, error(), EXPIRES_FIELDS, getleapdatetime(), and leapexpires.
Referenced by infile().
|
static |
Definition at line 1257 of file zic.c.
References _, buf, byword(), close_file(), comment_leapexpires, eat(), error(), EXIT_FAILURE, filename, 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, leapsec, name, progname, SCNdZIC, strerror, and zi_line_codes.
Referenced by AlterSystemSetConfigFile(), isolation_start_test(), main(), psql_start_test(), and readfile().
|
static |
Definition at line 1750 of file zic.c.
References _, byword(), error(), getleapdatetime(), lookup::l_value, LEAP_FIELDS, leap_types, leapadd(), LP_CORR, and LP_ROLL.
Referenced by infile().
|
static |
Definition at line 1793 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, links, namecheck(), nlinks, and nlinks_alloc.
Referenced by infile().
|
static |
Definition at line 1468 of file zic.c.
References _, ecpyalloc(), error(), filename, getsave(), growalloc(), linenum, max_abbrvar_len, nrules, nrules_alloc, 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, rules, and rulesub().
Referenced by infile().
|
static |
|
static |
Definition at line 1515 of file zic.c.
References _, error(), i, inzsub(), lcltime, nzones, psxrules, tzdefault, TZDEFRULES, ZF_NAME, ZONE_MAXFIELDS, and zones.
Referenced by infile().
|
static |
Definition at line 1564 of file zic.c.
References _, ecpyalloc(), error(), filename, gethms(), growalloc(), linenum, max_format_len, max_time, min_time, namecheck(), noise, nzones, nzones_alloc, 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, ZFC_TILYEAR, and zones.
|
static |
Definition at line 3475 of file zic.c.
References a.
|
static |
Definition at line 3457 of file zic.c.
References a.
Referenced by getfields().
|
static |
|
static |
Definition at line 1120 of file zic.c.
References emalloc(), EOVERFLOW, free, name, S_ISDIR, stat::st_mode, and stat.
|
static |
|
static |
Definition at line 3392 of file zic.c.
References _, corr, error(), EXIT_FAILURE, i, leapcnt, roll, trans, and TZ_MAX_LEAPS.
Referenced by inleap().
|
static |
Definition at line 2043 of file zic.c.
References timerange::defaulttype, trans, types, and ZIC_MAX.
Referenced by writezone().
| int link | ( | const char * | target, |
| const char * | linkname | ||
| ) |
Definition at line 18 of file win32link.c.
References _dosmaperr().
Referenced by AllocSetAllocFromNewBlock(), AllocSetFree(), check_hard_link(), copy_file_link(), and linkFile().
|
static |
Definition at line 3540 of file zic.c.
References a.
Referenced by ciequal(), ciprefix(), itsabbr(), and rulesub().
| int main | ( | int | argc, |
| char ** | argv | ||
| ) |
Definition at line 668 of file zic.c.
References _, adjleap(), associate(), bloat, change_directory(), close_file(), directory, dolink(), eat(), error(), errors, EXIT_FAILURE, EXIT_SUCCESS, fprintf, getopt(), i, infile(), j, lcltime, leapsec, links, nlinks, noise, nzones, optarg, optind, outzone(), print_abbrevs, print_cutoff, printf, progname, psxrules, S_IWGRP, S_IWOTH, generate_unaccent_rules::stdout, timerange_option(), TYPE_BIT, TZDEFAULT, tzdefault, TZDEFRULES, usage(), warning(), warnings, zone::z_name, ZIC_BLOAT_DEFAULT, and zones.
|
static |
Definition at line 440 of file zic.c.
References memory_exhausted(), and strerror.
Referenced by ecpyalloc(), emalloc(), and erealloc().
|
static |
Definition at line 414 of file zic.c.
References _, EXIT_FAILURE, fprintf, and progname.
Referenced by align_to(), growalloc(), memcheck(), and size_product().
|
static |
Definition at line 3937 of file zic.c.
References _, ecpyalloc(), err(), error(), EXIT_FAILURE, free, itsdir(), mkdir, MKDIR_UMASK, name, progname, and strerror.
Referenced by change_directory(), dolink(), and writezone().
|
static |
Definition at line 917 of file zic.c.
References _, componentcheck(), name, noise, and warning().
|
static |
Definition at line 3899 of file zic.c.
References _, charcnt, chars, error(), EXIT_FAILURE, GRANDPARENTED, i, is_alpha(), noise, TZ_MAX_CHARS, warning(), and ZIC_MAX_ABBR_LEN_WO_WARN.
Referenced by addtype().
Definition at line 3753 of file zic.c.
References time_overflow(), ZIC_MAX, and ZIC_MIN.
Referenced by adjleap(), gethms(), getleapdatetime(), outzone(), and rpytime().
|
static |
Definition at line 2935 of file zic.c.
References _, addtt(), addtype(), attype::at, attypes, charcnt, compat, DC_DOM, doabbr(), attype::dontmerge, eat(), eats(), emalloc(), EPOCH_YEAR, error(), free, i, INITIALIZE, j, leapmaxyear, leapminyear, leapseen, max_abbrvar_len, max_format_len, max_time, max_year, min_time, min_year, noise, 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, type, attype::type, typecnt, 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 2002 of file zic.c.
References buf, convert(), and val.
Referenced by puttzcodepass(), and writezone().
|
static |
Definition at line 2011 of file zic.c.
References buf, convert64(), puttzcode(), and val.
Referenced by writezone().
|
static |
|
static |
Definition at line 965 of file zic.c.
References directory, emalloc(), i, and len.
Referenced by dolink().
Definition at line 3790 of file zic.c.
References _, DC_DOWGEQ, DC_DOWLEQ, EPOCH_WDAY, EPOCH_YEAR, error(), EXIT_FAILURE, i, isleap, LDAYSPERWEEK, len_months, len_years, max_time, min_time, noise, oadd(), rule::r_dayofmonth, rule::r_dycode, rule::r_month, rule::r_tod, rule::r_wday, SECSPERDAY, SECSPERREPEAT, tadd(), TM_FEBRUARY, TM_JANUARY, warning(), y, YEARSPERREPEAT, ZIC_MAX, and ZIC_MIN.
|
static |
Definition at line 1818 of file zic.c.
References _, begin_years, byword(), DC_DOM, DC_DOWGEQ, DC_DOWLEQ, ecpyalloc(), end_years, error(), EXIT_FAILURE, fprintf, free, gethms(), lookup::l_value, lasts, len_months, lowerit(), mon_names, progname, 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, SCNdZIC, wday_names, YR_MAXIMUM, YR_MINIMUM, YR_ONLY, ZIC_MAX, and ZIC_MIN.
|
static |
Definition at line 421 of file zic.c.
References _, memory_exhausted(), and nitems.
Referenced by getfields(), growalloc(), and writezone().
|
static |
Definition at line 2671 of file zic.c.
References DAYSPERWEEK, HOURSPERDAY, len, MINSPERHOUR, SECSPERMIN, and sprintf.
Referenced by stringrule(), and stringzone().
Definition at line 2705 of file zic.c.
References compat, DAYSPERWEEK, DC_DOM, DC_DOWGEQ, DC_DOWLEQ, len_months, 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 2800 of file zic.c.
References compat, DC_DOM, doabbr(), hi_time, i, len, max_time, 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 3761 of file zic.c.
References max_time, min_time, and time_overflow().
Referenced by adjleap(), getleapdatetime(), outzone(), rpytime(), and writezone().
|
static |
Definition at line 3746 of file zic.c.
References _, error(), and EXIT_FAILURE.
|
static |
Definition at line 616 of file zic.c.
References hi_time, lo_time, max_time, and min_time.
Referenced by main().
|
static |
|
static |
Definition at line 557 of file zic.c.
References _, close_file(), EXIT_SUCCESS, fprintf, and progname.
Referenced by main().
|
static |
|
static |
|
static |
Definition at line 529 of file zic.c.
References _, generate_unaccent_rules::args, fprintf, verror(), and warnings.
Referenced by adjleap(), associate(), byword(), componentcheck(), dolink(), gethms(), inzsub(), main(), namecheck(), newabbr(), outzone(), rpytime(), and writezone().
|
static |
Definition at line 2070 of file zic.c.
References _, _Alignof, addtype(), align_to(), attype::at, atcomp(), attypes, timerange::base, chars, close_file(), convert(), corr, timerange::count, timerange::defaulttype, desigidx, directory, DO, emalloc(), error(), EXIT_FAILURE, fprintf, free, hi_time, i, isdsts, j, timerange::leapbase, leapcnt, timerange::leapcount, limitrange(), lo_time, max_time, min_time, mkdirs(), name, noise, print_abbrevs, print_cutoff, progname, puttzcode(), puttzcodepass(), qsort, roll, size_product(), generate_unaccent_rules::stdout, strerror, tadd(), timecnt, tm, trans, ttisstds, ttisuts, 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, utoffs, want_bloat(), warning(), WORK_AROUND_QTBUG_53071, and ZIC_MAX.
Referenced by outzone().
|
static |
Referenced by addtt(), outzone(), and writezone().
|
static |
|
static |
Definition at line 655 of file zic.c.
Referenced by main(), and want_bloat().
|
static |
Definition at line 178 of file zic.c.
Referenced by addtype(), newabbr(), outzone(), pg_interpret_timezone_abbrev(), pg_timezone_abbrev_is_known(), tzloadbody(), and tzparse().
|
static |
Definition at line 404 of file zic.c.
Referenced by addtype(), getColorInfo(), initPopulateTable(), newabbr(), pg_reg_getcharacters(), and writezone().
|
static |
|
static |
Definition at line 406 of file zic.c.
Referenced by adjleap(), leapadd(), timesub(), tzloadbody(), and writezone().
|
static |
Definition at line 401 of file zic.c.
Referenced by addtype(), init_ttinfo(), tzloadbody(), and writezone().
|
static |
Definition at line 648 of file zic.c.
Referenced by create_manifest_writer(), CreateBackupStreamer(), dolink(), GetConfFilesInDir(), identify_target_directory(), main(), open_file_in_directory(), PathNameCreateTemporaryDir(), relname(), search_directory(), verify_directory(), and writezone().
|
static |
|
static |
Definition at line 179 of file zic.c.
Referenced by associate(), error(), and main().
|
static |
|
static |
Definition at line 605 of file zic.c.
Referenced by adjleap(), stringzone(), timerange_option(), and writezone().
|
static |
Definition at line 400 of file zic.c.
Referenced by addtype(), and writezone().
|
static |
|
static |
|
static |
|
static |
|
static |
Definition at line 182 of file zic.c.
Referenced by adjleap(), leapadd(), tzloadbody(), and writezone().
|
static |
Definition at line 608 of file zic.c.
Referenced by adjleap(), and inexpires().
|
static |
Definition at line 185 of file zic.c.
Referenced by getleapdatetime(), and outzone().
|
static |
Definition at line 184 of file zic.c.
Referenced by getleapdatetime(), and outzone().
|
static |
|
static |
Definition at line 183 of file zic.c.
Referenced by getleapdatetime(), and outzone().
|
static |
Definition at line 384 of file zic.c.
Referenced by getleapdatetime(), rpytime(), rulesub(), and stringrule().
|
static |
Definition at line 389 of file zic.c.
Referenced by getleapdatetime(), and rpytime().
|
static |
|
static |
Definition at line 302 of file zic.c.
Referenced by DeadLockCheck(), FindLockCycleRecurseMember(), GetSingleProcBlockerStatusData(), InitProcess(), inlink(), JoinWaitQueue(), main(), ProcLockWakeup(), and TopoSort().
|
static |
Definition at line 604 of file zic.c.
Referenced by timerange_option(), and writezone().
|
static |
|
static |
|
static |
Definition at line 600 of file zic.c.
Referenced by getleapdatetime(), inzsub(), outzone(), rpytime(), stringzone(), tadd(), timerange_option(), and writezone().
|
static |
Definition at line 189 of file zic.c.
Referenced by outzone(), and updateminmax().
|
static |
Definition at line 599 of file zic.c.
Referenced by getleapdatetime(), inzsub(), outzone(), rpytime(), tadd(), timerange_option(), and writezone().
|
static |
Definition at line 190 of file zic.c.
Referenced by outzone(), and updateminmax().
|
static |
Definition at line 327 of file zic.c.
Referenced by getleapdatetime(), and rulesub().
|
static |
Definition at line 191 of file zic.c.
Referenced by byword(), componentcheck(), gethms(), inzsub(), main(), namecheck(), newabbr(), outzone(), rpytime(), and writezone().
|
static |
Definition at line 287 of file zic.c.
Referenced by associate(), and inrule().
|
static |
|
static |
Definition at line 192 of file zic.c.
Referenced by main(), and writezone().
|
static |
Definition at line 193 of file zic.c.
Referenced by main(), and writezone().
|
static |
Definition at line 196 of file zic.c.
Referenced by change_directory(), close_file(), dolink(), infile(), main(), memory_exhausted(), mkdirs(), rulesub(), usage(), and writezone().
|
static |
Definition at line 49 of file zic.c.
Referenced by growalloc().
|
static |
|
static |
Definition at line 407 of file zic.c.
Referenced by leapadd(), and writezone().
|
static |
Definition at line 286 of file zic.c.
Referenced by associate(), fireRIRrules(), inrule(), and RelationBuildRuleLock().
|
static |
Definition at line 197 of file zic.c.
Referenced by addtt(), outzone(), tzloadbody(), tzparse(), and writezone().
|
static |
Definition at line 405 of file zic.c.
Referenced by add_tabstat_xact_level(), adjleap(), AtEOSubXact_PgStat_Relations(), AtEOXact_PgStat_Relations(), AtPrepare_PgStat_Relations(), find_tabstat_entry(), leapadd(), limitrange(), pgstat_report_analyze(), PostPrepare_PgStat_Relations(), restore_truncdrop_counters(), save_truncdrop_counters(), sqlnotice(), and writezone().
|
static |
Definition at line 402 of file zic.c.
Referenced by addtype(), and writezone().
|
static |
Definition at line 403 of file zic.c.
Referenced by addtype(), and writezone().
|
static |
Definition at line 199 of file zic.c.
Referenced by addtype(), outzone(), tzloadbody(), and writezone().
|
static |
|
static |
Definition at line 399 of file zic.c.
Referenced by addtype(), and writezone().
|
static |
|
static |