Lines Matching refs:timecnt
124 int timecnt; member
302 for (i = 0; i < sp->timecnt; ++i) { in settzname()
443 int_fast32_t timecnt = detzcode(up->tzhead.tzh_timecnt); in tzloadbody() local
449 && 0 <= timecnt && timecnt < TZ_MAX_TIMES in tzloadbody()
456 + timecnt * stored /* ats */ in tzloadbody()
457 + timecnt /* types */ in tzloadbody()
465 sp->timecnt = timecnt; in tzloadbody()
472 timecnt = 0; in tzloadbody()
473 for (i = 0; i < sp->timecnt; ++i) { in tzloadbody()
481 if (timecnt && attime <= sp->ats[timecnt - 1]) { in tzloadbody()
482 if (attime < sp->ats[timecnt - 1]) in tzloadbody()
485 timecnt--; in tzloadbody()
487 sp->ats[timecnt++] = attime; in tzloadbody()
492 timecnt = 0; in tzloadbody()
493 for (i = 0; i < sp->timecnt; ++i) { in tzloadbody()
498 sp->types[timecnt++] = typ; in tzloadbody()
500 sp->timecnt = timecnt; in tzloadbody()
614 for (i = 0; i < ts->timecnt; i++) in tzloadbody()
615 if (sp->ats[sp->timecnt - 1] < ts->ats[i]) in tzloadbody()
617 while (i < ts->timecnt in tzloadbody()
618 && sp->timecnt < TZ_MAX_TIMES) { in tzloadbody()
619 sp->ats[sp->timecnt] = ts->ats[i]; in tzloadbody()
620 sp->types[sp->timecnt] = (sp->typecnt in tzloadbody()
622 sp->timecnt++; in tzloadbody()
630 if (sp->timecnt > 1) { in tzloadbody()
631 for (i = 1; i < sp->timecnt; ++i) in tzloadbody()
637 for (i = sp->timecnt - 2; i >= 0; --i) in tzloadbody()
638 if (typesequiv(sp, sp->types[sp->timecnt - 1], in tzloadbody()
640 differ_by_repeat(sp->ats[sp->timecnt - 1], in tzloadbody()
650 for (i = 0; i < sp->timecnt; ++i) in tzloadbody()
653 i = i < sp->timecnt ? -1 : 0; in tzloadbody()
661 if (i < 0 && sp->timecnt > 0 && sp->ttis[sp->types[0]].tt_isdst) { in tzloadbody()
1086 register int timecnt; in tzparse() local
1105 timecnt = 0; in tzparse()
1126 if (TZ_MAX_TIMES - 2 < timecnt) in tzparse()
1129 sp->ats[timecnt] = janfirst; in tzparse()
1131 (&sp->ats[timecnt], starttime)) in tzparse()
1133 sp->types[timecnt++] = reversed; in tzparse()
1134 sp->ats[timecnt] = janfirst; in tzparse()
1136 (&sp->ats[timecnt], endtime)) in tzparse()
1138 sp->types[timecnt++] = !reversed; in tzparse()
1143 sp->timecnt = timecnt; in tzparse()
1144 if (!timecnt) in tzparse()
1160 for (i = 0; i < sp->timecnt; ++i) { in tzparse()
1169 for (i = 0; i < sp->timecnt; ++i) { in tzparse()
1186 for (i = 0; i < sp->timecnt; ++i) { in tzparse()
1230 sp->timecnt = 0; in tzparse()
1263 sp->timecnt = 0; in zoneinit()
1415 (sp->goahead && t > sp->ats[sp->timecnt - 1])) { in localsub()
1422 else seconds = t - sp->ats[sp->timecnt - 1]; in localsub()
1430 newt > sp->ats[sp->timecnt - 1]) in localsub()
1446 if (sp->timecnt == 0 || t < sp->ats[0]) { in localsub()
1450 register int hi = sp->timecnt; in localsub()
2093 for (i = sp->timecnt - 1; i >= 0; --i) in time1()