Lines Matching refs:fname
75 static void *mmap_file(char const *fname, size_t *size)
81 fd = open(fname, O_RDWR);
83 perror(fname);
87 perror(fname);
91 fprintf(stderr, "not a regular file: %s\n", fname);
97 fprintf(stderr, "Could not mmap file: %s\n", fname);
329 static int do_file(char const *const fname, void *addr)
354 ehdr->e_ident[EI_DATA], fname);
361 fprintf(stderr, "unrecognized ET_EXEC/ET_DYN file %s\n", fname);
391 r2(&ehdr->e_machine), fname);
400 "unrecognized ET_EXEC/ET_DYN file: %s\n", fname);
403 rc = do_sort_32(ehdr, fname, custom_sort);
412 fname);
415 rc = do_sort_64(ghdr, fname, custom_sort);
420 ehdr->e_ident[EI_CLASS], fname);