Lines Matching defs:wildspec
96 char *do_wild(__G__ wildspec)
98 ZCONST char *wildspec; /* only used first time on a given dir */
109 /* Even when we're just returning wildspec, we *always* do so in
111 * to the returned string, and wildspec may be a pointer to argv[].
117 if (!ispattern(wildspec) ||
118 (lok = Lock((char *)wildspec, ACCESS_READ))) {
121 strncpy(G.matchname, wildspec, FILNAMSIZ);
126 /* break the wildspec into a directory part and a wildcard filename */
127 if ((G.wildname = (ZCONST char *)strrchr(wildspec, '/')) == NULL &&
128 (G.wildname = (ZCONST char *)strrchr(wildspec, ':')) == NULL) {
131 G.wildname = wildspec;
134 G.dirnamelen = G.wildname - wildspec;
138 strncpy(G.matchname, wildspec, FILNAMSIZ);
142 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 */
187 G.notfirstcall = FALSE; /* reset for new wildspec */