Lines Matching refs:timecnt

164 	tz->_bit32.timecnt    = timelib_conv_int_unsigned(buffer[3]);  in read_32bit_header()
177 if (tz->bit64.timecnt) { in read_64bit_transitions()
178 buffer = (int64_t*) timelib_malloc(tz->bit64.timecnt * sizeof(int64_t)); in read_64bit_transitions()
182 memcpy(buffer, *tzf, sizeof(int64_t) * tz->bit64.timecnt); in read_64bit_transitions()
183 *tzf += (sizeof(int64_t) * tz->bit64.timecnt); in read_64bit_transitions()
184 for (i = 0; i < tz->bit64.timecnt; i++) { in read_64bit_transitions()
192 cbuffer = (unsigned char*) timelib_malloc(tz->bit64.timecnt * sizeof(unsigned char)); in read_64bit_transitions()
197 memcpy(cbuffer, *tzf, sizeof(unsigned char) * tz->bit64.timecnt); in read_64bit_transitions()
198 *tzf += sizeof(unsigned char) * tz->bit64.timecnt; in read_64bit_transitions()
209 if (tz->_bit32.timecnt) { in skip_32bit_transitions()
210 *tzf += (sizeof(int32_t) * tz->_bit32.timecnt); in skip_32bit_transitions()
211 *tzf += sizeof(unsigned char) * tz->_bit32.timecnt; in skip_32bit_transitions()
383 printf("Trans. count: " TIMELIB_ULONG_FMT "\n", (timelib_ulong) tz->bit64.timecnt); in timelib_dump_tzinfo()
396 for (i = 0; i < tz->bit64.timecnt; i++) { in timelib_dump_tzinfo()
479 tz->bit64.timecnt = timelib_conv_int_unsigned(buffer[3]); in read_64bit_header()
569 tmp->_bit32.timecnt = tz->_bit32.timecnt; in timelib_tzinfo_clone()
575 tmp->bit64.timecnt = tz->bit64.timecnt; in timelib_tzinfo_clone()
579 if (tz->bit64.timecnt) { in timelib_tzinfo_clone()
580 tmp->trans = (int64_t *) timelib_malloc(tz->bit64.timecnt * sizeof(int64_t)); in timelib_tzinfo_clone()
581 tmp->trans_idx = (unsigned char*) timelib_malloc(tz->bit64.timecnt * sizeof(unsigned char)); in timelib_tzinfo_clone()
582 memcpy(tmp->trans, tz->trans, tz->bit64.timecnt * sizeof(int64_t)); in timelib_tzinfo_clone()
583 memcpy(tmp->trans_idx, tz->trans_idx, tz->bit64.timecnt * sizeof(unsigned char)); in timelib_tzinfo_clone()
606 if (!tz->bit64.timecnt || !tz->trans) { in fetch_timezone_offset()
625 for (i = 0; i < tz->bit64.timecnt; i++) { in fetch_timezone_offset()
631 *transition_time = tz->trans[tz->bit64.timecnt - 1]; in fetch_timezone_offset()
632 return &(tz->type[tz->trans_idx[tz->bit64.timecnt - 1]]); in fetch_timezone_offset()