#include "postgres_fe.h"
#include <fcntl.h>
#include <sys/stat.h>
#include <time.h>
#include <unistd.h>
#include "pgtz.h"
Go to the source code of this file.
Definition at line 156 of file findtimezone.c.
Definition at line 152 of file findtimezone.c.
Definition at line 154 of file findtimezone.c.
Definition at line 153 of file findtimezone.c.
Definition at line 190 of file findtimezone.c.
References tm, pg_tm::tm_isdst, pg_tm::tm_mday, pg_tm::tm_mon, and pg_tm::tm_year.
Referenced by identify_system_timezone().
Definition at line 544 of file findtimezone.c.
References fprintf, len, MAXPGPATH, perfect_timezone_match(), readlink, and TZ_STRLEN_MAX.
Referenced by identify_system_timezone().
Definition at line 207 of file findtimezone.c.
References pg_tm::tm_hour, pg_tm::tm_isdst, pg_tm::tm_mday, pg_tm::tm_min, pg_tm::tm_mon, pg_tm::tm_sec, pg_tm::tm_wday, pg_tm::tm_yday, and pg_tm::tm_year.
Referenced by score_timezone().
Definition at line 175 of file findtimezone.c.
References TIMEZONE_GLOBAL, tm, and pg_tm::tm_gmtoff.
Referenced by identify_system_timezone().
Definition at line 331 of file findtimezone.c.
References build_time_t(), check_system_link_file(), fprintf, get_timezone_offset(), MAX_TEST_TIMES, MAXPGPATH, tztry::n_test_times, pg_TZDIR(), scan_available_timezones(), score_timezone(), snprintf, strlcpy(), T_DAY, T_MONTH, T_WEEK, tztry::test_times, tm, pg_tm::tm_isdst, pg_tm::tm_year, and TZ_STRLEN_MAX.
Referenced by select_default_timezone().
Definition at line 320 of file findtimezone.c.
References tztry::n_test_times, and score_timezone().
Referenced by check_system_link_file().
Definition at line 91 of file findtimezone.c.
References name, pg_tz::state, TZ_STRLEN_MAX, tzload(), pg_tz::TZname, and tzparse().
Referenced by score_timezone(), and validate_zone().
Definition at line 65 of file findtimezone.c.
References MAXPGPATH, name, PG_BINARY, pg_TZDIR(), strlcpy(), and TZ_STRLEN_MAX.
Referenced by tzloadbody().
Definition at line 37 of file findtimezone.c.
References tzdirpath.
Referenced by identify_system_timezone(), and pg_open_tzfile().
Definition at line 657 of file findtimezone.c.
References fprintf, MAXPGPATH, name, pgfnames(), pgfnames_cleanup(), S_ISDIR, scan_available_timezones(), score_timezone(), snprintf, stat::st_mode, stat, strlcpy(), TZ_STRLEN_MAX, and zone_name_pref().
Referenced by identify_system_timezone(), and scan_available_timezones().
Definition at line 234 of file findtimezone.c.
References compare_tm(), fprintf, i, tztry::n_test_times, pg_load_tz(), pg_localtime(), pg_tz_acceptable(), tztry::test_times, tm, pg_tm::tm_hour, pg_tm::tm_isdst, pg_tm::tm_mday, pg_tm::tm_min, pg_tm::tm_mon, pg_tm::tm_sec, pg_tm::tm_year, pg_tm::tm_zone, and TZ_STRLEN_MAX.
Referenced by identify_system_timezone(), perfect_timezone_match(), and scan_available_timezones().
Definition at line 1757 of file findtimezone.c.
References identify_system_timezone(), share_path, snprintf, tzdirpath, and validate_zone().
Referenced by test_config_settings().
Definition at line 1728 of file findtimezone.c.
References pg_load_tz(), and pg_tz_acceptable().
Referenced by select_default_timezone().
Definition at line 615 of file findtimezone.c.
Referenced by scan_available_timezones().
Definition at line 27 of file findtimezone.c.
Referenced by pg_TZDIR(), and select_default_timezone().