Lines Matching refs:match
14 struct match
16 struct match *next;
20 static int append(struct match **tail, const char *name, size_t len, int mark)
22 struct match *new = malloc(sizeof(struct match) + len + 2);
35 static int do_glob(char *buf, size_t pos, int type, char *pat, int flags, int (*errfunc)(const char *path, int err), struct match **tail)
94 * requested and we don't yet know if the match is a dir,
152 * fnmatch would match them with FNM_PERIOD rules in effect. */
180 static void freelist(struct match *head)
182 struct match *match, *next;
183 for (match=head->next; match; match=next) {
184 next = match->next;
185 free(match);
229 struct match head = { .next = NULL }, *tail = &head;
304 free(g->gl_pathv[g->gl_offs + i] - offsetof(struct match, name));