Lines Matching defs:wildspec
231 char *do_wild(__G__ wildspec)
233 ZCONST char *wildspec; /* only used first time on a given dir */
242 /* Even when we're just returning wildspec, we *always* do so in
244 * to the returned string, and wildspec may be a pointer to argv[].
251 /* break the wildspec into a directory part and a wildcard filename */
253 ws = (char *) iswild(wildspec);
257 strncpy(matchname, wildspec, FILNAMSIZ);
262 us = LastDir(wildspec);
264 if(us == wildspec)
270 wildname = wildspec;
273 dirnamelen = wildname - wildspec;
277 strncpy(matchname, wildspec, FILNAMSIZ);
281 strncpy(dirname, wildspec, dirnamelen);
302 /* return the raw wildspec in case that works (e.g., directory not
304 strncpy(matchname, wildspec, FILNAMSIZ);
309 /* last time through, might have failed opendir but returned raw wildspec */
311 notfirstcall = FALSE; /* nothing left to try--reset for new wildspec */
334 notfirstcall = FALSE; /* reset for new wildspec */