Lines Matching +defs:target +defs:rule
101 struct rule {
123 bool r_todo; /* a rule to do (used in outzone) */
149 struct rule * z_rules;
152 struct rule z_untilrule;
159 extern int link(const char * target, const char * linkname);
172 symlink(char const *target, char const *linkname)
179 # define linkat(targetdir, target, linknamedir, linkname, flag) \
207 static zic_t rpytime(const struct rule * rp, zic_t wantedy);
208 static bool rulesub(struct rule * rp,
347 static struct rule * rules;
629 fprintf(stderr, _(" (rule from \"%s\", line %"PRIdMAX")"),
757 if a link's target has not been made yet, append a copy to the
810 /* Make this link unless its target has not been made yet. */
819 /* The link target has not been made yet; copy the link to the end. */
1410 relname(char const *target, char const *linkname)
1414 char const *f = target;
1420 size_t targetsize = strlen(target) + 1;
1425 memcpy(result + lenslash, target, targetsize);
1457 dolink(char const *target, char const *linkname, bool staysymlink)
1467 if (strcmp(target, "-") == 0) {
1479 if (linkat(AT_FDCWD, target, AT_FDCWD, outname, AT_SYMLINK_FOLLOW)
1495 && (same_parent_dirs(target, outname)
1496 || 0 <= itssymlink(target, &targetissym))) {
1497 if (link(target, outname) == 0) {
1517 progname, directory, target, directory, outname,
1523 bool absolute = *target == '/';
1524 char *linkalloc = absolute ? NULL : relname(target, linkname);
1525 char const *contents = absolute ? target : linkalloc;
1550 fp = fopen(target, "rb");
1554 progname, directory, target, e);
1561 close_file(fp, directory, target, NULL);
1591 ** Sort by rule name.
1597 struct rule const *r1 = cp1, *r2 = cp2;
1605 register struct rule * rp;
1617 warning(_("same rule name in multiple files"));
1619 warning(_("same rule name in multiple files"));
1661 ** Note, though, that if there's no rule,
1856 struct rule r;
1868 error(_("Invalid rule name \"%s\""), fields[RF_NAME]);
2153 rulesub(struct rule *rp, const char *loyearp, const char *hiyearp,
2919 stringrule(char *result, int resultlen, struct rule *const rp, zic_t save, const zic_t stdoff)
2987 rule_cmp(struct rule const *a, struct rule const *b)
3011 register struct rule * rp;
3012 register struct rule * stdrp;
3013 register struct rule * dstrp;
3018 struct rule stdr, dstr;
3021 struct rule *lastrp[2] = { NULL, NULL };
3035 struct rule **last;
3184 struct rule *rp = &zp->z_rules[j];
3191 ** Generate lots of data if a rule can't cover all future times.
3277 struct rule *rp = &zp->z_rules[j];
3293 struct rule *rp;
3312 ** Find the rule (of those to do, if any)
3317 struct rule *r = &zp->z_rules[j];
3477 struct rule xr;
3821 ** Given a rule, and a year, compute the date (in seconds since January 1,
3822 ** 1970, 00:00 LOCAL time) in that year that the rule refers to.
3826 rpytime(const struct rule *rp, zic_t wantedy)
3890 warning(_("rule goes past start/end of month; \