Lines Matching refs:mach_hdr
257 struct mach_header *mach_hdr = (struct mach_header *) ((void *) object->file);
258 object->filetype = mach_hdr->filetype;
260 struct mach_header_64 *mach_hdr = (struct mach_header_64 *) ((void *) object->file);
261 object->filetype = mach_hdr->filetype;
420 struct mach_header *mach_hdr = NULL;
491 mach_hdr = (struct mach_header *) ((void *) object->file);
492 require_action(object->cputype == mach_hdr->cputype, finish,
1022 struct mach_header *mach_hdr = (struct mach_header *) ((void *) (file + offset));
1024 if (filetype) *filetype = mach_hdr->filetype;
1025 if (ncmds) *ncmds = mach_hdr->ncmds;
1027 return sizeof(*mach_hdr);
1038 struct mach_header_64 *mach_hdr = (struct mach_header_64 *) ((void *) (file + offset));
1040 if (filetype) *filetype = mach_hdr->filetype;
1041 if (ncmds) *ncmds = mach_hdr->ncmds;
1043 return sizeof(*mach_hdr);