Lines Matching defs:rule
47 struct rule {
71 int r_todo; /* a rule to do (used in outzone) */
95 struct rule *z_rules;
98 struct rule z_untilrule;
136 static zic_t rpytime(const struct rule *rp, int wantedy);
137 static void rulesub(struct rule *rp, const char *loyearp, const char *hiyearp,
141 static int stringrule(char *result, size_t size, const struct rule *rp,
256 static struct rule *rules;
427 fprintf(stderr, " (rule from \"%s\", line %d)",
670 ** Sort by rule name.
676 return strcmp(((const struct rule *) cp1)->r_name,
677 ((const struct rule *) cp2)->r_name);
684 struct rule *rp;
697 warning("same rule name in multiple files");
699 warning("same rule name in multiple files");
743 ** Note, though, that if there's no rule,
881 static struct rule r;
888 error("nameless rule");
1171 rulesub(struct rule * const rp, const char * const loyearp,
1394 ++fromi; /* handled by default rule */
1770 stringrule(char *result, size_t size, const struct rule *rp, long dstoff, long gmtoff)
1829 struct rule *rp, *stdrp, *dstrp;
1856 ** Let's find the latest rule.
1870 ** do not try to apply a rule to the zone.
1912 struct rule *rp;
1957 ** Generate lots of data if a rule can't cover all future times.
2059 ** Find the rule (of those to do, if any)
2405 ** Given a rule, and a year, compute the date - in seconds since January 1,
2406 ** 1970, 00:00 LOCAL time - in that year that the rule refers to.
2409 rpytime(const struct rule *rp, int wantedy)