Lines Matching refs:leapcnt
173 tz->_bit32.leapcnt = timelib_conv_int_unsigned(buffer[2]); in read_32bit_header()
186 (tz->_bit32.leapcnt == 0) && in detect_slim_file()
281 if (tz->bit64.leapcnt) { in read_64bit_types()
282 leap_buffer = (int32_t *) timelib_malloc(tz->bit64.leapcnt * (sizeof(int64_t) + sizeof(int32_t))); in read_64bit_types()
286 memcpy(leap_buffer, *tzf, tz->bit64.leapcnt * (sizeof(int64_t) + sizeof(int32_t))); in read_64bit_types()
287 *tzf += tz->bit64.leapcnt * (sizeof(int64_t) + sizeof(int32_t)); in read_64bit_types()
289 tz->leap_times = (tlinfo*) timelib_malloc(tz->bit64.leapcnt * sizeof(tlinfo)); in read_64bit_types()
294 for (i = 0; i < tz->bit64.leapcnt; i++) { in read_64bit_types()
343 if (tz->_bit32.leapcnt) { in skip_32bit_types()
344 *tzf += sizeof(int32_t) * tz->_bit32.leapcnt * 2; in skip_32bit_types()
524 printf("Leap.sec. count: " TIMELIB_ULONG_FMT "\n", (timelib_ulong) tz->bit64.leapcnt); in timelib_dump_tzinfo()
545 for (i = 0; i < tz->bit64.leapcnt; i++) { in timelib_dump_tzinfo()
646 tz->bit64.leapcnt = timelib_conv_int_unsigned(buffer[2]); in read_64bit_header()
750 tmp->_bit32.leapcnt = tz->_bit32.leapcnt; in timelib_tzinfo_clone()
756 tmp->bit64.leapcnt = tz->bit64.leapcnt; in timelib_tzinfo_clone()
774 if (tz->bit64.leapcnt) { in timelib_tzinfo_clone()
775 tmp->leap_times = (tlinfo*) timelib_malloc(tz->bit64.leapcnt * sizeof(tlinfo)); in timelib_tzinfo_clone()
776 memcpy(tmp->leap_times, tz->leap_times, tz->bit64.leapcnt * sizeof(tlinfo)); in timelib_tzinfo_clone()
858 if (!tz->bit64.leapcnt || !tz->leap_times) { in fetch_leaptime_offset()
862 for (i = tz->bit64.leapcnt - 1; i > 0; i--) { in fetch_leaptime_offset()