/busybox-1.35.0/libbb/ |
D | recursive_action.c | 25 const char *fileName UNUSED_PARAM, in true_action() 67 static int recursive_action1(recursive_state_t *state, const char *fileName) in recursive_action1() argument 79 status = (follow ? stat : lstat)(fileName, &statbuf); in recursive_action1() 86 && lstat(fileName, &statbuf) == 0 in recursive_action1() 89 return state->fileAction(state, fileName, &statbuf); in recursive_action1() 100 return state->fileAction(state, fileName, &statbuf); in recursive_action1() 106 return state->dirAction(state, fileName, &statbuf); in recursive_action1() 110 status = state->dirAction(state, fileName, &statbuf); in recursive_action1() 117 dir = opendir(fileName); in recursive_action1() 129 nextFile = concat_subpath_file(fileName, next->d_name); in recursive_action1() [all …]
|
D | isdirectory.c | 16 int FAST_FUNC is_directory(const char *fileName, int followLinks) in is_directory() argument 22 status = stat(fileName, &statBuf); in is_directory() 24 status = lstat(fileName, &statBuf); in is_directory()
|
/busybox-1.35.0/coreutils/ |
D | chmod.c | 70 const char *fileName, in fileAction() argument 78 if (stat(fileName, statbuf)) in fileAction() 89 if (chmod(fileName, newmode) == 0) { in fileAction() 95 printf("mode of '%s' changed to %04o (%s)\n", fileName, in fileAction() 102 bb_simple_perror_msg(fileName); in fileAction()
|
D | chown.c | 105 const char *fileName, struct stat *statbuf) in fileAction() argument 112 if (param.chown_func(fileName, u, g) == 0) { in fileAction() 117 fileName, (unsigned)u, (unsigned)g); in fileAction() 122 bb_simple_perror_msg(fileName); in fileAction()
|
/busybox-1.35.0/findutils/ |
D | find.c | 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() [all …]
|
/busybox-1.35.0/util-linux/ |
D | lsusb.c | 28 const char *fileName, in fileAction() argument 35 char *uevent_filename = concat_path_file(fileName, "/uevent"); in fileAction()
|
D | lspci.c | 41 const char *fileName, in fileAction() argument 50 char *uevent_filename = concat_path_file(fileName, "/uevent"); in fileAction()
|
D | mdev.c | 848 const char *fileName, in fileAction() argument 851 size_t len = strlen(fileName) - 4; /* can't underflow */ in fileAction() 857 if (strcmp(fileName + len, "/dev") != 0 || len >= PATH_MAX - 32) in fileAction() 860 strcpy(path, fileName); in fileAction() 890 const char *fileName UNUSED_PARAM, in dirAction()
|
/busybox-1.35.0/editors/ |
D | ed.c | 50 char *fileName; member 60 #define fileName (G.fileName ) macro 857 if (fileName) in doCommands() 858 printf("\"%s\"\n", fileName); in doCommands() 863 free(fileName); in doCommands() 864 fileName = xstrdup(cp); in doCommands() 921 if (fileName == NULL) in doCommands() 922 fileName = xstrdup(cp); in doCommands() 936 cp = fileName; in doCommands() 1012 fileName = xstrdup(argv[0]); in ed_main() [all …]
|
/busybox-1.35.0/archival/ |
D | tar.c | 189 const char *fileName) in addHardLinkInfo() argument 194 hlInfo = xmalloc(sizeof(HardLinkInfo) + strlen(fileName)); in addHardLinkInfo() 200 strcpy(hlInfo->name, fileName); in addHardLinkInfo() 303 const char *header_name, const char *fileName, struct stat *statbuf) in writeTarHeader() argument 335 char *lpath = xmalloc_readlink_or_warn(fileName); in writeTarHeader() 402 fileName, statbuf->st_size); in writeTarHeader() 406 bb_error_msg("%s: unknown file type", fileName); in writeTarHeader() 468 const char *fileName, in writeFileToTarball() argument 475 DBG("writeFileToTarball('%s')", fileName); in writeFileToTarball() 478 header_name = strip_unsafe_prefix(fileName); in writeFileToTarball() [all …]
|
/busybox-1.35.0/miscutils/ |
D | crond.c | 414 static void load_crontab(const char *fileName) in load_crontab() argument 425 delete_cronfile(fileName); in load_crontab() 427 if (!getpwnam(fileName)) { in load_crontab() 428 log7("ignoring file '%s' (no such user)", fileName); in load_crontab() 432 parser = config_open(fileName); in load_crontab() 436 maxLines = (strcmp(fileName, "root") == 0) ? 65535 : MAXLINES; in load_crontab() 443 file->cf_username = xstrdup(fileName); in load_crontab() 450 bb_error_msg("user %s: too many lines", fileName); in load_crontab() 458 log5("user:%s entry:%s", fileName, parser->data); in load_crontab()
|
/busybox-1.35.0/networking/ |
D | netstat.c | 276 const char *fileName, in add_to_prg_cache_if_socket() argument 282 linkname = xmalloc_readlink(fileName); in add_to_prg_cache_if_socket() 295 const char *fileName, in dir_act() argument 307 pid = fileName + sizeof("/proc/")-1; /* point after "/proc/" */ in dir_act() 311 len = snprintf(proc_pid_fname, sizeof(proc_pid_fname), "%s/cmdline", fileName); in dir_act()
|
/busybox-1.35.0/include/ |
D | libbb.h | 523 …int FAST_FUNC (*fileAction)(struct recursive_state *state, const char *fileName, struct stat* stat… 524 …int FAST_FUNC (*dirAction)(struct recursive_state *state, const char *fileName, struct stat* stat… 526 int recursive_action(const char *fileName, unsigned flags, 527 …int FAST_FUNC (*fileAction)(struct recursive_state *state, const char *fileName, struct stat* stat… 528 …int FAST_FUNC (*dirAction)(struct recursive_state *state, const char *fileName, struct stat* stat…
|