Lines Matching refs:timecnt

116     int           timecnt;  member
333 for (i = sp->timecnt - 1; stddst_mask && 0 <= i; i--) in settzname()
502 int_fast32_t timecnt = detzcode(up->tzhead.tzh_timecnt); in tzloadbody() local
511 && 0 <= timecnt && timecnt < TZ_MAX_TIMES in tzloadbody()
517 = (timecnt * stored /* ats */ in tzloadbody()
518 + timecnt /* types */ in tzloadbody()
534 sp->timecnt = timecnt; in tzloadbody()
541 timecnt = 0; in tzloadbody()
542 for (i = 0; i < sp->timecnt; ++i) { in tzloadbody()
550 if (timecnt && attime <= sp->ats[timecnt - 1]) { in tzloadbody()
551 if (attime < sp->ats[timecnt - 1]) in tzloadbody()
554 timecnt--; in tzloadbody()
556 sp->ats[timecnt++] = attime; in tzloadbody()
561 timecnt = 0; in tzloadbody()
562 for (i = 0; i < sp->timecnt; ++i) { in tzloadbody()
567 sp->types[timecnt++] = typ; in tzloadbody()
569 sp->timecnt = timecnt; in tzloadbody()
701 while (1 < sp->timecnt in tzloadbody()
702 && (sp->types[sp->timecnt - 1] in tzloadbody()
703 == sp->types[sp->timecnt - 2])) in tzloadbody()
704 sp->timecnt--; in tzloadbody()
707 i < ts->timecnt && sp->timecnt < TZ_MAX_TIMES; in tzloadbody()
711 || (0 < sp->timecnt in tzloadbody()
712 && t <= sp->ats[sp->timecnt - 1])) in tzloadbody()
714 sp->ats[sp->timecnt] = t; in tzloadbody()
715 sp->types[sp->timecnt] = (sp->typecnt in tzloadbody()
717 sp->timecnt++; in tzloadbody()
726 if (sp->timecnt > 1) { in tzloadbody()
730 for (i = 1; i < sp->timecnt; ++i) in tzloadbody()
737 if (TIME_T_MIN + SECSPERREPEAT <= sp->ats[sp->timecnt - 1]) { in tzloadbody()
738 time_t repeatat = sp->ats[sp->timecnt - 1] - SECSPERREPEAT; in tzloadbody()
739 int repeattype = sp->types[sp->timecnt - 1]; in tzloadbody()
740 for (i = sp->timecnt - 2; i >= 0; --i) in tzloadbody()
763 for (i = 0; i < sp->timecnt; ++i) in tzloadbody()
766 i = i < sp->timecnt && ! ttunspecified(sp, 0) ? -1 : 0; in tzloadbody()
774 if (i < 0 && sp->timecnt > 0 && sp->ttis[sp->types[0]].tt_isdst) { in tzloadbody()
1179 if (0 < basep->timecnt) in tzparse()
1180 atlo = basep->ats[basep->timecnt - 1]; in tzparse()
1218 register int timecnt; in tzparse() local
1239 timecnt = 0; in tzparse()
1286 if (TZ_MAX_TIMES - 2 < timecnt) in tzparse()
1288 sp->ats[timecnt] = janfirst; in tzparse()
1290 (&sp->ats[timecnt], in tzparse()
1292 && atlo <= sp->ats[timecnt]) in tzparse()
1293 sp->types[timecnt++] = !reversed; in tzparse()
1294 sp->ats[timecnt] = janfirst; in tzparse()
1296 (&sp->ats[timecnt], in tzparse()
1298 && atlo <= sp->ats[timecnt]) { in tzparse()
1299 sp->types[timecnt++] = reversed; in tzparse()
1313 sp->timecnt = timecnt; in tzparse()
1314 if (! timecnt) { in tzparse()
1333 for (i = 0; i < sp->timecnt; ++i) { in tzparse()
1342 for (i = 0; i < sp->timecnt; ++i) { in tzparse()
1358 for (i = 0; i < sp->timecnt; ++i) { in tzparse()
1403 sp->timecnt = 0; in tzparse()
1436 sp->timecnt = 0; in zoneinit()
1578 (sp->goahead && t > sp->ats[sp->timecnt - 1])) { in localsub()
1585 else seconds = t - sp->ats[sp->timecnt - 1]; in localsub()
1599 newt > sp->ats[sp->timecnt - 1]) in localsub()
1624 if (sp->timecnt == 0 || t < sp->ats[0]) { in localsub()
1628 register int hi = sp->timecnt; in localsub()
2296 for (i = sp->timecnt - 1; i >= 0; --i) in time1()