Searched refs:sizeofcmds (Results 1 - 25 of 28) sorted by relevance

12

/macosx-10.10/xar-254/xar/lib/
H A Dmacho.h44 uint32_t sizeofcmds; member in struct:mach_header
H A Dmacho.c220 context->me[context->curme].mh.sizeofcmds = xar_swap32(mh->sizeofcmds);
/macosx-10.10/Libc-1044.1.2/gen/
H A Dnlist.c252 load_commands = (struct load_command *)malloc(mh.sizeofcmds);
256 if (read(fd, (char *)load_commands, mh.sizeofcmds) !=
257 mh.sizeofcmds) {
267 (char *)load_commands + mh.sizeofcmds) {
/macosx-10.10/xnu-2782.1.97/bsd/kern/
H A Dkern_core.c343 mh64->sizeofcmds = command_size;
352 mh->sizeofcmds = command_size;
472 mh64->sizeofcmds -= segment_count * segment_command_sz;
475 mh->sizeofcmds -= segment_count * segment_command_sz;
H A Dmach_loader.c475 * the contents of its sizeofcmds, which is currently constrained to 32
578 if ((off_t)(mach_header_sz + header->sizeofcmds) > macho_size)
584 size = round_page(mach_header_sz + header->sizeofcmds);
659 offset > header->sizeofcmds + mach_header_sz) {
748 (char *)addr + mach_header_sz + header->sizeofcmds,
/macosx-10.10/IOKitUser-1050.1.21/kext.subproj/
H A Dmacho_util.c630 uint32_t sizeofcmds; local
670 sizeofcmds = CondSwapInt32(swap, mach_header->sizeofcmds);
671 cmds_end = (char *)load_commands + sizeofcmds;
1108 mach_hdr->sizeofcmds -= cmdsize;
1111 mach_hdr64->sizeofcmds -= cmdsize;
1280 mach_hdr->sizeofcmds -= cmdsize;
1283 mach_hdr64->sizeofcmds -= cmdsize;
/macosx-10.10/emacs-93/emacs/src/
H A Dunexnext.c361 if (lseek(infd, the_header.sizeofcmds + sizeof(the_header),
367 the_header.sizeofcmds);
H A Dunexmacosx.c754 printf ("SizeOfCmds = %d\n", mh.sizeofcmds);
1270 mh.sizeofcmds = curr_header_offset - sizeof (struct mach_header);
/macosx-10.10/dtrace-147/tools/ctfconvert/
H A Doutput.c986 cmdlength = mh->sizeofcmds; // where to write CTF seg/sect
987 dataoffset = sizeof(*mh) + mh->sizeofcmds; // where all real data starts
991 mh->sizeofcmds += ctfhdrsz;
1151 cmdlength = mh->sizeofcmds; // where to write CTF seg/sect
1152 dataoffset = sizeof(*mh) + mh->sizeofcmds; // where all real data starts
1156 mh->sizeofcmds += ctfhdrsz;
/macosx-10.10/objc4-646/
H A Dmarkgc.c319 mh->sizeofcmds = OSSwapInt32(mh->sizeofcmds);
/macosx-10.10/xnu-2782.1.97/EXTERNAL_HEADERS/mach-o/
H A Dloader.h60 uint32_t sizeofcmds; /* the size of all the load commands */ member in struct:mach_header
78 uint32_t sizeofcmds; /* the size of all the load commands */ member in struct:mach_header_64
212 * of the commands is given by the sizeofcmds field in the mach_header. All
/macosx-10.10/Security-57031.1.35/Security/include/security_utilities/
H A Dmacho++.h101 size_t commandLength() const { return flip(mHeader->sizeofcmds); }
H A Dmacho++.cpp152 mEndCommands = LowLevelMemoryUtilities::increment<load_command>(commands, flip(mHeader->sizeofcmds));
165 return flip(mHeader->sizeofcmds);
/macosx-10.10/Security-57031.1.35/Security/libsecurity_utilities/lib/
H A Dmacho++.h101 size_t commandLength() const { return flip(mHeader->sizeofcmds); }
H A Dmacho++.cpp152 mEndCommands = LowLevelMemoryUtilities::increment<load_command>(commands, flip(mHeader->sizeofcmds));
165 return flip(mHeader->sizeofcmds);
/macosx-10.10/cxxfilt-11/cxxfilt/bfd/
H A Dmach-o.h183 unsigned long sizeofcmds; member in struct:bfd_mach_o_header
H A Dmach-o.c301 bfd_h_put_32 (abfd, header->sizeofcmds, buf + 20);
624 header->sizeofcmds = (*get32) (buf + 20);
1554 mdata->header.sizeofcmds = 0;
/macosx-10.10/xnu-2782.1.97/SETUP/kextsymboltool/
H A Dkextsymboltool.c745 hdr.sizeofcmds = sizeof(segcmd) + sizeof(symcmd) + sizeof(uuidcmd);
747 symsoffset = mach_vm_round_page(hdr.sizeofcmds);
785 hdr.sizeofcmds = sizeof(segcmd) + sizeof(symcmd) + sizeof(uuidcmd);
787 symsoffset = mach_vm_round_page(hdr.sizeofcmds);
/macosx-10.10/llvmCore-3425.0.34/include/llvm/Support/
H A DMachO.h292 uint32_t sizeofcmds; member in struct:llvm::MachO::mach_header
302 uint32_t sizeofcmds; member in struct:llvm::MachO::mach_header_64
/macosx-10.10/dyld-353.2.1/launch-cache/
H A Ddsc_iterator.cpp77 if ( (machHeader+ mh->sizeofcmds()) > cacheEnd )
H A DMachOFileAbstraction.hpp785 uint32_t sizeofcmds() const INLINE { return E::get32(header.fields.sizeofcmds); }
786 void set_sizeofcmds(uint32_t value) INLINE { E::set32(header.fields.sizeofcmds, value); }
/macosx-10.10/dyld-353.2.1/src/
H A DdyldAPIsInLibSystem.cpp437 const load_command* const cmdsEnd = (load_command*)((char*)startCmds + mh->sizeofcmds);
569 const load_command* const cmdsEnd = (load_command*)((char*)startCmds + mh->sizeofcmds);
H A DImageLoaderMachO.cpp138 const struct load_command* const endCmds = (struct load_command*)(((uint8_t*)mh) + sizeof(macho_header) + mh->sizeofcmds);
148 dyld::throwf("malformed mach-o image: load command #%d length (%u) would exceed sizeofcmds (%u) in %s",
149 i, cmdLength, mh->sizeofcmds, path);
162 if ( context.codeSigningEnforced && (segCmd->fileoff < mh->sizeofcmds) && (segCmd->filesize != 0) ) {
163 if ( (segCmd->fileoff != 0) || (segCmd->filesize < (mh->sizeofcmds+sizeof(macho_header))) )
258 const unsigned int dataSize = sizeof(macho_header) + ((macho_header*)firstPage)->sizeofcmds;
/macosx-10.10/dtrace-147/libelf/
H A Dbegin.c61 SWAP32(header->sizeofcmds);
73 SWAP32(header->sizeofcmds);
/macosx-10.10/emacs-93/
H A Dunexmacosx.c754 printf ("SizeOfCmds = %d\n", mh.sizeofcmds);
1270 mh.sizeofcmds = curr_header_offset - sizeof (struct mach_header);

Completed in 246 milliseconds

12