Lines Matching refs:wildspec
189 char *do_wild(__G__ wildspec)
191 ZCONST char *wildspec; /* only used first time on a given dir */
201 /* Even when we're just returning wildspec, we *always* do so in
203 * to the returned string, and wildspec may be a pointer to argv[].
208 if (!iswild(wildspec)) {
209 strncpy(G.matchname, wildspec, FILNAMSIZ);
216 /* break the wildspec into a directory part and a wildcard filename */
217 if ((G.wildname = (ZCONST char *)strrchr(wildspec, '/')) == NULL) {
221 G.wildname = wildspec;
224 G.dirnamelen = G.wildname - wildspec;
228 strncpy(G.matchname, wildspec, FILNAMSIZ);
232 strncpy(G.dirname, wildspec, G.dirnamelen);
263 /* return the raw wildspec in case that works (e.g., directory not
265 strncpy(G.matchname, wildspec, FILNAMSIZ);
270 /* last time through, might have failed opendir but returned raw wildspec */
272 G.notfirstcall = FALSE; /* nothing left--reset for new wildspec */
300 G.notfirstcall = FALSE; /* reset for new wildspec */