Lines Matching defs:hdr
737 struct mach_header_64 hdr;
740 hdr.magic = MH_MAGIC_64;
741 hdr.cputype = target_arch->cputype;
742 hdr.cpusubtype = target_arch->cpusubtype;
743 hdr.filetype = MH_KEXT_BUNDLE;
744 hdr.ncmds = 3;
745 hdr.sizeofcmds = sizeof(segcmd) + sizeof(symcmd) + sizeof(uuidcmd);
746 hdr.flags = MH_INCRLINK;
747 symsoffset = mach_vm_round_page(hdr.sizeofcmds);
767 swap_mach_header_64(&hdr, target_arch->byteorder);
770 err = writeFile(fd, &hdr, sizeof(hdr));
777 struct mach_header hdr;
780 hdr.magic = MH_MAGIC;
781 hdr.cputype = target_arch->cputype;
782 hdr.cpusubtype = target_arch->cpusubtype;
783 hdr.filetype = (target_arch->cputype == CPU_TYPE_I386) ? MH_OBJECT : MH_KEXT_BUNDLE;
784 hdr.ncmds = 3;
785 hdr.sizeofcmds = sizeof(segcmd) + sizeof(symcmd) + sizeof(uuidcmd);
786 hdr.flags = MH_INCRLINK;
787 symsoffset = mach_vm_round_page(hdr.sizeofcmds);
807 swap_mach_header(&hdr, target_arch->byteorder);
810 err = writeFile(fd, &hdr, sizeof(hdr));