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 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 (char const *target, char const *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 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 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 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 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)) |
#define ZIC_MAX PG_INT64_MAX |
#define ZIC_MIN PG_INT64_MIN |
|
static |
Definition at line 2586 of file zic.c.
References _, buf, error(), MINSPERHOUR, SECSPERMIN, and sign.
Referenced by doabbr().
|
static |
Definition at line 3348 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 3425 of file zic.c.
References _, comment_leapexpires, corr, error(), exit(), EXIT_FAILURE, hi_time, i, leapcnt, leapexpires, oadd(), SECSPERDAY, tadd(), trans, and warning().
Referenced by main().
|
static |
Definition at line 1158 of file zic.c.
References _, eat(), error(), errors, exit(), 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 3651 of file zic.c.
References _, ciequal(), ciprefix(), itsabbr(), lookup::l_word, lasts, noise, warning(), wday_names, and word().
Referenced by getleapdatetime(), infile(), inleap(), and rulesub().
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
Definition at line 1992 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 2630 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 1004 of file zic.c.
References _, close_file(), directory, ENOTSUP, exit(), EXIT_FAILURE, fprintf, free, hardlinkerr(), itsdir(), itssymlink(), mkdirs(), progname, relname(), strerror, symlink, and warning().
Referenced by main().
|
static |
|
static |
|
static |
Definition at line 434 of file zic.c.
References malloc, memcheck(), and size.
Referenced by getfields(), itsdir(), outzone(), relname(), and writezone().
|
static |
Definition at line 440 of file zic.c.
References memcheck(), realloc, and size.
Referenced by growalloc().
|
static |
Definition at line 504 of file zic.c.
References generate_unaccent_rules::args, errors, va_end(), va_start(), 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 3717 of file zic.c.
References _, emalloc(), error(), exit(), EXIT_FAILURE, is_space(), and size_product().
Referenced by infile().
|
static |
Definition at line 1365 of file zic.c.
References _, error(), HOURSPERDAY, MINSPERHOUR, noise, oadd(), SECSPERHOUR, SECSPERMIN, sign, warning(), and ZIC_MAX.
Referenced by getleapdatetime(), getsave(), inzsub(), and rulesub().
Definition at line 1666 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(), SECSPERDAY, tadd(), and TM_JANUARY.
Referenced by inexpires(), and inleap().
|
static |
Definition at line 452 of file zic.c.
References _, erealloc(), memory_exhausted(), nitems, PTRDIFF_MAX, size_product(), and WORK_AROUND_QTBUG_53071.
|
static |
|
static |
Definition at line 1787 of file zic.c.
References _, error(), EXPIRES_FIELDS, getleapdatetime(), and leapexpires.
Referenced by infile().
|
static |
Definition at line 1243 of file zic.c.
References _, buf, byword(), close_file(), comment_leapexpires, eat(), error(), exit(), 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, strerror, and zi_line_codes.
Referenced by AlterSystemSetConfigFile(), isolation_start_test(), main(), psql_start_test(), and readfile().
|
static |
Definition at line 1755 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 1798 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 1471 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 1567 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 |
|
static |
|
static |
|
static |
|
static |
|
static |
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(), and linkFile().
|
static |
int main | ( | int | argc, |
char ** | argv | ||
) |
Definition at line 654 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 426 of file zic.c.
References memory_exhausted(), and strerror.
Referenced by ecpyalloc(), emalloc(), and erealloc().
|
static |
Definition at line 411 of file zic.c.
References _, exit(), EXIT_FAILURE, fprintf, and progname.
Referenced by growalloc(), memcheck(), and size_product().
|
static |
Definition at line 3948 of file zic.c.
References _, ecpyalloc(), err(), error(), exit(), EXIT_FAILURE, free, itsdir(), mkdir, MKDIR_UMASK, name, progname, and strerror.
Referenced by change_directory(), dolink(), and writezone().
|
static |
|
static |
Definition at line 3910 of file zic.c.
References _, charcnt, chars, error(), exit(), EXIT_FAILURE, GRANDPARENTED, i, is_alpha(), noise, TZ_MAX_CHARS, warning(), and ZIC_MAX_ABBR_LEN_WO_WARN.
Referenced by addtype().
Definition at line 3764 of file zic.c.
References time_overflow(), ZIC_MAX, and ZIC_MIN.
Referenced by adjleap(), gethms(), getleapdatetime(), outzone(), and rpytime().
|
static |
Definition at line 2946 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 2014 of file zic.c.
References buf, convert(), and val.
Referenced by puttzcodepass(), and writezone().
|
static |
Definition at line 2023 of file zic.c.
References buf, convert64(), puttzcode(), and val.
Referenced by writezone().
|
static |
|
static |
Definition at line 3801 of file zic.c.
References _, DC_DOWGEQ, DC_DOWLEQ, EPOCH_WDAY, EPOCH_YEAR, error(), exit(), 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 1823 of file zic.c.
References _, begin_years, byword(), DC_DOM, DC_DOWGEQ, DC_DOWLEQ, ecpyalloc(), end_years, error(), exit(), 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, wday_names, YR_MAXIMUM, YR_MINIMUM, YR_ONLY, ZIC_MAX, and ZIC_MIN.
|
static |
Definition at line 418 of file zic.c.
References _, memory_exhausted(), and nitems.
Referenced by getfields(), growalloc(), and writezone().
|
static |
Definition at line 2682 of file zic.c.
References DAYSPERWEEK, HOURSPERDAY, len, MINSPERHOUR, SECSPERMIN, and sprintf.
Referenced by stringrule(), and stringzone().
Definition at line 2716 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 2811 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 3772 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 602 of file zic.c.
References hi_time, lo_time, max_time, min_time, PG_INT64_MAX, PG_INT64_MIN, and strtoimax.
Referenced by main().
|
static |
|
static |
Definition at line 543 of file zic.c.
References _, close_file(), exit(), EXIT_SUCCESS, fprintf, and progname.
Referenced by main().
|
static |
Definition at line 488 of file zic.c.
References _, generate_unaccent_rules::args, filename, fprintf, linenum, rfilename, rlinenum, and vfprintf().
|
static |
|
static |
Definition at line 515 of file zic.c.
References _, generate_unaccent_rules::args, fprintf, va_end(), va_start(), verror(), and warnings.
Referenced by adjleap(), associate(), byword(), componentcheck(), dolink(), gethms(), inzsub(), main(), namecheck(), newabbr(), outzone(), rpytime(), and writezone().
|
static |
Definition at line 2082 of file zic.c.
References _, addtype(), attype::at, atcomp(), attypes, timerange::base, chars, close_file(), convert(), corr, timerange::count, timerange::defaulttype, desigidx, directory, DO, emalloc(), error(), exit(), EXIT_FAILURE, fprintf, free, hi_time, i, INT64_FORMAT, isdsts, j, timerange::leapbase, leapcnt, timerange::leapcount, limitrange(), lo_time, max_time, MAXALIGN, min_time, mkdirs(), name, noise, PG_INT32_MAX, PG_INT32_MIN, 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 641 of file zic.c.
Referenced by main(), and want_bloat().
|
static |
Definition at line 175 of file zic.c.
Referenced by addtype(), newabbr(), outzone(), pg_interpret_timezone_abbrev(), tzloadbody(), and tzparse().
|
static |
Definition at line 401 of file zic.c.
Referenced by addtype(), getColorInfo(), initPopulateTable(), newabbr(), pg_reg_getcharacters(), and writezone().
|
static |
|
static |
Definition at line 403 of file zic.c.
Referenced by adjleap(), leapadd(), timesub(), tzloadbody(), and writezone().
|
static |
Definition at line 398 of file zic.c.
Referenced by addtype(), init_ttinfo(), tzloadbody(), and writezone().
|
static |
Definition at line 634 of file zic.c.
Referenced by create_manifest_writer(), CreateBackupStreamer(), dolink(), GetConfFilesInDir(), identify_target_directory(), main(), open_file_in_directory(), PathNameCreateTemporaryDir(), read_pg_version_file(), relname(), search_directory(), verify_directory(), and writezone().
|
static |
|
static |
Definition at line 176 of file zic.c.
Referenced by associate(), error(), and main().
|
static |
|
static |
Definition at line 591 of file zic.c.
Referenced by adjleap(), stringzone(), timerange_option(), and writezone().
|
static |
Definition at line 397 of file zic.c.
Referenced by addtype(), and writezone().
|
static |
|
static |
|
static |
|
static |
|
static |
Definition at line 179 of file zic.c.
Referenced by adjleap(), leapadd(), tzloadbody(), and writezone().
|
static |
Definition at line 594 of file zic.c.
Referenced by adjleap(), and inexpires().
|
static |
Definition at line 182 of file zic.c.
Referenced by getleapdatetime(), and outzone().
|
static |
Definition at line 181 of file zic.c.
Referenced by getleapdatetime(), and outzone().
|
static |
|
static |
Definition at line 180 of file zic.c.
Referenced by getleapdatetime(), and outzone().
|
static |
Definition at line 381 of file zic.c.
Referenced by getleapdatetime(), rpytime(), rulesub(), and stringrule().
|
static |
Definition at line 386 of file zic.c.
Referenced by getleapdatetime(), and rpytime().
|
static |
|
static |
Definition at line 299 of file zic.c.
Referenced by DeadLockCheck(), FindLockCycleRecurseMember(), GetSingleProcBlockerStatusData(), InitProcess(), inlink(), JoinWaitQueue(), main(), ProcLockWakeup(), and TopoSort().
|
static |
Definition at line 590 of file zic.c.
Referenced by timerange_option(), and writezone().
|
static |
|
static |
|
static |
Definition at line 586 of file zic.c.
Referenced by getleapdatetime(), inzsub(), outzone(), rpytime(), stringzone(), tadd(), timerange_option(), and writezone().
|
static |
Definition at line 186 of file zic.c.
Referenced by outzone(), and updateminmax().
|
static |
Definition at line 585 of file zic.c.
Referenced by getleapdatetime(), inzsub(), outzone(), rpytime(), tadd(), timerange_option(), and writezone().
|
static |
Definition at line 187 of file zic.c.
Referenced by outzone(), and updateminmax().
|
static |
Definition at line 309 of file zic.c.
Referenced by getleapdatetime(), and rulesub().
|
static |
Definition at line 188 of file zic.c.
Referenced by byword(), componentcheck(), gethms(), inzsub(), main(), namecheck(), newabbr(), outzone(), rpytime(), and writezone().
|
static |
Definition at line 284 of file zic.c.
Referenced by associate(), and inrule().
|
static |
|
static |
Definition at line 189 of file zic.c.
Referenced by main(), and writezone().
|
static |
Definition at line 190 of file zic.c.
Referenced by main(), and writezone().
|
static |
Definition at line 193 of file zic.c.
Referenced by change_directory(), close_file(), dolink(), infile(), main(), memory_exhausted(), mkdirs(), rulesub(), usage(), and writezone().
|
static |
Definition at line 47 of file zic.c.
Referenced by growalloc().
|
static |
|
static |
Definition at line 404 of file zic.c.
Referenced by leapadd(), and writezone().
|
static |
Definition at line 283 of file zic.c.
Referenced by associate(), fireRIRrules(), inrule(), and RelationBuildRuleLock().
|
static |
Definition at line 194 of file zic.c.
Referenced by addtt(), outzone(), tzloadbody(), tzparse(), and writezone().
|
static |
Definition at line 402 of file zic.c.
Referenced by add_tabstat_xact_level(), adjleap(), AtEOSubXact_PgStat_Relations(), AtEOXact_PgStat_Relations(), AtPrepare_PgStat_Relations(), find_tabstat_entry(), leapadd(), pgstat_report_analyze(), PostPrepare_PgStat_Relations(), restore_truncdrop_counters(), save_truncdrop_counters(), sqlnotice(), and writezone().
|
static |
Definition at line 399 of file zic.c.
Referenced by addtype(), and writezone().
|
static |
Definition at line 400 of file zic.c.
Referenced by addtype(), and writezone().
|
static |
Definition at line 196 of file zic.c.
Referenced by addtype(), outzone(), tzloadbody(), and writezone().
|
static |
|
static |
Definition at line 396 of file zic.c.
Referenced by addtype(), and writezone().
|
static |
|
static |