Searched refs:cmdsize (Results 1 - 25 of 124) sorted by relevance

12345

/macosx-10.9.5/cctools-845/ld/
H A Ddylibs.c84 unsigned long cmdsize; local
93 cmdsize = sizeof(struct dylib_command) +
95 dl = allocate(cmdsize);
96 memset(dl, '\0', cmdsize);
98 dl->cmdsize = cmdsize;
186 lc = (struct load_command *)((char *)lc + lc->cmdsize);
264 unsigned long cmdsize; local
273 cmdsize = sizeof(struct dylinker_command) +
275 dyld = allocate(cmdsize);
300 unsigned long cmdsize; local
335 unsigned long cmdsize, sizeofcmds; local
392 unsigned long cmdsize, sizeofcmds; local
449 unsigned long cmdsize, sizeofcmds; local
[all...]
H A Dpass2.c390 output_symtab_info.symtab_command.cmdsize);
1083 memcpy(output_addr + header_offset, mfl->fl, mfl->fl->cmdsize);
1084 header_offset += mfl->fl->cmdsize;
1091 merged_dylinker->dyld->cmdsize);
1096 header_offset += merged_dylinker->dyld->cmdsize;
1102 memcpy(output_addr + header_offset, mdl->dl, mdl->dl->cmdsize);
1140 header_offset += mdl->dl->cmdsize;
1147 merged_sub_framework->sub->cmdsize);
1148 header_offset += merged_sub_framework->sub->cmdsize;
1154 merged_sub_umbrellas[i].sub->cmdsize);
[all...]
H A Dlayout.c428 output_symtab_info.symtab_command.cmdsize =
449 output_symtab_info.symtab_command.cmdsize;
691 output_routines_info.routines_command.cmdsize =
982 msg->sg.cmdsize = sizeof(struct segment_command) +
985 sizeofcmds += msg->sg.cmdsize;
992 * object files the 'cmd' and 'cmdsize' fields are already set.
999 sizeofcmds += mfl->fl->cmdsize;
1021 sizeofcmds += merged_sub_framework->sub->cmdsize;
1046 * it's size. The command already has the 'cmd' and 'cmdsize' fields
1050 sizeofcmds += merged_dylinker->dyld->cmdsize;
[all...]
H A Dfvmlibs.c111 lc = (struct load_command *)((char *)lc + lc->cmdsize);
161 lc = (struct load_command *)((char *)lc + lc->cmdsize);
257 print("\tcmdsize %u\n", mfl->fl->cmdsize);
258 if(mfl->fl->fvmlib.name.offset < mfl->fl->cmdsize)
293 print("\t cmdsize %u\n", msg->sg.cmdsize);
/macosx-10.9.5/shell_cmds-175/apply/
H A Dapply.c66 size_t clen, cmdsize, l; local
134 cmdsize = sizeof(EXEC) - 1 + strlen(argv[0])
136 if ((cmd = malloc(cmdsize)) == NULL)
145 offset = snprintf(cmd, cmdsize, EXEC "%s", argv[0]);
146 if ((size_t)offset >= cmdsize)
149 cmdsize -= offset;
151 offset = snprintf(p, cmdsize, " %c%d", magic, i);
152 if ((size_t)offset >= cmdsize)
155 cmdsize -= offset;
165 offset = snprintf(cmd, cmdsize, EXE
[all...]
/macosx-10.9.5/xnu-2422.115.4/EXTERNAL_HEADERS/mach-o/
H A Dloader.h213 * load commands must have as their first two fields cmd and cmdsize. The cmd
215 * has a structure specifically for it. The cmdsize field is the size in bytes
218 * advance to the next load command the cmdsize can be added to the offset or
219 * pointer of the current load command. The cmdsize for 32-bit architectures
229 uint32_t cmdsize; /* total size of command in bytes */ member in struct:load_command
304 * of the string is reflected in the cmdsize field of the load command.
305 * Once again any padded bytes to bring the cmdsize field to a multiple
325 * reflected in cmdsize.
329 uint32_t cmdsize; /* includes sizeof section structs */ member in struct:segment_command
345 * command and their size is reflected in cmdsize
349 uint32_t cmdsize; /* includes sizeof section_64 structs */ member in struct:segment_command_64
621 uint32_t cmdsize; /* includes pathname string */ member in struct:fvmlib_command
651 uint32_t cmdsize; /* includes pathname string */ member in struct:dylib_command
667 uint32_t cmdsize; /* includes umbrella string */ member in struct:sub_framework_command
682 uint32_t cmdsize; /* includes client string */ member in struct:sub_client_command
701 uint32_t cmdsize; /* includes sub_umbrella string */ member in struct:sub_umbrella_command
722 uint32_t cmdsize; /* includes sub_library string */ member in struct:sub_library_command
737 uint32_t cmdsize; /* includes strings */ member in struct:prebound_dylib_command
754 uint32_t cmdsize; /* includes pathname string */ member in struct:dylinker_command
781 uint32_t cmdsize; /* total size of this command */ member in struct:thread_command
798 uint32_t cmdsize; /* total size of this command */ member in struct:routines_command
815 uint32_t cmdsize; /* total size of this command */ member in struct:routines_command_64
834 uint32_t cmdsize; /* sizeof(struct symtab_command) */ member in struct:symtab_command
883 uint32_t cmdsize; /* sizeof(struct dysymtab_command) */ member in struct:dysymtab_command
1089 uint32_t cmdsize; /* sizeof(struct twolevel_hints_command) */ member in struct:twolevel_hints_command
1128 uint32_t cmdsize; /* sizeof(struct prebind_cksum_command) */ member in struct:prebind_cksum_command
1138 uint32_t cmdsize; /* sizeof(struct uuid_command) */ member in struct:uuid_command
1148 uint32_t cmdsize; /* includes string */ member in struct:rpath_command
1160 uint32_t cmdsize; /* sizeof(struct linkedit_data_command) */ member in struct:linkedit_data_command
1171 uint32_t cmdsize; /* sizeof(struct encryption_info_command) */ member in struct:encryption_info_command
1184 uint32_t cmdsize; /* sizeof(struct encryption_info_command_64) */ member in struct:encryption_info_command_64
1200 uint32_t cmdsize; /* sizeof(struct min_version_command) */ member in struct:version_min_command
1215 uint32_t cmdsize; /* sizeof(struct dyld_info_command) */ member in struct:dyld_info_command
1389 uint32_t cmdsize; /* sizeof(struct symseg_command) */ member in struct:symseg_command
1402 uint32_t cmdsize; /* strings that follow this command */ member in struct:ident_command
1413 uint32_t cmdsize; /* includes pathname string */ member in struct:fvmfile_command
1427 uint32_t cmdsize; /* 24 */ member in struct:entry_point_command
1439 uint32_t cmdsize; /* 16 */ member in struct:source_version_command
[all...]
/macosx-10.9.5/cctools-845/include/mach-o/
H A Dloader.h213 * load commands must have as their first two fields cmd and cmdsize. The cmd
215 * has a structure specifically for it. The cmdsize field is the size in bytes
218 * advance to the next load command the cmdsize can be added to the offset or
219 * pointer of the current load command. The cmdsize for 32-bit architectures
229 uint32_t cmdsize; /* total size of command in bytes */ member in struct:load_command
305 * of the string is reflected in the cmdsize field of the load command.
306 * Once again any padded bytes to bring the cmdsize field to a multiple
326 * reflected in cmdsize.
330 uint32_t cmdsize; /* includes sizeof section structs */ member in struct:segment_command
346 * command and their size is reflected in cmdsize
350 uint32_t cmdsize; /* includes sizeof section_64 structs */ member in struct:segment_command_64
622 uint32_t cmdsize; /* includes pathname string */ member in struct:fvmlib_command
652 uint32_t cmdsize; /* includes pathname string */ member in struct:dylib_command
668 uint32_t cmdsize; /* includes umbrella string */ member in struct:sub_framework_command
683 uint32_t cmdsize; /* includes client string */ member in struct:sub_client_command
702 uint32_t cmdsize; /* includes sub_umbrella string */ member in struct:sub_umbrella_command
723 uint32_t cmdsize; /* includes sub_library string */ member in struct:sub_library_command
738 uint32_t cmdsize; /* includes strings */ member in struct:prebound_dylib_command
755 uint32_t cmdsize; /* includes pathname string */ member in struct:dylinker_command
782 uint32_t cmdsize; /* total size of this command */ member in struct:thread_command
799 uint32_t cmdsize; /* total size of this command */ member in struct:routines_command
816 uint32_t cmdsize; /* total size of this command */ member in struct:routines_command_64
835 uint32_t cmdsize; /* sizeof(struct symtab_command) */ member in struct:symtab_command
884 uint32_t cmdsize; /* sizeof(struct dysymtab_command) */ member in struct:dysymtab_command
1090 uint32_t cmdsize; /* sizeof(struct twolevel_hints_command) */ member in struct:twolevel_hints_command
1129 uint32_t cmdsize; /* sizeof(struct prebind_cksum_command) */ member in struct:prebind_cksum_command
1139 uint32_t cmdsize; /* sizeof(struct uuid_command) */ member in struct:uuid_command
1149 uint32_t cmdsize; /* includes string */ member in struct:rpath_command
1161 uint32_t cmdsize; /* sizeof(struct linkedit_data_command) */ member in struct:linkedit_data_command
1172 uint32_t cmdsize; /* sizeof(struct encryption_info_command) */ member in struct:encryption_info_command
1185 uint32_t cmdsize; /* sizeof(struct encryption_info_command_64) */ member in struct:encryption_info_command_64
1201 uint32_t cmdsize; /* sizeof(struct min_version_command) */ member in struct:version_min_command
1216 uint32_t cmdsize; /* sizeof(struct dyld_info_command) */ member in struct:dyld_info_command
1384 uint32_t cmdsize; member in struct:linker_option_command
1401 uint32_t cmdsize; /* sizeof(struct symseg_command) */ member in struct:symseg_command
1414 uint32_t cmdsize; /* strings that follow this command */ member in struct:ident_command
1425 uint32_t cmdsize; /* includes pathname string */ member in struct:fvmfile_command
1439 uint32_t cmdsize; /* 24 */ member in struct:entry_point_command
1451 uint32_t cmdsize; /* 16 */ member in struct:source_version_command
[all...]
/macosx-10.9.5/cctools-845/libstuff/
H A Dswap_headers.c129 if(lc->cmdsize % cmd_multiple != 0){
131 "(cmdsize not a multiple of %u)", i, cmd_multiple);
135 if((char *)lc + lc->cmdsize >
143 if(lc->cmdsize == 0){
145 "(cmdsize is zero)", i);
151 if(sg->cmdsize != sizeof(struct segment_command) +
154 "(inconsistent cmdsize in LC_SEGMENT command %lu for "
162 if(sg64->cmdsize != sizeof(struct segment_command_64) +
165 "(inconsistent cmdsize in LC_SEGMENT_64 command %lu "
173 if(st->cmdsize !
[all...]
H A Dofile.c2446 lc = (struct load_command *)((char *)lc + lc->cmdsize);
2537 lc = (struct load_command *)((char *)lc + lc->cmdsize);
2639 lc = (struct load_command *)((char *)lc + lc->cmdsize);
3483 if(l.cmdsize % load_command_multiple != 0){
3492 l.cmdsize % 4 != 0){
3494 "cmdsize not a multiple of %u)", i,
3500 big_load_end += l.cmdsize;
3507 if(l.cmdsize == 0){
3508 Mach_O_error(ofile, "malformed object (load command %u cmdsize"
3514 if(l.cmdsize < sizeo
[all...]
/macosx-10.9.5/llvmCore-3425.0.33/include/llvm/Support/
H A DMachO.h309 uint32_t cmdsize; member in struct:llvm::MachO::load_command
314 uint32_t cmdsize; member in struct:llvm::MachO::segment_command
328 uint32_t cmdsize; member in struct:llvm::MachO::segment_command_64
377 uint32_t cmdsize; member in struct:llvm::MachO::fvmlib_command
390 uint32_t cmdsize; member in struct:llvm::MachO::dylib_command
396 uint32_t cmdsize; member in struct:llvm::MachO::sub_framework_command
402 uint32_t cmdsize; member in struct:llvm::MachO::sub_client_command
408 uint32_t cmdsize; member in struct:llvm::MachO::sub_umbrella_command
414 uint32_t cmdsize; member in struct:llvm::MachO::sub_library_command
420 uint32_t cmdsize; member in struct:llvm::MachO::prebound_dylib_command
428 uint32_t cmdsize; member in struct:llvm::MachO::dylinker_command
434 uint32_t cmdsize; member in struct:llvm::MachO::thread_command
439 uint32_t cmdsize; member in struct:llvm::MachO::routines_command
452 uint32_t cmdsize; member in struct:llvm::MachO::routines_command_64
465 uint32_t cmdsize; member in struct:llvm::MachO::symtab_command
474 uint32_t cmdsize; member in struct:llvm::MachO::dysymtab_command
540 uint32_t cmdsize; member in struct:llvm::MachO::twolevel_hints_command
552 uint32_t cmdsize; member in struct:llvm::MachO::prebind_cksum_command
558 uint32_t cmdsize; member in struct:llvm::MachO::uuid_command
564 uint32_t cmdsize; member in struct:llvm::MachO::rpath_command
570 uint32_t cmdsize; member in struct:llvm::MachO::linkedit_data_command
577 uint32_t cmdsize; member in struct:llvm::MachO::encryption_info_command
585 uint32_t cmdsize; member in struct:llvm::MachO::version_min_command
592 uint32_t cmdsize; member in struct:llvm::MachO::dyld_info_command
607 uint32_t cmdsize; member in struct:llvm::MachO::symseg_command
614 uint32_t cmdsize; member in struct:llvm::MachO::ident_command
619 uint32_t cmdsize; member in struct:llvm::MachO::fvmfile_command
[all...]
/macosx-10.9.5/cctools-845/libmacho/
H A Dswap.c90 lc->cmdsize = OSSwapInt32(lc->cmdsize);
100 sg->cmdsize = OSSwapInt32(sg->cmdsize);
118 sg->cmdsize = OSSwapInt32(sg->cmdsize);
182 st->cmdsize = OSSwapInt32(st->cmdsize);
195 dyst->cmdsize = OSSwapInt32(dyst->cmdsize);
[all...]
H A Dgetsegbyname.c88 sgp = (struct segment_command *)((char *)sgp + sgp->cmdsize);
115 sgp = (struct segment_command_64 *)((char *)sgp + sgp->cmdsize);
H A Dgetsecbyname.c85 sgp = (struct segment_command *)((char *)sgp + sgp->cmdsize);
123 sgp = (struct segment_command_64 *)((char *)sgp + sgp->cmdsize);
182 sgp = (struct segment_command *)((char *)sgp + sgp->cmdsize);
185 (fSwap ? OSSwapInt32(sgp->cmdsize) : sgp->cmdsize));
303 sgp = (struct segment_command *)((char *)sgp + sgp->cmdsize);
338 sgp = (struct segment_command *)((char *)sgp + sgp->cmdsize);
389 sgp = (struct segment_command_64 *)((char *)sgp + sgp->cmdsize);
424 sgp = (struct segment_command_64 *)((char *)sgp + sgp->cmdsize);
H A Dget_end.c86 sgp = (struct segment_command *)((char *)sgp + sgp->cmdsize);
104 sgp = (struct segment_command_64 *)((char *)sgp + sgp->cmdsize);
/macosx-10.9.5/IOKitUser-907.100.13/kext.subproj/
H A Dmacho_util.c274 uint32_t cmd_size = CondSwapInt32(swap, lc_cmd->cmdsize);
351 uint32_t cmd_size = CondSwapInt32(swap, lc_cmd->cmdsize);
386 if (((void *)load_command + load_command->cmdsize) > file_end) {
494 cmd_size = CondSwapInt32(swap, seg_cmd->cmdsize);
530 cmd_size = CondSwapInt32(swap, seg_cmd->cmdsize);
580 if (((void *)load_command + load_command->cmdsize) > file_end) {
674 cmd_size = CondSwapInt32(swap, seek_lc->cmdsize);
742 u_int cmdsize = 0; local
754 cmdsize = OSSwapInt32(lc->cmdsize);
781 u_int cmdsize = 0; local
1043 uint32_t ncmds, cmdsize; local
1128 uint32_t ncmds, cmdsize; local
[all...]
/macosx-10.9.5/xnu-2422.115.4/libkern/
H A Dkernel_mach_header.c66 sgp = (kernel_segment_command_t *)((uintptr_t)sgp + sgp->cmdsize);
86 lcp = (struct load_command *)((uintptr_t)lcp + lcp->cmdsize);
201 sgp = (kernel_segment_command_t *)((uintptr_t)sgp + sgp->cmdsize);
223 sgp = (kernel_segment_command_t *)((uintptr_t)sgp + sgp->cmdsize);
247 sgp = (kernel_segment_command_t *)((uintptr_t)sgp + sgp->cmdsize);
268 sgp = (kernel_segment_command_t *)((uintptr_t)sgp + sgp->cmdsize);
273 sgp = (kernel_segment_command_t *)((uintptr_t)sgp + sgp->cmdsize);
279 sgp = (kernel_segment_command_t *)((uintptr_t)sgp + sgp->cmdsize);
/macosx-10.9.5/dyld-239.4/launch-cache/
H A DMachOFileAbstraction.hpp37 uint32_t cmdsize; /* sizeof(struct uuid_command) */ member in struct:uuid_command
122 uint32_t cmdsize() const INLINE { return E::get32(command.cmdsize); }
123 void set_cmdsize(uint32_t value) INLINE { E::set32(command.cmdsize, value); }
146 uint32_t cmdsize() const INLINE { return E::get32(segment.fields.cmdsize); }
147 void set_cmdsize(uint32_t value) INLINE { E::set32(segment.fields.cmdsize, value); }
246 uint32_t cmdsize() const INLINE { return E::get32(fields.cmdsize); }
247 void set_cmdsize(uint32_t value) INLINE { E::set32(fields.cmdsize, valu
[all...]
/macosx-10.9.5/xar-202/xar/lib/
H A Dmacho.h50 uint32_t cmdsize; member in struct:lc
/macosx-10.9.5/xnu-2422.115.4/libkern/kxld/
H A Dkxld_util.c283 u_int cmdsize = 0; local
325 for(i = 0; i < mach_hdr->ncmds; ++i, offset += cmdsize) {
330 cmdsize = load_hdr->cmdsize;
335 cmdsize = OSSwapInt32(load_hdr->cmdsize);
340 require_action(size >= offset + cmdsize, finish,
454 u_int cmdsize = 0; local
496 for(i = 0; i < mach_hdr->ncmds; ++i, offset += cmdsize) {
500 cmdsize
[all...]
/macosx-10.9.5/emacs-92/emacs/src/
H A Dunexnext.c95 *tmp = malloc(command->cmdsize);
96 bcopy(command, *tmp, command->cmdsize);
134 size = command.cmdsize - sizeof(struct load_command);
139 buf = malloc(command.cmdsize);
141 buf->cmdsize = command.cmdsize;
351 the_commands[i]->cmdsize) !=
352 the_commands[i]->cmdsize) {
H A Dunexmacosx.c702 printf ("%8d", lc->cmdsize);
764 lca[i] = (struct load_command *) malloc (lc.cmdsize);
766 if (!unexec_read (lca[i] + 1, lc.cmdsize - sizeof (struct load_command)))
794 printf ("# cmd cmdsize name address size\n");
831 if (!unexec_write (curr_header_offset, lc, lc->cmdsize))
834 curr_header_offset += lc->cmdsize;
959 curr_header_offset += lc->cmdsize;
971 sc.cmdsize = sizeof (struct segment_command);
990 if (!unexec_write (curr_header_offset, &sc, sc.cmdsize))
992 curr_header_offset += sc.cmdsize;
[all...]
/macosx-10.9.5/emacs-92/
H A Dunexmacosx.c702 printf ("%8d", lc->cmdsize);
764 lca[i] = (struct load_command *) malloc (lc.cmdsize);
766 if (!unexec_read (lca[i] + 1, lc.cmdsize - sizeof (struct load_command)))
794 printf ("# cmd cmdsize name address size\n");
831 if (!unexec_write (curr_header_offset, lc, lc->cmdsize))
834 curr_header_offset += lc->cmdsize;
959 curr_header_offset += lc->cmdsize;
971 sc.cmdsize = sizeof (struct segment_command);
990 if (!unexec_write (curr_header_offset, &sc, sc.cmdsize))
992 curr_header_offset += sc.cmdsize;
[all...]
/macosx-10.9.5/Libc-997.90.3/gen/
H A Dnlist.c264 if (lcp->cmdsize % sizeof(uint32_t) != 0 ||
265 lcp->cmdsize <= 0 ||
266 (char *)lcp + lcp->cmdsize >
272 if (lcp->cmdsize !=
281 ((char *)lcp + lcp->cmdsize);
/macosx-10.9.5/WebKit2-7537.78.2/UIProcess/Launcher/mac/
H A DDynamicLinkerEnvironmentExtractor.mm100 if (length < loadCommand.cmdsize)
108 if (loadCommand.cmdsize < environmentCommand.name.offset)
111 size_t environmentStringLength = loadCommand.cmdsize - environmentCommand.name.offset;
120 return loadCommand.cmdsize;
/macosx-10.9.5/cctools-845/misc/
H A Dinstall_name_tool.c688 new_sizeofcmds += (new_size - dl_id1->cmdsize);
704 new_sizeofcmds += (new_size - dl_load1->cmdsize);
715 linked_modules_size = pbdylib1->cmdsize - (
722 new_sizeofcmds += (new_size - pbdylib1->cmdsize);
787 new_sizeofcmds += (new_size - rpath1->cmdsize);
794 new_sizeofcmds -= rpath1->cmdsize;
800 lc1 = (struct load_command *)((char *)lc1 + lc1->cmdsize);
856 dl_id2->cmdsize = sizeof(struct dylib_command) +
863 memcpy(lc2, lc1, lc1->cmdsize);
878 dl_load2->cmdsize
[all...]

Completed in 399 milliseconds

12345