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

1234

/macosx-10.10.1/shell_cmds-179/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.10.1/xnu-2782.1.97/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.10.1/llvmCore-3425.0.34/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.10.1/IOKitUser-1050.1.21/kext.subproj/
H A Dmacho_util.c284 uint32_t cmd_size = CondSwapInt32(swap, lc_cmd->cmdsize);
361 uint32_t cmd_size = CondSwapInt32(swap, lc_cmd->cmdsize);
396 if (((void *)load_command + load_command->cmdsize) > file_end) {
504 cmd_size = CondSwapInt32(swap, seg_cmd->cmdsize);
540 cmd_size = CondSwapInt32(swap, seg_cmd->cmdsize);
590 if (((void *)load_command + load_command->cmdsize) > file_end) {
684 cmd_size = CondSwapInt32(swap, seek_lc->cmdsize);
752 u_int cmdsize = 0; local
764 cmdsize = OSSwapInt32(lc->cmdsize);
791 u_int cmdsize = 0; local
1053 uint32_t ncmds, cmdsize; local
1138 uint32_t ncmds, cmdsize; local
[all...]
/macosx-10.10.1/xnu-2782.1.97/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.10.1/dyld-353.2.1/launch-cache/
H A DMachOFileAbstraction.hpp37 uint32_t cmdsize; /* sizeof(struct uuid_command) */ member in struct:uuid_command
134 uint32_t cmdsize() const INLINE { return E::get32(command.cmdsize); }
135 void set_cmdsize(uint32_t value) INLINE { E::set32(command.cmdsize, value); }
158 uint32_t cmdsize() const INLINE { return E::get32(segment.fields.cmdsize); }
159 void set_cmdsize(uint32_t value) INLINE { E::set32(segment.fields.cmdsize, value); }
258 uint32_t cmdsize() const INLINE { return E::get32(fields.cmdsize); }
259 void set_cmdsize(uint32_t value) INLINE { E::set32(fields.cmdsize, valu
[all...]
/macosx-10.10.1/xar-254/xar/lib/
H A Dmacho.h50 uint32_t cmdsize; member in struct:lc
H A Dmacho.c276 context->me[context->curme].lc[context->me[context->curme].curlc].cmdsize = xar_swap32(lc->cmdsize);
281 context->me[context->curme].nextlc += context->me[context->curme].lc[context->me[context->curme].curlc].cmdsize;
309 if( inlen >= (context->me[context->curme].lc[context->me[context->curme].curlc].cmdsize-8) ) {
311 uint32_t cmdsize = context->me[context->curme].lc[context->me[context->curme].curlc].cmdsize; local
319 lib = calloc(1,(cmdsize - offset)+1);
320 memcpy(lib, ((char *)in)+(offset - 8), cmdsize - offset);
327 consumed = cmdsize-8;
/macosx-10.10.1/xnu-2782.1.97/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...]
H A Dkxld_srcversion.c85 srcversionhdr->cmdsize = (uint32_t) sizeof(*srcversionhdr);
H A Dkxld_uuid.c85 uuidhdr->cmdsize = (uint32_t) sizeof(*uuidhdr);
H A Dkxld_versionmin.c103 versionminhdr->cmdsize = (uint32_t) sizeof(*versionminhdr);
/macosx-10.10.1/emacs-93/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.c706 printf ("%8d", lc->cmdsize);
768 lca[i] = (struct load_command *) malloc (lc.cmdsize);
770 if (!unexec_read (lca[i] + 1, lc.cmdsize - sizeof (struct load_command)))
798 printf ("# cmd cmdsize name address size\n");
835 if (!unexec_write (curr_header_offset, lc, lc->cmdsize))
838 curr_header_offset += lc->cmdsize;
963 curr_header_offset += lc->cmdsize;
975 sc.cmdsize = sizeof (struct segment_command);
994 if (!unexec_write (curr_header_offset, &sc, sc.cmdsize))
996 curr_header_offset += sc.cmdsize;
[all...]
/macosx-10.10.1/emacs-93/
H A Dunexmacosx.c706 printf ("%8d", lc->cmdsize);
768 lca[i] = (struct load_command *) malloc (lc.cmdsize);
770 if (!unexec_read (lca[i] + 1, lc.cmdsize - sizeof (struct load_command)))
798 printf ("# cmd cmdsize name address size\n");
835 if (!unexec_write (curr_header_offset, lc, lc->cmdsize))
838 curr_header_offset += lc->cmdsize;
963 curr_header_offset += lc->cmdsize;
975 sc.cmdsize = sizeof (struct segment_command);
994 if (!unexec_write (curr_header_offset, &sc, sc.cmdsize))
996 curr_header_offset += sc.cmdsize;
[all...]
/macosx-10.10.1/Libc-1044.1.2/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.10.1/WebKit2-7600.1.25/UIProcess/Launcher/mac/
H A DDynamicLinkerEnvironmentExtractor.mm99 if (length < loadCommand.cmdsize)
107 if (loadCommand.cmdsize < environmentCommand.name.offset)
110 size_t environmentStringLength = loadCommand.cmdsize - environmentCommand.name.offset;
119 return loadCommand.cmdsize;
/macosx-10.10.1/Csu-85/
H A Dlazy_dylib_loader.c112 cmd = (const struct load_command*)(((char*)cmd)+cmd->cmdsize);
152 cmd = (const struct load_command*)(((char*)cmd)+cmd->cmdsize);
176 cmd = (const struct load_command*)(((char*)cmd)+cmd->cmdsize);
226 cmd = (const struct load_command*)(((char*)cmd)+cmd->cmdsize);
/macosx-10.10.1/tcsh-65/tcsh/win32/
H A Dsupport.c262 unsigned int cmdsize,cmdlen; local
283 cmdsize = MAX_PATH<<2;
297 cmdsize--;
374 &cmdsize))
421 (void)StringCbCat(cmdstr,cmdsize,".");
782 unsigned int *clen, char **cend, unsigned int *cmdsize) {
830 if (arglen + cmdlen +4 > *cmdsize) { // +4 is if we have to quote
833 tempptr = heap_realloc(*poriginalPtr,*cmdsize<<1);
845 *cmdsize <<=1;
781 concat_args_and_quote(char **args, char **poriginalPtr,char **cstr, unsigned int *clen, char **cend, unsigned int *cmdsize) argument
H A Dntfunc.c152 DWORD cmdsize; local
165 cmdsize = 512;
166 cmdstr = heap_alloc(cmdsize);
220 if (j + cmdlen > cmdsize) {
222 cmdstr = heap_realloc(cmdstr, max(cmdsize << 1, j+cmdlen) );
229 cmdsize <<= 1;
654 unsigned int cmdsize,cmdlen; local
695 cmdsize = MAX_PATH<<2;
706 if(!concat_args_and_quote(argv,&originalPtr,&cmdstr,&cmdlen,&cmdend,&cmdsize))
893 unsigned int cmdsize,cmdle local
[all...]
/macosx-10.10.1/xnu-2782.1.97/bsd/kern/
H A Dmach_loader.c247 scp->cmdsize = scp32->cmdsize;
647 offset += lcp->cmdsize;
658 lcp->cmdsize < sizeof(struct load_command) ||
964 if (lcp->cmdsize < segment_command_size)
966 total_section_size = lcp->cmdsize - segment_command_size;
1144 if ((uulp->cmdsize < sizeof(struct uuid_command)) ||
1165 if (epc->cmdsize < sizeof(*epc))
1223 if (tcp->cmdsize < sizeof(*tcp))
1236 tcp->cmdsize
[all...]
/macosx-10.10.1/objc4-646/runtime/
H A Dobjc-file.mm76 sgp = (const segmentType *)((char *)sgp + sgp->cmdsize);
/macosx-10.10.1/cxxfilt-11/cxxfilt/bfd/
H A Dmach-o.h401 unsigned long cmdsize; /* Includes pathname string. */ member in struct:bfd_mach_o_dylinker_command
411 unsigned long cmdsize; /* Includes pathname string. */ member in struct:bfd_mach_o_dylib_command
424 unsigned long cmdsize; /* Includes strings. */ member in struct:bfd_mach_o_prebound_dylib_command
/macosx-10.10.1/objc4-646/
H A Dmarkgc.c238 * of the string is reflected in the cmdsize field of the load command.
239 * Once again any padded bytes to bring the cmdsize field to a multiple
265 uint32_t cmdsize; /* includes pathname string */
274 size_t count = dylibCmd->cmdsize - sizeof(struct dylib_command);
284 lc->cmdsize = OSSwapInt32(lc->cmdsize);
306 return (struct load_command *)((void *)lc + lc->cmdsize);
/macosx-10.10.1/dtrace-147/libelf/
H A Dbegin.c81 SWAP32(segment->cmdsize);
96 SWAP32(segment->cmdsize);
138 SWAP32(symtab->cmdsize);
359 int cmd = thisLC->cmd, cmdsize = thisLC->cmdsize; local
363 SWAP32(cmdsize);
388 thisLC = (struct load_command *) ((caddr_t) thisLC + cmdsize);
465 int cmd = thisLC->cmd, cmdsize = thisLC->cmdsize; local
469 SWAP32(cmdsize);
[all...]

Completed in 362 milliseconds

1234