Searched refs:fat_header (Results 1 - 25 of 31) sorted by relevance

12

/macosx-10.10/file-46/file/src/
H A Dreadmacho.c67 struct fat_header fat_header; local
79 if (nbytes < sizeof(struct fat_header)) {
83 memcpy(&fat_header, buf, sizeof(struct fat_header));
85 swap_fat_header(&fat_header, NX_LittleEndian);
89 if(!(fat_header.magic == FAT_MAGIC && fat_header.nfat_arch < 20)) {
93 arch_size = fat_header.nfat_arch * sizeof(struct fat_arch);
95 if (nbytes < sizeof(struct fat_header)
[all...]
/macosx-10.10/xnu-2782.1.97/EXTERNAL_HEADERS/mach-o/
H A Dfat.h28 * there is one fat_header structure followed by a number of fat_arch
30 * cputype and cpusubtype, the fat_header describes the file offset, file
51 struct fat_header { struct
/macosx-10.10/xnu-2782.1.97/bsd/kern/
H A Dmach_fat.c83 struct fat_header *header;
92 header = (struct fat_header *)data_ptr;
101 sizeof(struct fat_header);
114 end_of_archs < (off_t)(sizeof(struct fat_header)+sizeof(struct fat_arch)))
129 arch = (struct fat_arch *) (addr + sizeof(struct fat_header));
H A Dmach_loader.c1413 struct fat_header fat_header; member in union:macho_data::macho_vnode_header
1886 } else if (header->fat_header.magic == FAT_MAGIC ||
1887 header->fat_header.magic == FAT_CIGAM) {
1897 (vm_offset_t)(&header->fat_header), &fat_arch);
H A Dkern_exec.c587 struct fat_header *fat_header = (struct fat_header *)imgp->ip_vdata; local
594 if ((fat_header->magic != FAT_MAGIC) &&
595 (fat_header->magic != FAT_CIGAM)) {
602 uint32_t fat_nfat_arch = OSSwapBigToHostInt32(fat_header->nfat_arch);
607 archs = (struct fat_arch *)(imgp->ip_vdata + sizeof(struct fat_header));
610 if (PAGE_SIZE >= (sizeof(struct fat_header) + (fat_nfat_arch + 1) * sizeof(struct fat_arch))) {
641 struct fat_arch *arches = (struct fat_arch *) (fat_header + 1);
644 nfat_arch = OSSwapBigToHostInt32(fat_header
[all...]
/macosx-10.10/IOKitUser-1050.1.21/kext.subproj/
H A Dfat_util.c51 struct fat_header * fat_header; member in struct:__fat_iterator
85 if (length < sizeof(struct fat_header)) {
89 iter->fat_header = (struct fat_header *)file_data;
90 iter->fat_arches = (struct fat_arch *)((char *)iter->fat_header +
91 sizeof(struct fat_header));
93 iter->fat_header->nfat_arch);
258 if (!iter->fat_header) {
326 if (iter->fat_header) {
[all...]
/macosx-10.10/xar-254/xar/lib/
H A Dmacho.h53 struct fat_header { struct
H A Dmacho.c67 struct fat_header fath; /* Need to read and buffer the fat header */
116 if( inlen >= sizeof(struct fat_header) ) {
117 struct fat_header *fh = (struct fat_header *)in;
/macosx-10.10/WebKit2-7600.1.25/UIProcess/Launcher/mac/
H A DDynamicLinkerEnvironmentExtractor.mm162 if (length < sizeof(fat_header))
165 const fat_header* header = static_cast<const fat_header*>(data);
170 if ((length - sizeof(fat_header)) / sizeof(fat_arch) < numberOfArchitectures)
/macosx-10.10/iodbc-42.5/iodbc/iodbcinst/
H A Ddlf.h164 struct fat_header *fat_header; /* If a fat file these are filled in and */ member in struct:ofile
/macosx-10.10/kext_tools-384.1.4/
H A Dkclist_main.c45 void * fat_header = NULL; // must unmapFatHeaderPage() local
103 fat_header = mapAndSwapFatHeaderPage(kernelcache_fd);
104 if (!fat_header) {
112 fat_arch = getFirstFatArch(fat_header);
205 if (fat_header) {
206 unmapFatHeaderPage(fat_header);
H A Dkctool_main.c30 void * fat_header = NULL; // must unmapFatHeaderPage() local
75 fat_header = mapAndSwapFatHeaderPage(kernelcache_fd);
76 if (!fat_header) {
84 fat_arch = getFirstFatArch(fat_header);
160 if (fat_header) {
161 unmapFatHeaderPage(fat_header);
H A Dkernelcache.c48 struct fat_header fatHeader;
107 fatOffset = sizeof(struct fat_header) +
184 struct fat_header * fatHeader = NULL; // do not free
202 fatHeader = (struct fat_header *) headerPage;
234 struct fat_header * fatHeader = NULL;
237 fatHeader = (struct fat_header *) headerPage;
255 struct fat_header * fatHeader = NULL;
260 fatHeader = (struct fat_header *) headerPage;
285 struct fat_header * fatHeader = NULL;
288 fatHeader = (struct fat_header *)headerPag
[all...]
/macosx-10.10/tcl-105/tcl/tcl/unix/
H A DtclLoadDyld.c635 const struct fat_header *fh = buffer;
649 if ((size_t) codeSize >= sizeof(struct fat_header)
658 if ((size_t) codeSize >= sizeof(struct fat_header) +
660 void *fatarchs = (char*)buffer + sizeof(struct fat_header);
/macosx-10.10/tcl-105/tcl84/tcl/unix/
H A DtclLoadDyld.c637 const struct fat_header *fh = buffer;
651 if ((size_t) codeSize >= sizeof(struct fat_header)
660 if ((size_t) codeSize >= sizeof(struct fat_header) +
662 void *fatarchs = (char*)buffer + sizeof(struct fat_header);
/macosx-10.10/WebKit-7600.1.25/mac/Plugins/
H A DWebBasePluginPackage.mm403 COMPILE_ASSERT(sizeof(struct fat_header) % sizeof(uint32_t) == 0, struct_fat_header_must_be_integral_size_of_uint32_t);
404 archs = reinterpret_cast<struct fat_arch*>(rawData.data() + sizeof(struct fat_header) / sizeof(uint32_t));
405 numArchs = reinterpret_cast<struct fat_header*>(rawData.data())->nfat_arch;
407 unsigned maxArchs = (sizeInBytes - sizeof(struct fat_header)) / sizeof(struct fat_arch);
/macosx-10.10/dtrace-147/libelf/
H A Dbegin.c313 if ((elf->ed_fsz >= sizeof(struct fat_header)) &&
314 (_elf_vm(elf, (size_t)0, (size_t)sizeof(struct fat_header)) == OK_YES) &&
318 struct fat_header *fat_header = (struct fat_header *)(elf->ed_ident); local
319 int nfat_arch = OSSwapBigToHostInt32(fat_header->nfat_arch);
320 int end_of_archs = sizeof(struct fat_header) + nfat_arch * sizeof(struct fat_arch);
321 struct fat_arch *arch = (struct fat_arch *)(elf->ed_ident + sizeof(struct fat_header));
/macosx-10.10/objc4-646/
H A Dmarkgc.c376 struct fat_header *fh = start;
440 struct fat_header *fh = (struct fat_header *)FileBase;
/macosx-10.10/emacs-93/
H A Ddumpemacs.c262 struct fat_header *fh = (struct fat_header *)buffer;
391 struct fat_header *fh = (struct fat_header *)buffer;
/macosx-10.10/dyld-353.2.1/src/
H A Ddyld.cpp2078 static bool fatFindBestFromOrderedList(cpu_type_t cpu, const cpu_subtype_t list[], const fat_header* fh, uint64_t* offset, uint64_t* len)
2080 const fat_arch* const archs = (fat_arch*)(((char*)fh)+sizeof(fat_header));
2095 static bool fatFindExactMatch(cpu_type_t cpu, cpu_subtype_t subtype, const fat_header* fh, uint64_t* offset, uint64_t* len)
2097 const fat_arch* archs = (fat_arch*)(((char*)fh)+sizeof(fat_header));
2110 static bool fatFindRunsOnAllCPUs(cpu_type_t cpu, const fat_header* fh, uint64_t* offset, uint64_t* len)
2112 const fat_arch* archs = (fat_arch*)(((char*)fh)+sizeof(fat_header));
2147 static bool fatFindBest(const fat_header* fh, uint64_t* offset, uint64_t* len)
2171 const fat_arch* archs = (fat_arch*)(((char*)fh)+sizeof(fat_header));
2424 const fat_header* fileStartAsFat = (fat_header*)firstPag
[all...]
/macosx-10.10/Libc-1044.1.2/gen/
H A Dnlist.c162 struct fat_header fh;
/macosx-10.10/Security-57031.1.35/Security/include/security_utilities/
H A Dmacho++.cpp451 fat_header header; // if this is a fat file
749 LowLevelMemoryUtilities::increment<fat_arch>(&header, sizeof(fat_header));
/macosx-10.10/Security-57031.1.35/Security/libsecurity_utilities/lib/
H A Dmacho++.cpp451 fat_header header; // if this is a fat file
749 LowLevelMemoryUtilities::increment<fat_arch>(&header, sizeof(fat_header));
/macosx-10.10/Security-57031.1.35/codesign_wrapper/
H A Dcodesign.c247 struct fat_header fat;
/macosx-10.10/dyld-353.2.1/launch-cache/
H A DMachOLayout.hpp378 const fat_header* fh = (fat_header*)p;
382 const struct fat_arch* slices = (struct fat_arch*)(p + sizeof(struct fat_header));

Completed in 235 milliseconds

12