Lines Matching defs:wildspec
56 char *do_wild(__G__ wildspec)
58 ZCONST char *wildspec; /* only used first time on a given dir */
66 /* Even when we're just returning wildspec, we *always* do so in
68 * to the returned string, and wildspec may be a pointer to argv[].
73 if (!iswild(wildspec)) {
74 strncpy(matchname, wildspec, FILNAMSIZ);
81 /* break the wildspec into a directory part and a wildcard filename */
82 if ((wildname = strrchr(wildspec, '/')) == NULL) {
86 wildname = wildspec;
89 dirnamelen = wildname - wildspec;
93 strcpy(matchname, wildspec);
96 strncpy(dirname, wildspec, dirnamelen);
131 /* return the raw wildspec in case that works (e.g., directory not
133 strncpy(matchname, wildspec, FILNAMSIZ);
138 /* last time through, might have failed opendir but returned raw wildspec */
140 notfirstcall = FALSE; /* nothing left to try--reset for new wildspec */
168 notfirstcall = FALSE; /* reset for new wildspec */