Lines Matching refs:fileName
430 typedef int (*action_fp)(const char *fileName, const struct stat *statbuf, void *) FAST_FUNC;
441 static int FAST_FUNC func_##name(const char *fileName UNUSED_PARAM, \
513 static int exec_actions(action ***appp, const char *fileName, const struct stat *statbuf) in exec_actions() argument
545 rc |= TRUE ^ ap->f(fileName, statbuf, ap); in exec_actions()
577 const char *tmp = bb_basename(fileName); in ACTF()
590 while (tmp != fileName && tmp[-1] == '/') in ACTF()
592 if (tmp == fileName) { /* entire fileName is "//.."? */ in ACTF()
605 while (tmp != fileName && tmp[-1] != '/') in ACTF()
630 return fnmatch(ap->pattern, fileName, (ap->ipath ? FNM_CASEFOLD : 0)) == 0; in ACTF()
633 fileName = strcpy_upcase(alloca(strlen(fileName) + 1), fileName); in ACTF()
634 return fnmatch(ap->pattern, fileName, 0) == 0; in ACTF()
642 if (regexec(&ap->compiled_pattern, fileName, 1, &match, 0 /*eflags*/)) in ACTF()
646 if (fileName[match.rm_eo]) in ACTF()
660 return access(fileName, X_OK) == 0; in ACTF()
753 static int do_exec(action_exec *ap, const char *fileName) in do_exec() argument
792 *pp++ = xmalloc_substitute_string(arg, ap->subst_count[i], "{}", fileName); in do_exec()
821 ap->filelist[ap->filelist_idx++] = xstrdup(fileName); in ACTF()
822 ap->file_len += strlen(fileName) + sizeof(char*) + 1; in ACTF()
830 return do_exec(ap, fileName); in ACTF()
872 printf("%s%c", fileName, '\0'); in ACTF()
878 puts(fileName); in ACTF()
884 return exec_actions(ap->subexpr, fileName, statbuf); in ACTF()
922 if (NOT_LONE_CHAR(fileName, '.')) in ACTF()
923 rc = rmdir(fileName); in ACTF()
925 rc = unlink(fileName); in ACTF()
928 bb_simple_perror_msg(fileName); in ACTF()
939 dir = opendir(fileName); in ACTF()
941 bb_simple_perror_msg(fileName); in ACTF()
963 rc = getfilecon(fileName, &con); in ACTF()
965 rc = lgetfilecon(fileName, &con); in ACTF()
987 const char *fileName, in fileAction() argument
1016 r = exec_actions(G.actions, fileName, statbuf); in fileAction()
1019 puts(fileName); in fileAction()