Lines Matching refs:file
55 static void unswap_macho_32(u_char *file, enum NXByteOrder host_order,
57 static void unswap_macho_64(u_char *file, enum NXByteOrder host_order,
283 validate_and_swap_macho_32(u_char *file, u_long size in validate_and_swap_macho_32() argument
290 struct mach_header *mach_hdr = (struct mach_header *) ((void *) file); in validate_and_swap_macho_32()
306 check(file); in validate_and_swap_macho_32()
343 load_hdr = (struct load_command *) ((void *) (file + offset)); in validate_and_swap_macho_32()
405 relocs = (struct relocation_info *) ((void *) (file + sects[j].reloff)); in validate_and_swap_macho_32()
437 symtab = (struct nlist *) ((void *) (file + symtab_hdr->symoff)); in validate_and_swap_macho_32()
464 validate_and_swap_macho_64(u_char *file, u_long size in validate_and_swap_macho_64() argument
471 struct mach_header_64 *mach_hdr = (struct mach_header_64 *) ((void *) file); in validate_and_swap_macho_64()
487 check(file); in validate_and_swap_macho_64()
524 load_hdr = (struct load_command *) ((void *) (file + offset)); in validate_and_swap_macho_64()
585 relocs = (struct relocation_info *) ((void *) (file + sects[j].reloff)); in validate_and_swap_macho_64()
617 symtab = (struct nlist_64 *) ((void *) (file + symtab_hdr->symoff)); in validate_and_swap_macho_64()
645 unswap_macho(u_char *file, enum NXByteOrder host_order, in unswap_macho() argument
648 struct mach_header *hdr = (struct mach_header *) ((void *) file); in unswap_macho()
655 unswap_macho_32(file, host_order, target_order); in unswap_macho()
657 unswap_macho_64(file, host_order, target_order); in unswap_macho()
664 unswap_macho_32(u_char *file, enum NXByteOrder host_order, in unswap_macho_32() argument
667 struct mach_header *mach_hdr = (struct mach_header *) ((void *) file); in unswap_macho_32()
678 check(file); in unswap_macho_32()
686 load_hdr = (struct load_command *) ((void *) (file + offset)); in unswap_macho_32()
704 symtab = (struct nlist*) ((void *) (file + symtab_hdr->symoff)); in unswap_macho_32()
722 unswap_macho_64(u_char *file, enum NXByteOrder host_order, in unswap_macho_64() argument
725 struct mach_header_64 *mach_hdr = (struct mach_header_64 *) ((void *) file); in unswap_macho_64()
736 check(file); in unswap_macho_64()
744 load_hdr = (struct load_command *) ((void *) (file + offset)); in unswap_macho_64()
762 symtab = (struct nlist_64 *) ((void *) (file + symtab_hdr->symoff)); in unswap_macho_64()