Lines Matching refs:fileName
68 typedef int (*action_fp)(const char *fileName, struct stat *statbuf, void *);
77 #define ACTF(name) static int func_##name(const char *fileName, struct stat *statbuf, action_##name* ap)
137 static int exec_actions(action ***appp, const char *fileName, struct stat *statbuf)
169 rc |= TRUE ^ ap->f(fileName, statbuf, ap);
183 const char *tmp = bb_basename(fileName);
184 if (tmp != fileName && !*tmp) { /* "foo/bar/". Oh no... go back to 'b' */
186 while (tmp != fileName && *--tmp != '/')
196 return fnmatch(ap->pattern, fileName, 0) == 0;
203 if (regexec(&ap->compiled_pattern, fileName, 1, &match, 0 /*eflags*/))
207 if (fileName[match.rm_eo])
275 argv[i] = subst(ap->exec_argv[i], ap->subst_count[i], fileName);
303 printf("%s%c", fileName, '\0');
309 puts(fileName);
315 return exec_actions(ap->subexpr, fileName, statbuf);
345 rc = rmdir(fileName);
347 rc = unlink(fileName);
350 bb_perror_msg("%s", fileName);
361 rc = getfilecon(fileName, &con);
363 rc = lgetfilecon(fileName, &con);
374 static int fileAction(const char *fileName, struct stat *statbuf, void *userData, int depth)
393 i = exec_actions(actions, fileName, statbuf);
396 puts(fileName);