Lines Matching defs:wildspec
162 char *do_wild(__G__ wildspec)
164 ZCONST char *wildspec; /* only used first time on a given dir */
172 /* Even when we're just returning wildspec, we *always* do so in
174 * to the returned string, and wildspec may be a pointer to argv[].
179 if (!iswild(wildspec)) {
180 strcpy(matchname, wildspec);
186 /* break the wildspec into a directory part and a wildcard filename */
187 if ((wildname = (ZCONST char *)strrchr(wildspec, '/')) ==
193 wildname = wildspec;
196 dirnamelen = wildname - wildspec;
200 strncpy(matchname, wildspec, FILNAMSIZ);
204 strncpy(dirname, wildspec, dirnamelen);
228 /* return the raw wildspec in case that works (e.g., directory not
230 strncpy(matchname, wildspec, FILNAMSIZ);
235 /* last time through, might have failed opendir but returned raw wildspec */
237 notfirstcall = FALSE; /* nothing left to try--reset for new wildspec */
265 notfirstcall = FALSE; /* reset for new wildspec */