Lines Matching refs:file

56 static void unswap_macho_32(u_char *file, enum NXByteOrder host_order,
58 static void unswap_macho_64(u_char *file, enum NXByteOrder host_order,
284 validate_and_swap_macho_32(u_char *file, u_long size in validate_and_swap_macho_32() argument
291 struct mach_header *mach_hdr = (struct mach_header *) ((void *) file); in validate_and_swap_macho_32()
307 check(file); in validate_and_swap_macho_32()
344 load_hdr = (struct load_command *) ((void *) (file + offset)); in validate_and_swap_macho_32()
406 relocs = (struct relocation_info *) ((void *) (file + sects[j].reloff)); in validate_and_swap_macho_32()
438 symtab = (struct nlist *) ((void *) (file + symtab_hdr->symoff)); in validate_and_swap_macho_32()
465 validate_and_swap_macho_64(u_char *file, u_long size in validate_and_swap_macho_64() argument
472 struct mach_header_64 *mach_hdr = (struct mach_header_64 *) ((void *) file); in validate_and_swap_macho_64()
488 check(file); in validate_and_swap_macho_64()
525 load_hdr = (struct load_command *) ((void *) (file + offset)); in validate_and_swap_macho_64()
586 relocs = (struct relocation_info *) ((void *) (file + sects[j].reloff)); in validate_and_swap_macho_64()
618 symtab = (struct nlist_64 *) ((void *) (file + symtab_hdr->symoff)); in validate_and_swap_macho_64()
646 unswap_macho(u_char *file, enum NXByteOrder host_order, in unswap_macho() argument
649 struct mach_header *hdr = (struct mach_header *) ((void *) file); in unswap_macho()
656 unswap_macho_32(file, host_order, target_order); in unswap_macho()
658 unswap_macho_64(file, host_order, target_order); in unswap_macho()
665 unswap_macho_32(u_char *file, enum NXByteOrder host_order, in unswap_macho_32() argument
668 struct mach_header *mach_hdr = (struct mach_header *) ((void *) file); in unswap_macho_32()
679 check(file); in unswap_macho_32()
687 load_hdr = (struct load_command *) ((void *) (file + offset)); in unswap_macho_32()
705 symtab = (struct nlist*) ((void *) (file + symtab_hdr->symoff)); in unswap_macho_32()
723 unswap_macho_64(u_char *file, enum NXByteOrder host_order, in unswap_macho_64() argument
726 struct mach_header_64 *mach_hdr = (struct mach_header_64 *) ((void *) file); in unswap_macho_64()
737 check(file); in unswap_macho_64()
745 load_hdr = (struct load_command *) ((void *) (file + offset)); in unswap_macho_64()
763 symtab = (struct nlist_64 *) ((void *) (file + symtab_hdr->symoff)); in unswap_macho_64()