Searched refs:pat (Results 1 – 2 of 2) sorted by relevance
/lib/ |
D | glob.c | 40 bool __pure glob_match(char const *pat, char const *str) in glob_match() argument 57 unsigned char d = *pat++; in glob_match() 65 if (*pat == '\0') /* Optimize trailing * case */ in glob_match() 67 back_pat = pat; in glob_match() 71 bool match = false, inverted = (*pat == '!'); in glob_match() 72 char const *class = pat + inverted; in glob_match() 100 pat = class; in glob_match() 104 d = *pat++; in glob_match() 117 pat = back_pat; in glob_match()
|
D | globtest.c | 15 char const *pat, *str; member 19 static bool __pure __init test(char const *pat, char const *str, bool expected) in test() argument 21 bool match = glob_match(pat, str); in test() 39 printk(message, pat, str, mismatch + 3*match); in test() 145 char const *pat = p; in glob_init() local 148 successes += test(pat, p, expected); in glob_init()
|