Lines Matching defs:wildspec
116 char *do_wild(__G__ wildspec)
118 ZCONST char *wildspec; /* only used first time on a given dir */
128 /* Even when we're just returning wildspec, we *always* do so in
130 * to the returned string, and wildspec may be a pointer to argv[].
135 if (!iswild(wildspec)) {
136 strncpy(G.matchname, wildspec, FILNAMSIZ);
143 /* break the wildspec into a directory part and a wildcard filename */
144 if ((G.wildname = (ZCONST char *)strrchr(wildspec, '/')) == NULL) {
148 G.wildname = wildspec;
151 G.dirnamelen = G.wildname - wildspec;
155 strncpy(G.matchname, wildspec, FILNAMSIZ);
159 strncpy(G.dirname, wildspec, G.dirnamelen);
190 /* return the raw wildspec in case that works (e.g., directory not
192 strncpy(G.matchname, wildspec, FILNAMSIZ);
197 /* last time through, might have failed opendir but returned raw wildspec */
199 G.notfirstcall = FALSE; /* nothing left--reset for new wildspec */
227 G.notfirstcall = FALSE; /* reset for new wildspec */