Lines Matching refs:zp

139 static void	outzone(const struct zone * zp, int ntzones);
152 const struct zone * zp, int ntzones);
728 register struct zone * zp;
763 zp = &zones[i];
764 zp->z_rules = NULL;
765 zp->z_nrules = 0;
773 zp = &zones[i];
774 if (strcmp(zp->z_rule, rp->r_name) != 0)
776 zp->z_rules = rp;
777 zp->z_nrules = out - base;
781 zp = &zones[i];
782 if (zp->z_nrules == 0) {
786 eat(zp->z_filename, zp->z_linenum);
787 zp->z_stdoff = gethms(zp->z_rule, _("unruly zone"),
793 if (strchr(zp->z_format, '%') != 0)
1894 register const struct zone * zp;
1902 zp = zpfirst + zonecount - 1;
1904 for (i = 0; i < zp->z_nrules; ++i) {
1905 rp = &zp->z_rules[i];
1925 for (i = 0; i < zp->z_nrules; ++i) {
1926 rp = &zp->z_rules[i];
1942 if (stdrp == NULL && (zp->z_nrules != 0 || zp->z_stdoff != 0))
1945 doabbr(result, zp->z_format, abbrvar, FALSE, TRUE);
1946 if (stringoffset(end(result), -zp->z_gmtoff) != 0) {
1952 doabbr(end(result), zp->z_format, dstrp->r_abbrvar, TRUE, TRUE);
1955 -(zp->z_gmtoff + dstrp->r_stdoff)) != 0) {
1960 if (stringrule(result, dstrp, dstrp->r_stdoff, zp->z_gmtoff) != 0) {
1965 if (stringrule(result, stdrp, dstrp->r_stdoff, zp->z_gmtoff) != 0) {
1976 register const struct zone * zp;
2019 zp = &zpfirst[i];
2021 updateminmax(zp->z_untilrule.r_loyear);
2022 for (j = 0; j < zp->z_nrules; ++j) {
2023 rp = &zp->z_rules[j];
2064 zp = &zpfirst[i];
2065 usestart = i > 0 && (zp - 1)->z_untiltime > min_time;
2067 if (useuntil && zp->z_untiltime <= min_time)
2069 gmtoff = zp->z_gmtoff;
2070 eat(zp->z_filename, zp->z_linenum);
2072 startoff = zp->z_gmtoff;
2073 if (zp->z_nrules == 0) {
2074 stdoff = zp->z_stdoff;
2075 doabbr(startbuf, zp->z_format,
2077 type = addtype(oadd(zp->z_gmtoff, stdoff),
2086 if (useuntil && year > zp->z_untilrule.r_hiyear)
2092 for (j = 0; j < zp->z_nrules; ++j) {
2093 rp = &zp->z_rules[j];
2094 eats(zp->z_filename, zp->z_linenum,
2114 untiltime = zp->z_untiltime;
2115 if (!zp->z_untilrule.r_todisgmt)
2118 if (!zp->z_untilrule.r_todisstd)
2127 for (j = 0; j < zp->z_nrules; ++j) {
2128 rp = &zp->z_rules[j];
2131 eats(zp->z_filename, zp->z_linenum,
2148 rp = &zp->z_rules[k];
2157 startoff = oadd(zp->z_gmtoff,
2159 doabbr(startbuf, zp->z_format,
2166 startoff == oadd(zp->z_gmtoff,
2169 zp->z_format,
2176 eats(zp->z_filename, zp->z_linenum,
2178 doabbr(ab, zp->z_format, rp->r_abbrvar,
2180 offset = oadd(zp->z_gmtoff, rp->r_stdoff);
2188 zp->z_format != NULL &&
2189 strchr(zp->z_format, '%') == NULL &&
2190 strchr(zp->z_format, '/') == NULL)
2191 (void) strcpy(startbuf, zp->z_format);
2192 eat(zp->z_filename, zp->z_linenum);
2197 startoff != zp->z_gmtoff,
2205 startttisstd = zp->z_untilrule.r_todisstd;
2206 startttisgmt = zp->z_untilrule.r_todisgmt;
2207 starttime = zp->z_untiltime;