Home | History | Annotate | Download | only in time

Lines Matching defs:zp

206 static void	outzone(const struct zone * zp, ptrdiff_t ntzones);
1635 register struct zone * zp;
1666 zp = &zones[i];
1667 zp->z_rules = NULL;
1668 zp->z_nrules = 0;
1676 zp = &zones[i];
1677 if (strcmp(zp->z_rule, rp->r_name) != 0)
1679 zp->z_rules = rp;
1680 zp->z_nrules = out - base;
1684 zp = &zones[i];
1685 if (zp->z_nrules == 0) {
1689 eat(zp->z_filenum, zp->z_linenum);
1690 zp->z_save = getsave(zp->z_rule, &zp->z_isdst);
1695 if (zp->z_format_specifier == 's')
2869 doabbr(char *abbr, size_t abbrlen, struct zone const *zp, const char *letters,
2875 char const *format = zp->z_format;
2880 if (zp->z_format_specifier == 'z')
2881 letters = abbroffset(letterbuf, zp->z_stdoff + save);
3041 register const struct zone * zp;
3064 zp = zpfirst + zonecount - 1;
3065 for (i = 0; i < zp->z_nrules; ++i) {
3068 rp = &zp->z_rules[i];
3078 dstcmp = zp->z_nrules ? rule_cmp(dstrp, stdrp) : zp->z_isdst ? 1 : -1;
3079 stdzp = dstzp = zp;
3087 zic_t save = dstrp ? dstrp->r_save : zp->z_save;
3094 zstr[0].z_stdoff = zp->z_stdoff + 2 * save;
3098 zstr[1].z_format = zp->z_format;
3099 zstr[1].z_format_specifier = zp->z_format_specifier;
3211 struct zone const *zp = &zpfirst[i];
3213 updateminmax(zp->z_untilrule.r_loyear);
3214 for (j = 0; j < zp->z_nrules; ++j) {
3215 struct rule *rp = &zp->z_rules[j];
3269 struct zone const *zp = &zpfirst[i];
3270 bool usestart = i > 0 && (zp - 1)->z_untiltime > min_time;
3272 zic_t stdoff = zp->z_stdoff;
3274 if (useuntil && zp->z_untiltime <= min_time)
3276 eat(zp->z_filenum, zp->z_linenum);
3278 if (zp->z_nrules == 0) {
3280 save = zp->z_save;
3282 zp, NULL, zp->z_isdst, save, false);
3283 type = addtype(oadd(zp->z_stdoff, save),
3284 startbuf, zp->z_isdst, startttisstd,
3298 if (useuntil && year > zp->z_untilrule.r_hiyear)
3305 for (j = 0; j < zp->z_nrules; ++j) {
3308 struct rule *rp = &zp->z_rules[j];
3309 eats(zp->z_filenum, zp->z_linenum,
3334 untiltime = zp->z_untiltime;
3335 if (!zp->z_untilrule.r_todisut)
3338 if (!zp->z_untilrule.r_todisstd)
3347 for (j = 0; j < zp->z_nrules; ++j) {
3348 struct rule *r = &zp->z_rules[j];
3351 eats(zp->z_filenum, zp->z_linenum,
3367 eats(zp->z_filenum, zp->z_linenum,
3370 r = &zp->z_rules[k];
3371 eats(zp->z_filenum, zp->z_linenum,
3378 rp = &zp->z_rules[k];
3382 && (oadd(zp->z_stdoff, rp->r_save)
3385 zp, rp->r_abbrvar,
3395 startoff = oadd(zp->z_stdoff,
3399 zp,
3407 && startoff == oadd(zp->z_stdoff,
3411 zp,
3418 eats(zp->z_filenum, zp->z_linenum,
3420 doabbr(ab, max_abbr_len + 1, zp, rp->r_abbrvar,
3422 offset = oadd(zp->z_stdoff, rp->r_save);
3437 bool isdst = startoff != zp->z_stdoff;
3438 if (*startbuf == '\0' && zp->z_format)
3440 zp, disable_percent_s,
3442 eat(zp->z_filenum, zp->z_linenum);
3458 startttisstd = zp->z_untilrule.r_todisstd;
3459 startttisut = zp->z_untilrule.r_todisut;
3460 starttime = zp->z_untiltime;