Lines Matching refs:tzf

52 static void read_preamble(const unsigned char **tzf, timelib_tzinfo *tz)  in read_preamble()  argument
55 *tzf += 4; in read_preamble()
58 tz->bc = (**tzf == '\1'); in read_preamble()
59 *tzf += 1; in read_preamble()
62 memcpy(tz->location.country_code, *tzf, 2); in read_preamble()
64 *tzf += 2; in read_preamble()
67 *tzf += 13; in read_preamble()
70 static void read_header(const unsigned char **tzf, timelib_tzinfo *tz) in read_header() argument
74 memcpy(&buffer, *tzf, sizeof(buffer)); in read_header()
81 *tzf += sizeof(buffer); in read_header()
84 static void read_transistions(const unsigned char **tzf, timelib_tzinfo *tz) in read_transistions() argument
95 memcpy(buffer, *tzf, sizeof(int32_t) * tz->timecnt); in read_transistions()
96 *tzf += (sizeof(int32_t) * tz->timecnt); in read_transistions()
106 memcpy(cbuffer, *tzf, sizeof(unsigned char) * tz->timecnt); in read_transistions()
107 *tzf += sizeof(unsigned char) * tz->timecnt; in read_transistions()
114 static void read_types(const unsigned char **tzf, timelib_tzinfo *tz) in read_types() argument
124 memcpy(buffer, *tzf, sizeof(unsigned char) * 6 * tz->typecnt); in read_types()
125 *tzf += sizeof(unsigned char) * 6 * tz->typecnt; in read_types()
145 memcpy(tz->timezone_abbr, *tzf, sizeof(char) * tz->charcnt); in read_types()
146 *tzf += sizeof(char) * tz->charcnt; in read_types()
153 memcpy(leap_buffer, *tzf, sizeof(int32_t) * tz->leapcnt * 2); in read_types()
154 *tzf += sizeof(int32_t) * tz->leapcnt * 2; in read_types()
173 memcpy(buffer, *tzf, sizeof(unsigned char) * tz->ttisstdcnt); in read_types()
174 *tzf += sizeof(unsigned char) * tz->ttisstdcnt; in read_types()
187 memcpy(buffer, *tzf, sizeof(unsigned char) * tz->ttisgmtcnt); in read_types()
188 *tzf += sizeof(unsigned char) * tz->ttisgmtcnt; in read_types()
197 static void read_location(const unsigned char **tzf, timelib_tzinfo *tz) in read_location() argument
202 memcpy(&buffer, *tzf, sizeof(buffer)); in read_location()
208 *tzf += sizeof(buffer); in read_location()
211 memcpy(tz->location.comments, *tzf, comments_len); in read_location()
213 *tzf += comments_len; in read_location()
259 static int seek_to_tz_position(const unsigned char **tzf, char *timezone, const timelib_tzdb *tzdb) in seek_to_tz_position() argument
281 (*tzf) = &(tzdb->data[tzdb->index[mid].pos]); in seek_to_tz_position()
311 const unsigned char *tzf; in timelib_timezone_id_is_valid() local
312 return (seek_to_tz_position(&tzf, timezone, tzdb)); in timelib_timezone_id_is_valid()
317 const unsigned char *tzf; in timelib_parse_tzfile() local
320 if (seek_to_tz_position(&tzf, timezone, tzdb)) { in timelib_parse_tzfile()
323 read_preamble(&tzf, tmp); in timelib_parse_tzfile()
324 read_header(&tzf, tmp); in timelib_parse_tzfile()
325 read_transistions(&tzf, tmp); in timelib_parse_tzfile()
326 read_types(&tzf, tmp); in timelib_parse_tzfile()
327 read_location(&tzf, tmp); in timelib_parse_tzfile()