Lines Matching defs:wildspec
941 char *do_wild(__G__ wildspec)
943 ZCONST char *wildspec; /* only used first time on a given dir */
955 /* Even when we're just returning wildspec, we *always* do so in
957 * to the returned string, and wildspec may be a pointer to argv[].
962 if (!iswild(wildspec)) {
963 strncpy(G.os2.matchname, wildspec, FILNAMSIZ);
970 /* break the wildspec into a directory part and a wildcard filename */
971 if ((G.os2.wildname = (ZCONST char *)strrchr(wildspec, '/')) == NULL &&
972 (G.os2.wildname = (ZCONST char *)strrchr(wildspec, ':')) == NULL) {
976 G.os2.wildname = wildspec;
979 G.os2.dirnamelen = G.os2.wildname - wildspec;
983 strncpy(G.os2.matchname, wildspec, FILNAMSIZ);
987 strncpy(G.os2.dirname, wildspec, G.os2.dirnamelen);
1029 /* return the raw wildspec in case that works (e.g., directory not
1031 strncpy(G.os2.matchname, wildspec, FILNAMSIZ);
1036 /* last time through, might have failed opendir but returned raw wildspec */
1071 G.os2.notfirstcall = FALSE; /* reset for new wildspec */