Lines Matching defs:wildspec
88 char *do_wild(__G__ wildspec)
90 ZCONST char *wildspec; /* only used first time on a given dir */
98 /* Even when we're just returning wildspec, we *always* do so in
100 * to the returned string, and wildspec may be a pointer to argv[].
105 if (!iswild(wildspec)) {
106 strncpy(matchname, wildspec, FILNAMSIZ);
113 /* break the wildspec into a directory part and a wildcard filename */
114 if ((wildname = strrchr(wildspec, '/')) == (ZCONST char *)NULL) {
118 wildname = wildspec;
121 dirnamelen = wildname - wildspec;
125 strncpy(matchname, wildspec, FILNAMSIZ);
129 strncpy(dirname, wildspec, dirnamelen);
157 /* return the raw wildspec in case that works (e.g., directory not
159 strncpy(matchname, wildspec, FILNAMSIZ);
164 /* last time through, might have failed opendir but returned raw wildspec */
166 notfirstcall = FALSE; /* nothing left to try--reset for new wildspec */
194 notfirstcall = FALSE; /* reset for new wildspec */