Lines Matching defs:wildspec
1489 char *do_wild(__G__ wildspec)
1491 ZCONST char *wildspec; /* only used first time on a given dir */
1502 /* Even when we're just returning wildspec, we *always* do so in
1504 * to the returned string, and wildspec may be a pointer to argv[].
1509 if (!iswild(wildspec)) {
1510 strncpy(G.matchname, wildspec, FILNAMSIZ);
1517 /* break the wildspec into a directory part and a wildcard filename */
1518 if ((G.wildname = MBSRCHR(wildspec, '/')) == (ZCONST char *)NULL &&
1519 (G.wildname = MBSRCHR(wildspec, ':')) == (ZCONST char *)NULL) {
1523 G.wildname = wildspec;
1526 G.dirnamelen = G.wildname - wildspec;
1530 strncpy(G.matchname, wildspec, FILNAMSIZ);
1534 strncpy(G.dirname, wildspec, G.dirnamelen);
1570 /* return the raw wildspec in case that works (e.g., directory not
1572 strncpy(G.matchname, wildspec, FILNAMSIZ);
1577 /* last time through, might have failed opendir but returned raw wildspec */
1579 G.notfirstcall = FALSE; /* reset for new wildspec */
1612 G.notfirstcall = FALSE; /* reset for new wildspec */