Lines Matching refs:timecnt
105 int timecnt; member
279 for (i = 0; i < sp->timecnt; ++i) { in settzname()
394 int timecnt; in tzload() local
399 sp->timecnt = (int) detzcode(up->tzhead.tzh_timecnt); in tzload()
405 sp->timecnt < 0 || sp->timecnt > TZ_MAX_TIMES || in tzload()
411 sp->timecnt * stored + /* ats */ in tzload()
412 sp->timecnt + /* types */ in tzload()
419 timecnt = 0; in tzload()
420 for (i = 0; i < sp->timecnt; ++i) { in tzload()
428 if (i && !timecnt && at != time_t_min) { in tzload()
435 sp->ats[timecnt++] = time_t_min; in tzload()
437 sp->ats[timecnt++] = at; in tzload()
441 timecnt = 0; in tzload()
442 for (i = 0; i < sp->timecnt; ++i) { in tzload()
447 sp->types[timecnt++] = typ; in tzload()
449 sp->timecnt = timecnt; in tzload()
534 while (i < ts.timecnt && in tzload()
536 sp->ats[sp->timecnt - 1]) in tzload()
538 while (i < ts.timecnt && in tzload()
539 sp->timecnt < TZ_MAX_TIMES) { in tzload()
540 sp->ats[sp->timecnt] = in tzload()
542 sp->types[sp->timecnt] = in tzload()
545 ++sp->timecnt; in tzload()
552 if (sp->timecnt > 1) { in tzload()
553 for (i = 1; i < sp->timecnt; ++i) in tzload()
559 for (i = sp->timecnt - 2; i >= 0; --i) in tzload()
560 if (typesequiv(sp, sp->types[sp->timecnt - 1], in tzload()
562 differ_by_repeat(sp->ats[sp->timecnt - 1], in tzload()
583 if (i < 0 && sp->timecnt > 0 && sp->ttis[sp->types[0]].tt_isdst) { in tzload()
992 register int timecnt; in tzparse() local
1016 timecnt = 0; in tzparse()
1037 if (TZ_MAX_TIMES - 2 < timecnt) in tzparse()
1040 sp->ats[timecnt] = janfirst; in tzparse()
1042 (&sp->ats[timecnt], starttime)) in tzparse()
1044 sp->types[timecnt++] = reversed; in tzparse()
1045 sp->ats[timecnt] = janfirst; in tzparse()
1047 (&sp->ats[timecnt], endtime)) in tzparse()
1049 sp->types[timecnt++] = !reversed; in tzparse()
1054 sp->timecnt = timecnt; in tzparse()
1055 if (!timecnt) in tzparse()
1071 for (i = 0; i < sp->timecnt; ++i) { in tzparse()
1080 for (i = 0; i < sp->timecnt; ++i) { in tzparse()
1097 for (i = 0; i < sp->timecnt; ++i) { in tzparse()
1146 sp->timecnt = 0; in tzparse()
1235 lclptr->timecnt = 0; in tzset()
1271 (sp->goahead && t > sp->ats[sp->timecnt - 1])) { in localsub()
1278 else seconds = t - sp->ats[sp->timecnt - 1]; in localsub()
1286 newt > sp->ats[sp->timecnt - 1]) in localsub()
1302 if (sp->timecnt == 0 || t < sp->ats[0]) { in localsub()
1306 register int hi = sp->timecnt; in localsub()
1906 for (i = sp->timecnt - 1; i >= 0; --i) in time1()