/busybox-1.35.0/selinux/ |
D | chcon.c | 66 const char *fname, in change_filedir_context() argument 76 status = lgetfilecon(fname, &file_context); in change_filedir_context() 78 status = getfilecon(fname, &file_context); in change_filedir_context() 82 bb_error_msg("can't obtain security context: %s", fname); in change_filedir_context() 87 bb_error_msg("can't apply partial context to unlabeled file %s", fname); in change_filedir_context() 116 fail = lsetfilecon(fname, context_string); in change_filedir_context() 118 fail = setfilecon(fname, context_string); in change_filedir_context() 124 fname, context_string); in change_filedir_context() 130 fname, context_string); in change_filedir_context() 134 printf("context of %s retained as %s\n", fname, context_string); in change_filedir_context() [all …]
|
/busybox-1.35.0/coreutils/ |
D | readlink.c | 69 char *fname; in readlink_main() local 75 fname = argv[optind]; in readlink_main() 80 fname = argv[1]; in readlink_main() 89 buf = xmalloc_realpath_coreutils(fname); in readlink_main() 91 buf = xmalloc_readlink_or_warn(fname); in readlink_main()
|
D | shred.c | 69 const char *fname; in shred_main() local 73 fname = *argv++; in shred_main() 74 if (!fname) in shred_main() 78 fd = open(fname, O_WRONLY); in shred_main() 80 chmod(fname, 0666); in shred_main() 83 fd = xopen(fname, O_WRONLY); in shred_main() 105 xunlink(fname); in shred_main()
|
D | cksum.c | 55 const char *fname = *argv ? *argv : bb_msg_standard_input; in cksum_main() 56 int fd = open_or_warn_stdin(fname); in cksum_main() 69 bb_simple_perror_msg_and_die(fname); in cksum_main()
|
D | shuf.c | 130 const char *fname = "-"; in shuf_main() local 135 fname = argv[0]; in shuf_main() 138 fp = xfopen_stdin(fname); in shuf_main()
|
/busybox-1.35.0/mailutils/ |
D | mail.c | 128 static void encode_n_base64(const char *fname, const char *text, size_t len) in encode_n_base64() argument 139 if (fname) { in encode_n_base64() 140 fp = (NOT_LONE_DASH(fname)) ? xfopen_for_read(fname) : stdin; in encode_n_base64() 146 if (fname) { in encode_n_base64() 159 if (fname) { in encode_n_base64() 167 if (fname && NOT_LONE_DASH(fname)) in encode_n_base64() 182 void FAST_FUNC printfile_base64(const char *fname) in printfile_base64() argument 184 encode_n_base64(fname, NULL, 0); in printfile_base64()
|
D | mail.h | 36 void printfile_base64(const char *fname) FAST_FUNC;
|
D | reformime.c | 191 char *fname = xasprintf("%s%s", *argv, filename); in parse() local 192 fp = xfopen_for_write(fname); in parse() 193 free(fname); in parse()
|
/busybox-1.35.0/printutils/ |
D | lpd.c | 158 char *fname; in lpd_main() local 218 fname = strchr(s, ' '); in lpd_main() 219 if (!fname) { in lpd_main() 224 *fname++ = '\0'; in lpd_main() 246 sane(fname); in lpd_main() 247 fd = open3_or_warn(fname, O_CREAT | O_WRONLY | O_TRUNC | O_EXCL, 0200); in lpd_main() 250 filenames[s[0] - 2] = xstrdup(fname); in lpd_main()
|
/busybox-1.35.0/libbb/ |
D | ubi.c | 32 char fname[sizeof("/sys/class/ubi/ubi%u_%u/name") + 2 * sizeof(int)*3]; in ubi_get_volid_by_name() local 34 sprintf(fname, "/sys/class/ubi/ubi%u_%u/name", ubi_devnum, i); in ubi_get_volid_by_name() 35 if (open_read_close(fname, buf, sizeof(buf)) <= 0) in ubi_get_volid_by_name()
|
D | dump.c | 327 static void do_skip(priv_dumper_t *dumper, const char *fname) in do_skip() argument 331 xfstat(STDIN_FILENO, &sbuf, fname); in do_skip() 341 bb_simple_perror_msg_and_die(fname); in do_skip() 351 const char *fname = *dumper->argv; in next() local 353 if (fname) { in next() 355 if (NOT_LONE_DASH(fname)) { in next() 356 if (!freopen(fname, "r", stdin)) { in next() 357 bb_simple_perror_msg(fname); in next() 369 do_skip(dumper, fname ? fname : "stdin"); in next()
|
/busybox-1.35.0/archival/libarchive/ |
D | open_transformer.c | 267 static transformer_state_t *open_transformer(const char *fname, int fail_if_not_compressed) in open_transformer() argument 272 fd = open(fname, O_RDONLY); in open_transformer() 278 if (is_suffixed_with(fname, ".lzma")) { in open_transformer() 292 int FAST_FUNC open_zipped(const char *fname, int fail_if_not_compressed) in open_zipped() argument 297 xstate = open_transformer(fname, fail_if_not_compressed); in open_zipped() 323 void* FAST_FUNC xmalloc_open_zipped_read_close(const char *fname, size_t *maxsz_p) in xmalloc_open_zipped_read_close() argument 329 xstate = open_transformer(fname, /*fail_if_not_compressed:*/ 0); in xmalloc_open_zipped_read_close() 365 bb_perror_msg("read error from '%s'", fname); in xmalloc_open_zipped_read_close() 374 fd = open_zipped(fname, /*fail_if_not_compressed:*/ 0); in xmalloc_open_zipped_read_close() 380 bb_perror_msg("read error from '%s'", fname); in xmalloc_open_zipped_read_close()
|
/busybox-1.35.0/util-linux/volume_id/ |
D | xfs.c | 37 uint8_t fname[12]; member 59 volume_id_set_label_string(id, xs->fname, 12); in volume_id_probe_xfs()
|
/busybox-1.35.0/util-linux/ |
D | script.c | 61 const char *fname = "typescript"; in script_main() local 90 fname = argv[0]; in script_main() 100 printf("Script started, file is %s\n", fname); in script_main() 145 outfd = xopen(fname, mode); in script_main() 216 printf("Script done, file is %s\n", fname); in script_main()
|
/busybox-1.35.0/modutils/ |
D | depmod.c | 36 const char *fname, in parse_module() argument 46 if (strrstr(fname, ".ko") == NULL) in parse_module() 49 image = xmalloc_open_zipped_read_close(fname, &len); in parse_module() 51 e = moddb_get_or_create(modules, bb_get_last_path_component_nostrip(fname)); in parse_module() 52 e->name = xstrdup(fname + 2); /* skip "./" */ in parse_module()
|
D | modprobe-small.c | 252 static int load_module(const char *fname, const char *options) in load_module() argument 262 dbg1_error_msg("load_module('%s','%s')", fname, options); in load_module() 273 int fd = open(fname, O_RDONLY | O_CLOEXEC); in load_module() 281 module_image = xmalloc_open_zipped_read_close(fname, &len); in load_module() 290 dbg1_error_msg("load_module('%s','%s')", fname, options); in load_module() 386 const char *fname; in fileAction() local 391 fname = bb_get_last_path_component_nostrip(pathname); in fileAction() 392 if (!strrstr(fname, ".ko")) { in fileAction() 403 if (!pathname_matches_modname(fname, modname_to_match)) { in fileAction()
|
/busybox-1.35.0/networking/ |
D | nameif.c | 224 const char *fname = "/etc/mactab"; in nameif_main() local 230 if (1 & getopt32(argv, "sc:", &fname)) { in nameif_main() 246 parser = config_open(fname); in nameif_main()
|
/busybox-1.35.0/procps/ |
D | powertop.c | 116 static int write_str_to_file(const char *fname, const char *str) in write_str_to_file() argument 118 FILE *fp = fopen_for_write(fname); in write_str_to_file() 544 char fname[sizeof("/sys/devices/system/cpu//cpuidle//desc") + 2*BIG_SYSNAME_LEN]; in print_intel_cstates() local 553 len = sprintf(fname, "%s/%s/cpuidle", "/sys/devices/system/cpu", d->d_name); in print_intel_cstates() 554 dir = opendir(fname); in print_intel_cstates() 571 sprintf(fname + len, "/%s/desc", d->d_name); in print_intel_cstates() 572 fp = fopen_for_read(fname); in print_intel_cstates()
|
D | mpstat.c | 541 static void get_irqs_from_interrupts(const char *fname, in get_irqs_from_interrupts() argument 568 fp = fopen_for_read(fname); in get_irqs_from_interrupts()
|
D | nmeter.c | 156 static void readfile_z(proc_file *pf, const char* fname) in readfile_z() argument 171 fd = xopen(fname, O_RDONLY); in readfile_z()
|
/busybox-1.35.0/editors/ |
D | sed.c | 447 char *fname; in parse_subst_cmd() local 448 idx += parse_file_cmd(/*sed_cmd,*/ substr+idx+1, &fname); in parse_subst_cmd() 449 sed_cmd->sw_file = xfopen_for_write(fname); in parse_subst_cmd() 451 free(fname); in parse_subst_cmd()
|
D | awk.c | 2810 const char *fname, *ind; in next_input_file() local 2821 fname = "-"; in next_input_file() 2826 fname = getvar_s(findvar(iamarray(intvar[ARGV]), ind)); in next_input_file() 2827 if (fname && *fname && !is_assignment(fname)) { in next_input_file() 2828 rsm.F = xfopen_stdin(fname); in next_input_file() 2834 setvar_s(intvar[FILENAME], fname); in next_input_file()
|
/busybox-1.35.0/include/ |
D | libbb.h | 1008 extern int open_zipped(const char *fname, int fail_if_not_compressed) FAST_FUNC; 1009 extern void *xmalloc_open_zipped_read_close(const char *fname, size_t *maxsz_p) FAST_FUNC RETURNS_M… 1012 # define open_zipped(fname, fail_if_not_compressed) open((fname), O_RDONLY); argument 1013 # define xmalloc_open_zipped_read_close(fname, maxsz_p) xmalloc_open_read_close((fname), (maxsz_p)) argument
|
/busybox-1.35.0/shell/ |
D | ash.c | 965 union node *fname; member 1320 sharg(np->nfile.fname, fp); in shcmd() 5110 n = n->nfile.fname; in cmdtxt() 5519 char *fname; in openredirect() local 5535 fname = redir->nfile.expfname; in openredirect() 5543 f = open(fname, O_RDONLY); in openredirect() 5548 f = open(fname, O_RDWR|O_CREAT, 0666); in openredirect() 5558 if (stat(fname, &sb) < 0) { in openredirect() 5559 f = open(fname, O_WRONLY|O_CREAT|O_EXCL, 0666); in openredirect() 5563 f = open(fname, O_WRONLY, 0666); in openredirect() [all …]
|
/busybox-1.35.0/miscutils/ |
D | bc.c | 7330 char **fname; in zxc_vm_exec() local 7345 fname = (void*)G.files.v; in zxc_vm_exec() 7347 s = zxc_vm_file(*fname++); in zxc_vm_exec()
|