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