Lines Matching defs:subst
27 __FBSDID("$FreeBSD: stable/11/contrib/libarchive/tar/subst.c 307138 2016-10-12 10:28:22Z mm $");
61 struct substitution *subst;
63 bsdtar->substitution = subst = malloc(sizeof(*subst));
64 if (subst == NULL)
66 subst->first_rule = subst->last_rule = NULL;
73 struct substitution *subst;
78 if ((subst = bsdtar->substitution) == NULL) {
80 subst = bsdtar->substitution;
89 if (subst->last_rule == NULL)
90 subst->first_rule = rule;
92 subst->last_rule->next = rule;
93 subst->last_rule = rule;
217 struct substitution *subst;
222 if ((subst = bsdtar->substitution) == NULL)
228 for (rule = subst->first_rule; rule != NULL; rule = rule->next) {
315 struct substitution *subst;
317 if ((subst = bsdtar->substitution) == NULL)
320 while ((rule = subst->first_rule) != NULL) {
321 subst->first_rule = rule->next;
325 free(subst);