Lines Matching defs:wildspec
117 char *do_wild(__G__ wildspec)
119 ZCONST char *wildspec; /* only used first time on a given dir */
127 /* Even when we're just returning wildspec, we *always* do so in
129 * to the returned string, and wildspec may be a pointer to argv[].
134 if (!iswild(wildspec)) {
135 strncpy(matchname, wildspec, FILNAMSIZ);
142 /* break the wildspec into a directory part and a wildcard filename */
143 if ((wildname = strrchr(wildspec, '/')) == (ZCONST char *)NULL) {
147 wildname = wildspec;
150 dirnamelen = wildname - wildspec;
154 strncpy(matchname, wildspec, FILNAMSIZ);
158 strncpy(dirname, wildspec, dirnamelen);
186 /* return the raw wildspec in case that works (e.g., directory not
188 strncpy(matchname, wildspec, FILNAMSIZ);
193 /* last time through, might have failed opendir but returned raw wildspec */
195 notfirstcall = FALSE; /* nothing left to try--reset for new wildspec */
223 notfirstcall = FALSE; /* reset for new wildspec */