Lines Matching defs:wildspec
49 char *do_wild(__G__ wildspec)
51 ZCONST char *wildspec; /* only used first time on a given dir */
59 /* Even when we're just returning wildspec, we *always* do so in
61 * to the returned string, and wildspec may be a pointer to argv[].
66 if (!iswild(wildspec)) {
67 strncpy(matchname, wildspec, FILNAMSIZ);
74 /* break the wildspec into a directory part and a wildcard filename */
75 if ((wildname = strrchr(wildspec, '/')) == (ZCONST char *)NULL) {
79 wildname = wildspec;
82 dirnamelen = wildname - wildspec;
86 strncpy(matchname, wildspec, FILNAMSIZ);
90 strncpy(dirname, wildspec, dirnamelen);
118 /* return the raw wildspec in case that works (e.g., directory not
120 strncpy(matchname, wildspec, FILNAMSIZ);
125 /* last time through, might have failed opendir but returned raw wildspec */
127 notfirstcall = FALSE; /* nothing left to try--reset for new wildspec */
155 notfirstcall = FALSE; /* reset for new wildspec */