Lines Matching refs:fname
90 static int process_file (const char *fname, bool more_than_one);
93 static int handle_ar (int fd, Elf *elf, const char *prefix, const char *fname,
97 static int handle_elf (Elf *elf, const char *prefix, const char *fname,
101 #define INTERNAL_ERROR(fname) \
103 fname, __LINE__, PACKAGE_VERSION, elf_errmsg (-1))
234 process_file (const char *fname, bool more_than_one)
237 int fd = open (fname, O_RDONLY);
240 error (0, errno, _("cannot open %s"), fname);
251 fname, NULL);
254 INTERNAL_ERROR (fname);
257 error_exit (errno, _("while close `%s'"), fname);
263 int result = handle_ar (fd, elf, NULL, fname, NULL);
266 INTERNAL_ERROR (fname);
269 error_exit (errno, _("while close `%s'"), fname);
276 INTERNAL_ERROR (fname);
279 error (0, 0, _("%s: File format not recognized"), fname);
286 handle_ar (int fd, Elf *elf, const char *prefix, const char *fname,
289 size_t fname_len = strlen (fname) + 1;
301 cp = stpcpy (cp, fname);
336 INTERNAL_ERROR (fname);
472 show_relocs (Ebl *ebl, const char *fname, uint32_t shstrndx)
483 INTERNAL_ERROR (fname);
549 show_full_content (Ebl *ebl, const char *fname, uint32_t shstrndx)
558 INTERNAL_ERROR (fname);
682 show_disasm (Ebl *ebl, const char *fname, uint32_t shstrndx)
695 INTERNAL_ERROR (fname);
750 handle_elf (Elf *elf, const char *prefix, const char *fname,
760 fname, gelf_getclass (elf) == ELFCLASS32 ? 32 : 64,
766 size_t fname_len = strlen (fname) + 1;
771 cp = mempcpy (cp, fname, fname_len);