/titanic_44/usr/src/cmd/sgs/rtld/common/ |
H A D | setup.c | 207 mmapobj_result_t *mpp; in setup() local 419 if ((mpp = calloc(2, sizeof (mmapobj_result_t))) == NULL) in setup() 421 mpp[0].mr_addr = (caddr_t)M_PTRUNC(ld_base); in setup() 422 mpp[0].mr_msize = (caddr_t)&_etext - mpp[0].mr_addr; in setup() 423 mpp[0].mr_fsize = mpp[0].mr_msize; in setup() 424 mpp[0].mr_prot = (PROT_READ | PROT_EXEC); in setup() 426 mpp[1].mr_addr = (caddr_t)M_PTRUNC((uintptr_t)&r_debug); in setup() 427 mpp[1].mr_msize = (caddr_t)&_end - mpp[1].mr_addr; in setup() 428 mpp[1].mr_fsize = (caddr_t)&_edata - mpp[1].mr_addr; in setup() 429 mpp[1].mr_prot = (PROT_READ | PROT_WRITE | PROT_EXEC); in setup() [all …]
|
H A D | _inline_gen.h | 35 mmapobj_result_t *mpp = MMAPS(lmp); in find_segment() local 44 for (mpp += (mnum - 1); mnum; mnum--, mpp--) { in find_segment() 45 if ((roffset >= (mpp->mr_addr + mpp->mr_offset)) && in find_segment() 46 (roffset < (mpp->mr_addr + mpp->mr_msize))) in find_segment() 47 return (mpp); in find_segment()
|
H A D | _inline_reloc.h | 41 mmapobj_result_t *mpp; in _elf_reloc_relative() local 52 if ((mpp = find_segment((caddr_t)roffset, lmp)) == NULL) in _elf_reloc_relative() 59 if (((mpp->mr_prot & PROT_WRITE) == 0) && textrel && in _elf_reloc_relative() 60 ((set_prot(lmp, mpp, 1) == 0) || in _elf_reloc_relative() 61 (aplist_append(textrel, mpp, AL_CNT_TEXTREL) == NULL))) in _elf_reloc_relative()
|
H A D | object.c | 159 mmapobj_result_t *hmpp, mmapobj_result_t *mpp, uint_t mnum) in elf_obj_file() argument 177 md.md_mpp = mpp; in elf_obj_file() 239 mmapobj_result_t *mpp, *hmpp; in elf_obj_fini() local 313 if ((mpp = hmpp = calloc(ehdr->e_phnum, in elf_obj_fini() 320 mpp[mnum].mr_addr = (caddr_t)((uintptr_t)phdr[phnum].p_vaddr + in elf_obj_fini() 322 mpp[mnum].mr_msize = phdr[phnum].p_memsz; in elf_obj_fini() 323 mpp[mnum].mr_fsize = phdr[phnum].p_filesz; in elf_obj_fini() 324 mpp[mnum].mr_prot = (PROT_READ | PROT_WRITE | PROT_EXEC); in elf_obj_fini() 339 PADIMLEN(nlmp) = mpp->mr_addr + mpp->mr_msize - hmpp->mr_addr; in elf_obj_fini()
|
H A D | move.c | 98 mmapobj_result_t *mpp; in move_data() local 117 if ((mpp = find_segment((caddr_t)taddr, lmp)) == NULL) { in move_data() 121 if (((mpp->mr_prot & PROT_WRITE) == 0) && in move_data() 122 ((set_prot(lmp, mpp, 1) == 0) || in move_data() 123 (aplist_append(textrel, mpp, AL_CNT_TEXTREL) == NULL))) in move_data()
|
H A D | analyze.c | 241 mmapobj_result_t *mpp; in are_bits_zero() local 252 if ((mpp = find_segment(daddr, dlmp)) == NULL) in are_bits_zero() 258 if (daddr < (mpp->mr_addr + mpp->mr_offset + mpp->mr_fsize)) in are_bits_zero() 323 mmapobj_result_t *mpp; in relocate_so() local 326 for (APLIST_TRAVERSE(textrel, idx, mpp)) in relocate_so() 327 (void) set_prot(lmp, mpp, 0); in relocate_so() 1620 unmap_obj(mmapobj_result_t *mpp, uint_t mapnum) in unmap_obj() argument 1626 (void) munmap((void *)(uintptr_t)mpp[num].mr_addr, in unmap_obj() 1627 mpp[num].mr_msize); in unmap_obj() 1641 mmapobj_result_t *mpp; in map_obj() local [all …]
|
H A D | a.out.c | 725 aout_get_mmap(Lm_list *lml, mmapobj_result_t *mpp) in aout_get_mmap() argument 756 mpp->mr_addr = maps->pr_vaddr; in aout_get_mmap() 757 mpp->mr_fsize = mpp->mr_msize = maps->pr_size; in aout_get_mmap() 758 mpp->mr_prot = (PROT_READ | PROT_EXEC); in aout_get_mmap() 760 mpp++, maps++; in aout_get_mmap() 762 mpp->mr_addr = maps->pr_vaddr; in aout_get_mmap() 763 mpp->mr_fsize = mpp->mr_msize = maps->pr_size; in aout_get_mmap() 764 mpp->mr_prot = (PROT_READ | PROT_WRITE | PROT_EXEC); in aout_get_mmap()
|
/titanic_44/usr/src/uts/common/io/softmac/ |
H A D | softmac_pkt.c | 101 t_uscalar_t ack, mblk_t **mpp) in softmac_output() argument 153 if (mpp != NULL) in softmac_output() 154 *mpp = mp; in softmac_output() 163 softmac_ioctl_tx(softmac_lower_t *slp, mblk_t *mp, mblk_t **mpp) in softmac_ioctl_tx() argument 185 ASSERT(mpp != NULL && mp != NULL); in softmac_ioctl_tx() 186 *mpp = mp; in softmac_ioctl_tx() 192 softmac_mexchange_error_ack(mblk_t **mpp, t_uscalar_t error_primitive, in softmac_mexchange_error_ack() argument 197 if ((*mpp = mexchange(NULL, *mpp, sizeof (dl_error_ack_t), M_PCPROTO, in softmac_mexchange_error_ack() 201 dlp = (union DL_primitives *)(*mpp)->b_rptr; in softmac_mexchange_error_ack() 210 softmac_proto_tx(softmac_lower_t *slp, mblk_t *mp, mblk_t **mpp) in softmac_proto_tx() argument [all …]
|
/titanic_44/usr/src/lib/libnsl/nis/gen/ |
H A D | nis_sec_mechs.c | 121 list_free_all(void (*free_ent)(), void **mpp) in list_free_all() argument 123 void **tpp = mpp; in list_free_all() 128 free(mpp); in list_free_all() 148 list_copy(void *(*cp_ent)(), void **mpp) in list_copy() argument 155 if (!mpp) in list_copy() 158 for (tpp = mpp; *tpp; tpp++) in list_copy() 161 diff = tpp - mpp; in list_copy() 163 if (!(tpp_h = calloc(diff + 1, sizeof (*mpp)))) in list_copy() 166 for (tpp = tpp_h; *mpp; mpp++) { in list_copy() 167 if (!(tp = (*cp_ent)(*mpp))) { in list_copy() [all …]
|
/titanic_44/usr/src/cmd/sgs/rtld/amd64/ |
H A D | dlamd64getunwind.c | 75 mmapobj_result_t *mpp; in getunwind_core() local 80 if ((mpp = find_segment(pc, lmp)) == NULL) in getunwind_core() 84 unwindinfo->dlui_segstart = mpp->mr_addr; in getunwind_core() 85 unwindinfo->dlui_segend = mpp->mr_addr + mpp->mr_msize; in getunwind_core() 87 if (PTUNWIND(lmp) && (mpp->mr_addr)) { in getunwind_core() 101 } else if (mpp->mr_addr) in getunwind_core()
|
H A D | amd64_elf.c | 405 mmapobj_result_t *mpp; in elf_reloc() local 410 if ((((mpp = in elf_reloc() 412 ((mpp->mr_prot & PROT_WRITE) == 0)) && in elf_reloc() 413 ((set_prot(lmp, mpp, 1) == 0) || in elf_reloc() 414 (aplist_append(textrel, mpp, AL_CNT_TEXTREL) == NULL))) in elf_reloc() 519 mmapobj_result_t *mpp; in elf_reloc() local 595 if ((mpp = find_segment((caddr_t)roffset, lmp)) == NULL) { in elf_reloc() 846 if (((mpp->mr_prot & PROT_WRITE) == 0) && in elf_reloc() 847 ((set_prot(lmp, mpp, 1) == 0) || in elf_reloc() 848 (aplist_append(textrel, mpp, AL_CNT_TEXTREL) == NULL))) { in elf_reloc()
|
/titanic_44/usr/src/uts/common/ipp/dlcosmk/ |
H A D | dlcosmk.c | 53 dlcosmk_process(mblk_t **mpp, dlcosmk_data_t *dlcosmk_data, uint32_t ill_index, in dlcosmk_process() argument 59 ASSERT((mpp != NULL) && (*mpp != NULL)); in dlcosmk_process() 60 mp = *mpp; in dlcosmk_process()
|
/titanic_44/usr/src/uts/common/fs/smbclnt/netsmb/ |
H A D | smb_trantcp.c | 94 nb_getmsg_mlen(struct nbpcb *nbp, mblk_t **mpp, size_t mlen) in nb_getmsg_mlen() argument 110 dlen = msgdsize(*mpp); /* *mpp==null is OK */ in nb_getmsg_mlen() 212 if (*mpp == NULL) { in nb_getmsg_mlen() 213 *mpp = tm; in nb_getmsg_mlen() 216 for (im = *mpp; im->b_cont; im = im->b_cont) in nb_getmsg_mlen() 350 nbssn_recv(struct nbpcb *nbp, mblk_t **mpp, int *lenp, in nbssn_recv() argument 363 if (mpp) { in nbssn_recv() 364 if (*mpp) { in nbssn_recv() 367 *mpp = NULL; in nbssn_recv() 473 if (mpp) in nbssn_recv() [all …]
|
/titanic_44/usr/src/cmd/ndmpd/ndmp/ |
H A D | ndmpd_mark.c | 257 mark_param_t *mpp; in mark_cb() local 262 mpp = (mark_param_t *)arg; in mark_cb() 263 tacl = mpp->mp_tacl; in mark_cb() 264 nlp = ndmp_get_nlp(mpp->mp_session); in mark_cb() 265 if (!mpp) { in mark_cb() 268 } else if (mpp->mp_session->ns_eof) { in mark_cb() 271 } else if (mpp->mp_session->ns_data.dd_abort || in mark_cb() 280 ddate = mpp->mp_ddate; in mark_cb() 281 bmd = mpp->mp_bmd; in mark_cb() 741 mark_param_t *mpp; in marklbrv3_cb() local [all …]
|
/titanic_44/usr/src/uts/common/ipp/dscpmk/ |
H A D | dscpmk.c | 48 dscpmk_process(mblk_t **mpp, dscpmk_data_t *dscpmk_data, ip_proc_t proc) in dscpmk_process() argument 56 ASSERT((mpp != NULL) && (*mpp != NULL)); in dscpmk_process() 57 mp = *mpp; in dscpmk_process()
|
/titanic_44/usr/src/uts/common/sys/ |
H A D | softmac_impl.h | 340 #define SOFTMAC_DQ_PENDING(sup, mpp) { \ argument 342 *(mpp) = NULL; \ 344 *(mpp) = (sup)->su_pending_head; \ 345 if (((sup)->su_pending_head = (*(mpp))->b_next) == NULL)\ 347 (*(mpp))->b_next = NULL; \
|
/titanic_44/usr/src/uts/common/io/ |
H A D | pfmod.c | 238 mblk_t *mbp, *mpp; in pfrput() local 252 for (mpp = mp; mp && (DB_TYPE(mp) == M_PROTO); mp = mp->b_cont) in pfrput() 260 putnext(rq, mpp); in pfrput() 286 freemsg(mpp); in pfrput() 297 freemsg(mpp); in pfrput() 322 putnext(rq, mpp); in pfrput() 324 freemsg(mpp); in pfrput()
|
/titanic_44/usr/src/uts/common/avs/ncall/ |
H A D | ncall.c | 299 ncall_modinfo_t **mpp; in ncall_unregister_module() local 304 for (mpp = &ncall_modules; *mpp != NULL; mpp = &((*mpp)->next)) { in ncall_unregister_module() 305 if ((*mpp)->module == mod) { in ncall_unregister_module() 306 *mpp = (*mpp)->next; in ncall_unregister_module()
|
/titanic_44/usr/src/uts/common/avs/ns/nsctl/ |
H A D | nsc_mem.c | 314 nsc_mem_t **mpp; in nsc_unregister_mem() local 321 for (mpp = &_nsc_mem_top; *mpp; mpp = &(*mpp)->next) in nsc_unregister_mem() 322 if (*mpp == mp) in nsc_unregister_mem() 325 if (*mpp != NULL) { in nsc_unregister_mem() 326 *mpp = mp->next; in nsc_unregister_mem()
|
/titanic_44/usr/src/cmd/fs.d/ |
H A D | umount.c | 661 mountent_t *mp, **mpp; in make_mntarray() local 668 mpp = (mountent_t **)malloc(sizeof (*mp) * (listlength + 1)); in make_mntarray() 669 if (mpp == NULL) in make_mntarray() 689 mpp[ndx++] = mp; in make_mntarray() 691 mpp[ndx] = NULL; in make_mntarray() 693 return (mpp); in make_mntarray() 732 mpp[ndx++] = mp; in make_mntarray() 734 mpp[ndx] = NULL; in make_mntarray() 736 return (mpp); in make_mntarray()
|
/titanic_44/usr/src/tools/ctf/cvt/ |
H A D | ctf.c | 919 mlist_t **mpp; in resurrect_types() local 1029 for (i = 0, mpp = &tdp->t_members; i < vlen; in resurrect_types() 1030 i++, mpp = &((*mpp)->ml_next)) { in resurrect_types() 1036 *mpp = xmalloc(sizeof (mlist_t)); in resurrect_types() 1037 (*mpp)->ml_name = xstrdup(sbuf + in resurrect_types() 1039 (*mpp)->ml_type = tdarr[ctm->ctm_type]; in resurrect_types() 1040 (*mpp)->ml_offset = ctm->ctm_offset; in resurrect_types() 1041 (*mpp)->ml_size = 0; in resurrect_types() 1044 for (i = 0, mpp = &tdp->t_members; i < vlen; in resurrect_types() 1045 i++, mpp = &((*mpp)->ml_next)) { in resurrect_types() [all …]
|
/titanic_44/usr/src/cmd/ndmpd/tlm/ |
H A D | tlm_backup_reader.c | 1206 ndmp_metadata_property_ext_t *mpp; in zfs_put_prop_cb() local 1217 mpp = &mhp->nh_property[mhp->nh_count]; in zfs_put_prop_cb() 1229 (void) strlcpy(mpp->mp_name, zfs_prop_to_name(prop), in zfs_put_prop_cb() 1231 (void) strlcpy(mpp->mp_value, vbuf, ZFS_MAXPROPLEN); in zfs_put_prop_cb() 1253 (void) strlcpy(mpp->mp_source, sourcestr, ZFS_MAXPROPLEN); in zfs_put_prop_cb() 1267 ndmp_metadata_property_ext_t *mpp; in zfs_put_quota_cb() local 1275 mpp = &mhp->nh_property[mhp->nh_count]; in zfs_put_quota_cb() 1287 (void) snprintf(mpp->mp_name, ZFS_MAX_DATASET_NAME_LEN, in zfs_put_quota_cb() 1290 (void) snprintf(mpp->mp_name, ZFS_MAX_DATASET_NAME_LEN, in zfs_put_quota_cb() 1293 (void) snprintf(mpp->mp_value, ZFS_MAXPROPLEN, "%llu", space); in zfs_put_quota_cb() [all …]
|
/titanic_44/usr/src/lib/libfstyp/common/ |
H A D | libfstyp.c | 96 char *mdir, char *fsname, fstyp_module_t **mpp); 360 fstyp_module_t **mpp) in fstyp_init_module() argument 368 if (mpp != NULL) { in fstyp_init_module() 369 *mpp = mp; in fstyp_init_module() 402 if (mpp != NULL) { in fstyp_init_module() 403 *mpp = mp; in fstyp_init_module()
|
/titanic_44/usr/src/lib/pam_modules/dhkeys/ |
H A D | dhkeys.c | 211 mechanism_t **mpp; in establish_key() local 265 for (mpp = mechs; *mpp; mpp++) { in establish_key() 266 mechanism_t *mp = *mpp; in establish_key()
|
/titanic_44/usr/src/cmd/sgs/rtld/sparc/ |
H A D | sparc_a.out.c | 244 mmapobj_result_t *mpp; in aout_reloc() local 252 if (((mpp = find_segment((caddr_t)ra, lmp)) != NULL) && in aout_reloc() 253 ((mpp->mr_prot & PROT_WRITE) == 0)) { in aout_reloc() 254 if ((set_prot(lmp, mpp, 1) == 0) || in aout_reloc() 255 (aplist_append(textrel, mpp, in aout_reloc()
|