Home | History | Annotate | Download | only in openbsd-compat

Lines Matching refs:pat

900 match(Char *name, Char *pat, Char *patend, int recur)
908 while (pat < patend) {
909 c = *pat++;
912 while (pat < patend && (*pat & M_MASK) == M_ALL)
913 pat++; /* eat consecutive '*' */
914 if (pat == patend)
917 if (match(name, pat, patend, recur))
929 if ((negate_range = ((*pat & M_MASK) == M_NOT)) != EOS)
930 ++pat;
931 while (((c = *pat++) & M_MASK) != M_END) {
933 Char idx = *pat & M_MASK;
937 ++pat;
939 if ((*pat & M_MASK) == M_RNG) {
940 if (c <= k && k <= pat[1])
942 pat += 2;