Lines Matching refs:pat
10644 bool glob_match(const char *str, const char *pat)
10646 while (*str && *pat && *pat != '*') {
10647 if (*pat == '?') { /* Matches any single character */
10649 pat++;
10652 if (*str != *pat)
10655 pat++;
10658 if (*pat == '*') {
10659 while (*pat == '*')
10660 pat++;
10661 if (!*pat) /* Tail wild card matches all */
10664 if (glob_match(str++, pat))
10667 return !*str && !*pat;