Lines Matching defs:wildspec
61 char *do_wild(__G__ wildspec)
63 ZCONST char *wildspec; /* only used first time on a given dir */
71 /* Even when we're just returning wildspec, we *always* do so in
73 * to the returned string, and wildspec may be a pointer to argv[].
78 /* break the wildspec into a directory part and a wildcard filename */
79 if ((wildname = (ZCONST char *)strrchr(wildspec, '.')) ==
85 wildname = wildspec;
88 dirnamelen = wildname - wildspec;
92 strncpy(matchname, wildspec, FILNAMSIZ);
96 strncpy(dirname, wildspec, dirnamelen);
119 /* return the raw wildspec in case that works (e.g., directory not
121 strncpy(matchname, wildspec, FILNAMSIZ);
126 /* last time through, might have failed opendir but returned raw wildspec */
128 notfirstcall = FALSE; /* nothing left to try--reset for new wildspec */
150 notfirstcall = FALSE; /* reset for new wildspec */