Lines Matching defs:wildspec
276 char *do_wild(__G__ wildspec)
278 ZCONST char *wildspec; /* only used first time on a given dir */
287 /* Even when we're just returning wildspec, we *always* do so in
289 * to the returned string, and wildspec may be a pointer to argv[].
294 if (!iswild(wildspec)) {
295 strncpy(matchname, wildspec, FILNAMSIZ);
302 /* break the wildspec into a directory part and a wildcard filename */
303 if ((wildname = strrchr(wildspec, '/')) == (ZCONST char *)NULL &&
304 (wildname = strrchr(wildspec, ':')) == (ZCONST char *)NULL) {
308 wildname = wildspec;
311 dirnamelen = (int)(wildname - wildspec);
315 strncpy(matchname, wildspec, FILNAMSIZ);
321 strncpy(dirname, wildspec, dirnamelen);
362 /* return the raw wildspec in case that works (e.g., directory not
364 strncpy(matchname, wildspec, FILNAMSIZ);
369 /* last time through, might have failed opendir but returned raw wildspec */
371 notfirstcall = FALSE; /* nothing left to try--reset for new wildspec */
404 notfirstcall = FALSE; /* reset for new wildspec */