Lines Matching defs:zp

111 static void	doabbr(char *abbr, size_t size, struct zone const *zp,
132 static void outzone(const struct zone *zp, int ntzones);
144 const struct zone *zp, int ntzones);
683 struct zone *zp;
716 zp = &zones[i];
717 zp->z_rules = NULL;
718 zp->z_nrules = 0;
726 zp = &zones[i];
727 if (strcmp(zp->z_rule, rp->r_name) != 0)
729 zp->z_rules = rp;
730 zp->z_nrules = out - base;
734 zp = &zones[i];
735 if (zp->z_nrules == 0) {
739 eat(zp->z_filename, zp->z_linenum);
740 zp->z_stdoff = gethms(zp->z_rule, "unruly zone",
746 if (zp->z_format_specifier == 's')
1689 doabbr(char *abbr, size_t size, struct zone const *zp, const char *letters,
1694 char const *format = zp->z_format;
1699 if (zp->z_format_specifier == 'z')
1700 letters = abbroffset(letterbuf, -zp->z_gmtoff);
1828 const struct zone *zp;
1835 zp = zpfirst + zonecount - 1;
1837 for (i = 0; i < zp->z_nrules; ++i) {
1838 rp = &zp->z_rules[i];
1858 for (i = 0; i < zp->z_nrules; ++i) {
1859 rp = &zp->z_rules[i];
1875 if (stdrp == NULL && (zp->z_nrules != 0 || zp->z_stdoff != 0))
1878 doabbr(result, size, zp, abbrvar, FALSE, TRUE);
1880 if (stringoffset(ep, size - (ep - result), -zp->z_gmtoff) != 0) {
1887 doabbr(ep, size - (ep - result), zp, dstrp->r_abbrvar, TRUE, TRUE);
1891 -(zp->z_gmtoff + dstrp->r_stdoff)) != 0) {
1897 if (stringrule(result, size, dstrp, dstrp->r_stdoff, zp->z_gmtoff) != 0) {
1902 if (stringrule(result, size, stdrp, dstrp->r_stdoff, zp->z_gmtoff) != 0) {
1911 const struct zone *zp;
1943 zp = &zpfirst[i];
1945 updateminmax(zp->z_untilrule.r_loyear);
1946 for (j = 0; j < zp->z_nrules; ++j) {
1947 rp = &zp->z_rules[j];
2002 zp = &zpfirst[i];
2003 usestart = i > 0 && (zp - 1)->z_untiltime > min_time;
2005 if (useuntil && zp->z_untiltime <= min_time)
2007 gmtoff = zp->z_gmtoff;
2008 eat(zp->z_filename, zp->z_linenum);
2010 startoff = zp->z_gmtoff;
2011 if (zp->z_nrules == 0) {
2012 stdoff = zp->z_stdoff;
2013 doabbr(startbuf, max_abbr_len + 1, zp, NULL,
2015 type = addtype(oadd(zp->z_gmtoff, stdoff),
2024 if (useuntil && year > zp->z_untilrule.r_hiyear)
2030 for (j = 0; j < zp->z_nrules; ++j) {
2031 rp = &zp->z_rules[j];
2032 eats(zp->z_filename, zp->z_linenum,
2050 untiltime = zp->z_untiltime;
2051 if (!zp->z_untilrule.r_todisgmt)
2054 if (!zp->z_untilrule.r_todisstd)
2063 for (j = 0; j < zp->z_nrules; ++j) {
2064 rp = &zp->z_rules[j];
2067 eats(zp->z_filename, zp->z_linenum,
2084 rp = &zp->z_rules[k];
2093 startoff = oadd(zp->z_gmtoff,
2097 zp,
2104 startoff == oadd(zp->z_gmtoff,
2108 zp,
2114 eats(zp->z_filename, zp->z_linenum,
2116 doabbr(ab, max_abbr_len + 1, zp,
2118 offset = oadd(zp->z_gmtoff, rp->r_stdoff);
2126 zp->z_format != NULL &&
2127 strchr(zp->z_format, '%') == NULL &&
2128 strchr(zp->z_format, '/') == NULL)
2129 strlcpy(startbuf, zp->z_format, max_abbr_len + 1);
2130 eat(zp->z_filename, zp->z_linenum);
2136 startoff != zp->z_gmtoff,
2143 startttisstd = zp->z_untilrule.r_todisstd;
2144 startttisgmt = zp->z_untilrule.r_todisgmt;
2145 starttime = zp->z_untiltime;