Lines Matching defs:wildspec
85 char *do_wild(__G__ wildspec)
87 ZCONST char *wildspec; /* only used first time on a given dir */
97 /* Even when we're just returning wildspec, we *always* do so in
99 * to the returned string, and wildspec may be a pointer to argv[].
104 if (!iswild(wildspec)) {
105 strncpy(G.matchname, wildspec, FILNAMSIZ);
112 /* break the wildspec into a directory part and a wildcard filename */
113 if ((G.wildname = (ZCONST char *)strrchr(wildspec, '/')) == NULL) {
117 G.wildname = wildspec;
120 G.dirnamelen = G.wildname - wildspec;
124 strncpy(G.matchname, wildspec, FILNAMSIZ);
128 strncpy(G.dirname, wildspec, G.dirnamelen);
159 /* return the raw wildspec in case that works (e.g., directory not
161 strncpy(G.matchname, wildspec, FILNAMSIZ);
166 /* last time through, might have failed opendir but returned raw wildspec */
168 G.notfirstcall = FALSE; /* nothing left--reset for new wildspec */
196 G.notfirstcall = FALSE; /* reset for new wildspec */