Lines Matching refs:addr
75 void *addr = NULL; in mmap_file() local
91 addr = mmap(0, sb.st_size, PROT_READ|PROT_WRITE, MAP_SHARED, fd, 0); in mmap_file()
92 if (addr == MAP_FAILED) { in mmap_file()
101 return addr; in mmap_file()
297 static int do_file(char const *const fname, void *addr) in do_file() argument
300 Elf32_Ehdr *ehdr = addr; in do_file()
396 void *addr = NULL; in main() local
405 addr = mmap_file(argv[i], &size); in main()
406 if (!addr) { in main()
411 if (do_file(argv[i], addr)) in main()
414 munmap(addr, size); in main()