Lines Matching refs:pat
117 static bool match_pat(char *file, const char **pat)
121 if (!pat)
124 while (pat[i]) {
125 if (strglobmatch(file, pat[i]))
139 * If specified the pat is array of string patterns ended with NULL,
148 static int rm_rf_depth_pat(const char *path, int depth, const char **pat)
175 if (!match_pat(d->d_name, pat)) {
191 ret = depth ? rm_rf_depth_pat(namebuf, depth - 1, pat) : 0;
206 const char *pat[] = {
215 return rm_rf_depth_pat(kcore_dir_path, 0, pat);
220 const char *pat[] = {
228 return rm_rf_depth_pat(path, 0, pat);