Lines Matching refs:pat
11100 bool glob_match(const char *str, const char *pat)
11102 while (*str && *pat && *pat != '*') {
11103 if (*pat == '?') { /* Matches any single character */
11105 pat++;
11108 if (*str != *pat)
11111 pat++;
11114 if (*pat == '*') {
11115 while (*pat == '*')
11116 pat++;
11117 if (!*pat) /* Tail wild card matches all */
11120 if (glob_match(str++, pat))
11123 return !*str && !*pat;