/macosx-10.5.8/xnu-1228.15.4/bsd/netinet6/ |
H A D | mld6.c | 395 struct mbuf *mh, *md; local 416 MGETHDR(mh, M_DONTWAIT, MT_HEADER); 417 if (mh == NULL) 421 m_free(mh); 424 mh->m_next = md; 426 mh->m_pkthdr.rcvif = NULL; 432 mh->m_pkthdr.len = sizeof(struct ip6_hdr) + sizeof(struct mld6_hdr); 433 mh->m_len = sizeof(struct ip6_hdr); 434 MH_ALIGN(mh, sizeof(struct ip6_hdr)); 437 ip6 = mtod(mh, struc [all...] |
H A D | ipsec.c | 3546 struct mbuf *mh; local 3559 MGETHDR(mh, M_DONTWAIT, MT_HEADER); /* MAC-OK */ 3560 if (!mh) { 3564 M_COPY_PKTHDR(mh, m); 3565 MH_ALIGN(mh, hlen); 3570 mh->m_next = m; 3571 m = mh; 3588 struct mbuf *mh; local 3597 MGETHDR(mh, M_DONTWAIT, MT_HEADER); /* MAC-OK */ 3598 if (!mh) { [all...] |
H A D | ip6_output.c | 2716 struct mbuf *mh; local 2721 MGETHDR(mh, M_DONTWAIT, MT_HEADER); /* MAC-OK */ 2722 if (mh == 0) { 2726 M_COPY_PKTHDR(mh, m); 2727 MH_ALIGN(mh, sizeof(*ip6)); 2731 mh->m_next = m; 2732 m = mh;
|
/macosx-10.5.8/xnu-1228.15.4/osfmk/kern/ |
H A D | symbols.c | 105 * If mh has a LINKEDIT segment, an object file loaded in the normal 110 syms_nameforaddr1(const struct mach_header *mh, int isload, argument 121 p = (const struct segment_command *) (&mh[1]); 123 for (i = 0; i < mh->ncmds; i++) { 158 syms = (const struct nlist *) (((const char *) mh) + sc->symoff); 159 strings = ((const char *) mh) + sc->stroff;
|
/macosx-10.5.8/xnu-1228.15.4/bsd/kern/ |
H A D | kern_core.c | 214 struct mach_header *mh = NULL; /* protected by is_64 */ local 315 mh = (struct mach_header *)header; 316 mh->magic = MH_MAGIC; 317 mh->cputype = cpu_type(); 318 mh->cpusubtype = cpu_subtype(); 319 mh->filetype = MH_CORE; 320 mh->ncmds = segment_count + thread_count; 321 mh->sizeofcmds = command_size; 453 mh->ncmds -= segment_count; 454 mh [all...] |
/macosx-10.5.8/xnu-1228.15.4/osfmk/kdp/ml/i386/ |
H A D | kdp_vm.c | 299 struct mach_header *mh; local 349 mh = (struct mach_header *) header; 350 mh->magic = MH_MAGIC; 351 mh->cputype = cpu_type(); 352 mh->cpusubtype = cpu_subtype(); 353 mh->filetype = MH_CORE; 354 mh->ncmds = segment_count + thread_count + mach_section_count; 355 mh->sizeofcmds = command_size; 356 mh->flags = 0; 380 if ((panic_error = kdp_send_crashdump_data (KDP_DATA, NULL, sizeof(struct mach_header), (caddr_t) mh) < [all...] |
/macosx-10.5.8/xnu-1228.15.4/osfmk/kdp/ml/ppc/ |
H A D | kdp_vm.c | 323 struct mach_header *mh; local 372 mh = (struct mach_header *) header; 373 mh->magic = MH_MAGIC; 374 mh->cputype = cpu_type(); 375 mh->cpusubtype = cpu_subtype(); /* XXX incorrect; should match kernel */ 376 mh->filetype = MH_CORE; 377 mh->ncmds = segment_count + thread_count + mach_section_count; 378 mh->sizeofcmds = command_size; 379 mh->flags = 0; 403 if ((panic_error = kdp_send_crashdump_data(KDP_DATA, NULL, sizeof(struct mach_header), (caddr_t) mh) < [all...] |
/macosx-10.5.8/xnu-1228.15.4/bsd/dev/ppc/ |
H A D | fbt_ppc.c | 326 struct mach_header *mh; local 339 mh = (struct mach_header *)(ctl->address); 356 if (mh->magic != MH_MAGIC) 359 cmd = (struct load_command *) &mh[1]; 360 for (i = 0; i < mh->ncmds; i++) {
|
/macosx-10.5.8/xnu-1228.15.4/bsd/dev/i386/ |
H A D | fbt_x86.c | 396 struct mach_header *mh; local 409 mh = (struct mach_header *)(ctl->address); 426 if (mh->magic != MH_MAGIC) 429 cmd = (struct load_command *) &mh[1]; 430 for (i = 0; i < mh->ncmds; i++) {
|
/macosx-10.5.8/xnu-1228.15.4/bsd/dev/dtrace/ |
H A D | sdt.c | 543 struct mach_header *mh; local 558 mh = &_mh_execute_header; 559 cmd = (struct load_command *) &mh[1]; 560 for (i = 0; i < mh->ncmds; i++) {
|
/macosx-10.5.8/xnu-1228.15.4/libsa/ |
H A D | kld_patch.c | 675 kld_macho_swap(struct mach_header * mh) argument 682 if (MH_CIGAM != mh->magic) 685 swap_mach_header(mh, hostOrder); 687 ncmds = mh->ncmds; 688 seg = (struct segment_command *)(mh + 1); 695 swap_nlist((struct nlist *) (((vm_offset_t) mh) + ((struct symtab_command *) seg)->symoff), 709 swap_relocation_info((struct relocation_info *) (((vm_offset_t) mh) + section->reloff), 719 kld_macho_unswap(struct mach_header * mh, Boolean didSwap, int symbols) argument 734 ncmds = mh->ncmds; 735 seg = (struct segment_command *)(mh [all...] |
/macosx-10.5.8/xnu-1228.15.4/osfmk/i386/AT386/ |
H A D | model_dep.c | 838 panic_print_macho_symbol_name(struct mach_header *mh, vm_address_t search) argument 848 if (mh->magic != MH_MAGIC) { 853 cmd = (struct load_command *) &mh[1]; 854 for (i = 0; i < mh->ncmds; i++) { 879 vm_address_t slide = ((vm_address_t)mh) - orig_ts->vmaddr;
|
/macosx-10.5.8/xnu-1228.15.4/bsd/netkey/ |
H A D | key.c | 7586 struct sadb_msghdr mh; local 7665 error = key_align(m, &mh); 7674 msg = mh.msg; 7735 if (mh.ext[SADB_EXT_ADDRESS_SRC] != NULL 7736 && mh.ext[SADB_EXT_ADDRESS_DST] != NULL) { 7740 src0 = (struct sadb_address *)(mh.ext[SADB_EXT_ADDRESS_SRC]); 7741 dst0 = (struct sadb_address *)(mh.ext[SADB_EXT_ADDRESS_DST]); 7828 return (*key_typesw[msg->sadb_msg_type])(so, m, &mh);
|