Lines Matching refs:fname
108 /* Print symbols in file named FNAME. */
109 static int process_file (const char *fname);
113 const char *fname, mode_t mode, struct timeval tvp[2]);
116 static int handle_ar (int fd, Elf *elf, const char *prefix, const char *fname,
119 #define INTERNAL_ERROR(fname) \
121 fname, __LINE__, PACKAGE_VERSION, __DATE__, elf_errmsg (-1))
285 process_file (const char *fname)
295 if (stat64 (fname, &pre_st) != 0)
297 error (0, errno, gettext ("cannot stat input file '%s'"), fname);
308 int fd = open (fname, output_fname == NULL ? O_RDWR : O_RDONLY);
311 error (0, errno, gettext ("while opening '%s'"), fname);
321 error (0, errno, gettext ("cannot stat input file '%s'"), fname);
340 result = handle_elf (fd, elf, NULL, fname, st.st_mode & ACCESSPERMS,
350 fname);
354 result = handle_ar (fd, elf, NULL, fname, preserve_dates ? tv : NULL);
358 error (0, 0, gettext ("%s: File format not recognized"), fname);
364 INTERNAL_ERROR (fname);
376 handle_elf (int fd, Elf *elf, const char *prefix, const char *fname,
380 size_t fname_len = strlen (fname) + 1;
424 memcpy (cp, fname, fname_len);
477 INTERNAL_ERROR (fname);
510 INTERNAL_ERROR (fname);
534 INTERNAL_ERROR (fname);
574 INTERNAL_ERROR (fname);
581 error (0, 0, gettext ("illformed file '%s'"), fname);
611 INTERNAL_ERROR (fname);
735 INTERNAL_ERROR (fname);
750 INTERNAL_ERROR (fname);
770 INTERNAL_ERROR (fname);
843 INTERNAL_ERROR (fname);
882 INTERNAL_ERROR (fname);
889 INTERNAL_ERROR (fname);
895 INTERNAL_ERROR (fname);
915 INTERNAL_ERROR (fname);
942 output_fname ?: fname);
1107 INTERNAL_ERROR (fname);
1113 INTERNAL_ERROR (fname);
1175 INTERNAL_ERROR (fname);
1188 INTERNAL_ERROR (fname);
1238 INTERNAL_ERROR (fname);
1281 INTERNAL_ERROR (fname);
1355 INTERNAL_ERROR (fname);
1365 INTERNAL_ERROR (fname);
1373 INTERNAL_ERROR (fname);
1383 INTERNAL_ERROR (fname);
1624 INTERNAL_ERROR (fname);
1631 INTERNAL_ERROR (fname);
1656 INTERNAL_ERROR (fname);
1667 fname, elf_errmsg (-1));
1675 fname, elf_errmsg (-1));
1689 fname, elf_errmsg (-1));
1720 error (0, 0, gettext ("error while finishing '%s': %s"), fname,
1752 output_fname ?: fname);
1766 handle_ar (int fd, Elf *elf, const char *prefix, const char *fname,
1770 size_t fname_len = strlen (fname) + 1;
1780 memcpy (cp, fname, fname_len);
1800 INTERNAL_ERROR (fname);
1808 cannot set access and modification date of '%s'"), fname);
1814 error (EXIT_FAILURE, errno, gettext ("while closing '%s'"), fname);