Lines Matching refs:zp

125 static void	outzone(const struct zone *zp, int ntzones);
743 register struct zone *zp; in associate() local
778 zp = &zones[i]; in associate()
779 zp->z_rules = NULL; in associate()
780 zp->z_nrules = 0; in associate()
788 zp = &zones[i]; in associate()
789 if (strcmp(zp->z_rule, rp->r_name) != 0) in associate()
791 zp->z_rules = rp; in associate()
792 zp->z_nrules = out - base; in associate()
796 zp = &zones[i]; in associate()
797 if (zp->z_nrules == 0) { in associate()
801 eat(zp->z_filename, zp->z_linenum); in associate()
802 zp->z_stdoff = gethms(zp->z_rule, in associate()
808 if (strchr(zp->z_format, '%') != 0) in associate()
1635 register const struct zone *zp; local
1668 zp = &zpfirst[i];
1669 usestart = i > 0 && (zp - 1)->z_untiltime > min_time;
1671 if (useuntil && zp->z_untiltime <= min_time)
1673 gmtoff = zp->z_gmtoff;
1674 eat(zp->z_filename, zp->z_linenum);
1676 startoff = zp->z_gmtoff;
1677 if (zp->z_nrules == 0) {
1678 stdoff = zp->z_stdoff;
1679 doabbr(startbuf, zp->z_format,
1681 type = addtype(oadd(zp->z_gmtoff, stdoff),
1691 if (useuntil && year > zp->z_untilrule.r_hiyear)
1697 for (j = 0; j < zp->z_nrules; ++j) {
1698 rp = &zp->z_rules[j];
1699 eats(zp->z_filename, zp->z_linenum,
1719 untiltime = zp->z_untiltime;
1720 if (!zp->z_untilrule.r_todisgmt)
1723 if (!zp->z_untilrule.r_todisstd)
1732 for (j = 0; j < zp->z_nrules; ++j) {
1733 rp = &zp->z_rules[j];
1736 eats(zp->z_filename, zp->z_linenum,
1753 rp = &zp->z_rules[k];
1762 startoff = oadd(zp->z_gmtoff,
1764 doabbr(startbuf, zp->z_format,
1770 startoff == oadd(zp->z_gmtoff,
1772 doabbr(startbuf, zp->z_format,
1777 eats(zp->z_filename, zp->z_linenum,
1779 doabbr(buf, zp->z_format, rp->r_abbrvar,
1781 offset = oadd(zp->z_gmtoff, rp->r_stdoff);
1789 zp->z_format != NULL &&
1790 strchr(zp->z_format, '%') == NULL &&
1791 strchr(zp->z_format, '/') == NULL)
1792 (void) strcpy(startbuf, zp->z_format);
1793 eat(zp->z_filename, zp->z_linenum);
1799 startoff != zp->z_gmtoff,
1807 startttisstd = zp->z_untilrule.r_todisstd;
1808 startttisgmt = zp->z_untilrule.r_todisgmt;
1809 starttime = zp->z_untiltime;