/illumos-gate/usr/src/cmd/sgs/rtld/common/ |
H A D | cap.c | 910 cap_index_t ndx; in cap_modify() local 947 ndx = CAP_OVR_HW_3; in cap_modify() 952 ndx = CAP_OVR_HW_2; in cap_modify() 957 ndx = CAP_OVR_HW_1; in cap_modify() 969 ndx = CAP_OVR_SF_1; in cap_modify() 990 ndx = CAP_OVR_HW_1; in cap_modify() 994 ndx = CAP_OVR_HW_3; in cap_modify() 1002 ndx = CAP_OVR_HW_2; in cap_modify() 1013 ndx = tag - 1; in cap_modify() 1041 for (ndx = 0; ndx < CAP_OVR_MAX; ndx++) { in cap_modify() [all …]
|
H A D | tls.c | 50 ulong_t ndx, cnt; in tls_getmodid() local 72 for (ndx = 0, bits = 1; bits; bits = bits << 1, ndx++) { in tls_getmodid() 75 ndx = (cnt * (sizeof (uint_t)) * 8) + ndx; in tls_getmodid() 76 tmid.tmi_lowfree = ndx + 1; in tls_getmodid() 77 return (ndx); in tls_getmodid() 95 ndx = (tmid.tmi_cnt * sizeof (uint_t)) * 8; in tls_getmodid() 96 tmid.tmi_lowfree = ndx + 1; in tls_getmodid() 99 return (ndx); in tls_getmodid()
|
H A D | audit.c | 176 int ndx; in _audit_client() local 181 for (ndx = 0; ndx < aip->ai_cnt; ndx++) { in _audit_client() 561 int *ndx) in _audit_objopen() argument 634 int respond = 1, ndx = 0; in audit_objopen() local 685 lmid, aip, &ndx); in audit_objopen() 688 lmid, aip, &ndx); in audit_objopen() 691 lmid, aip, &ndx); in audit_objopen() 872 ndx, regs, flags); in audit_pltenter() 876 ndx, regs, flags); in audit_pltenter() 891 Sym *sym, uint_t ndx) in _audit_pltexit() argument [all …]
|
H A D | util.c | 236 for (ndx = 0; oargv[ndx]; ndx++) in stack_cleanup() 237 nargv[ndx] = oargv[ndx]; in stack_cleanup() 238 nargv[ndx] = oargv[ndx]; in stack_cleanup() 251 for (ndx = 0; oenvp[ndx]; ndx++) in stack_cleanup() 252 nenvp[ndx] = oenvp[ndx]; in stack_cleanup() 253 nenvp[ndx] = oenvp[ndx]; in stack_cleanup() 263 for (ndx = 0; (oauxv[ndx].a_type != AT_NULL); ndx++) in stack_cleanup() 264 nauxv[ndx] = oauxv[ndx]; in stack_cleanup() 265 nauxv[ndx] = oauxv[ndx]; in stack_cleanup() 683 for (ndx = start; ndx != stop; ndx += incr) { in call_array() [all …]
|
/illumos-gate/usr/src/cmd/sgs/elfdump/common/ |
H A D | main.c | 84 } ndx; member 181 int ndx, byte, word; in dump_hex_bytes() local 195 ndx = n / bytes_per_row; in dump_hex_bytes() 197 MSG_ORIG(MSG_FMT_INDEX2), EC_WORD(ndx)); in dump_hex_bytes() 218 MSG_ORIG(MSG_FMT_INDEX2), EC_WORD(ndx)); in dump_hex_bytes() 224 ndx += bytes_per_row; in dump_hex_bytes() 231 MSG_ORIG(MSG_FMT_INDEX2), EC_WORD(ndx)); in dump_hex_bytes() 482 (ndx == list->value.ndx.start)) in match() 491 (ndx >= list->value.ndx.start) && in match() 492 ((list->value.ndx.end < 0) || in match() [all …]
|
H A D | elfdump.c | 1954 for (ndx = 1; ndx < infonum; ndx++, _info++) { in syminfo() 3179 for (ndx = 0; ndx < numdyn; dyn++, ndx++) { in dynamic() 3192 for (ndx = 0; ndx < numdyn; dyn++, ndx++) { in dynamic() 3567 for (ndx = 0; ndx < movenum; move++, ndx++) { in move() 4165 for (ndx = 0; ndx < bkts; ndx++, hash++) { in hash() 4228 for (ndx = 0; ndx < MAXCOUNT; ndx++) { in hash() 4843 for (ndx = 0; ndx < shdr_ndx_arr_cnt; ndx++) { in shdr_cache() 4902 for (ndx = 1; ndx < shnum; ndx++) { in shdr_cache() 5126 for (ndx = 0; ndx < phnum; phdr++, ndx++) { in regular() 5172 for (ndx = 1; ndx < shnum; ndx++) { in regular() [all …]
|
/illumos-gate/usr/src/cmd/sgs/libld/common/ |
H A D | args.c | 262 Word ndx = 0; in ld_rescan_archives() local 271 if (ndx++ < start_ndx) in ld_rescan_archives() 1007 int c, ndx = optind; in parseopt_pass1() local 1450 ofl->ofl_ars_gsandx = ndx; in parseopt_pass1() 1812 ndx = optind; in parseopt_pass1() 1823 int c, ndx = optind; in parseopt_pass2() local 1831 DBG_CALL(Dbg_args_option(ofl->ofl_lml, ndx, c, in parseopt_pass2() 1994 if (ld_rescan_archives(ofl, 0, ndx) == in parseopt_pass2() 2000 ofl->ofl_ars_gsandx = ndx; in parseopt_pass2() 2003 if (ld_rescan_archives(ofl, 1, ndx) == in parseopt_pass2() [all …]
|
H A D | resolve.c | 56 int ndx, Word nshndx, sd_flag_t nsdflags) in sym_null() argument 473 Half vndx = ifl->ifl_versym[ndx]; in sym_override() 686 sym_promote(sdp, nsym, ifl, ofl, ndx, in sym_realtent() 706 sym_override(sdp, nsym, ifl, ofl, ndx, in sym_realtent() 713 sym_override(sdp, nsym, ifl, ofl, ndx, in sym_realtent() 985 sym_override(sdp, nsym, ifl, ofl, ndx, 993 sym_promote(sdp, nsym, ifl, ofl, ndx, 998 sym_override(sdp, nsym, ifl, ofl, ndx, 1032 sym_override(sdp, nsym, ifl, ofl, ndx, 1035 sym_promote(sdp, nsym, ifl, ofl, ndx, [all …]
|
H A D | order.c | 169 validate_shf_ordered_dest(Ofl_desc *ofl, Ifl_desc *ifl, Word ndx, in validate_shf_ordered_dest() argument 182 isp1_ndx = ndx; in validate_shf_ordered_dest() 183 isp1 = ifl->ifl_isdesc[ndx]; in validate_shf_ordered_dest() 247 DBG_CALL(Dbg_sec_order_error(ofl->ofl_lml, ifl, ndx, error)); in validate_shf_ordered_dest() 256 if (isp2_ndx != ndx) in validate_shf_ordered_dest() 293 Word ndx) in ld_process_ordered() argument 295 Is_desc *isp2, *isp = ifl->ifl_isdesc[ndx]; in ld_process_ordered() 317 DBG_CALL(Dbg_sec_order_error(ofl->ofl_lml, ifl, ndx, error)); in ld_process_ordered() 327 (validate_shf_ordered_dest(ofl, ifl, ndx, &alt_os_name) == FALSE)) in ld_process_ordered()
|
H A D | syms.c | 1805 int ndx; in ld_sym_validate() local 1807 for (ndx = 0; ndx < ofl->ofl_regsymsno; ndx++) { in ld_sym_validate() 2113 ndx = shdr->sh_link; in ld_sym_process() 2114 if ((ndx == 0) || (ndx >= ifl->ifl_shnum)) { in ld_sym_process() 2176 for (sym++, ndx = 1; ndx < local; sym++, ndx++) { in ld_sym_process() 2265 sdp->sd_symndx = ndx; in ld_sym_process() 2380 last_file_ndx = ndx; in ld_sym_process() 2505 for (ndx = (int)local; ndx < total; sym++, ndx++) { in ld_sym_process() 2783 cpp->c_ndx = ndx; in ld_sym_process() 2841 sdp->sd_symndx = ndx; in ld_sym_process() [all …]
|
/illumos-gate/usr/src/uts/intel/amd64/krtld/ |
H A D | kobj_convrelstr.c | 89 int ndx = 31; in conv_reloc_amd64_type() local 94 strbuf[ndx--] = '\0'; in conv_reloc_amd64_type() 96 strbuf[ndx--] = '0' + (type % 10); in conv_reloc_amd64_type() 98 } while ((ndx >= (int)0) && (type > (Word)0)); in conv_reloc_amd64_type() 100 return (&strbuf[ndx + 1]); in conv_reloc_amd64_type()
|
/illumos-gate/usr/src/lib/krb5/plugins/kdb/db2/libdb2/hash/ |
H A D | hash_page.c | 101 cursorp->ndx = 0; 151 item_info->ndx = cursorp->ndx; 169 cursorp->ndx = 0; 217 cursorp->ndx++; 300 indx_t ndx; variable 306 ndx = cursorp->pgndx; 315 --ndx; 731 u_int32_t ndx; 1297 u_int16_t addr, ndx; variable 1307 (ndx ? hashp->hdr.spares[ndx - 1] : 0) + (addr & SPLITMASK) - 1; [all …]
|
H A D | hash_bigkey.c | 142 __big_delete(HTAB *hashp, PAGE16 *pagep, indx_t ndx) in __big_delete() argument 144 __big_delete(hashp, pagep, ndx) in __big_delete() 147 u_int32_t ndx; /* Index of big pair on base page. */ 153 pagep = __get_page(hashp, OADDR_TO_PAGE(DATA_OFF(pagep, ndx)), A_RAW); 256 __big_keydata(hashp, pagep, key, val, ndx) in __big_keydata() argument 260 int32_t ndx; 267 __get_page(hashp, OADDR_TO_PAGE(DATA_OFF(pagep, ndx)), A_RAW); 287 __get_bigkey(HTAB *hashp, PAGE16 *pagep, indx_t ndx, DBT *key) in __get_bigkey() argument 289 __get_bigkey(hashp, pagep, ndx, key) in __get_bigkey() 292 u_int32_t ndx; [all …]
|
/illumos-gate/usr/src/cmd/picl/plugins/sun4v/lib/snmp/ |
H A D | asn1.c | 208 int i, ndx; in asn_build_objid() local 227 for (i = 0, ndx = 0; i < n_subids; i++, ndx++) { in asn_build_objid() 241 subid_len[ndx] = 1; in asn_build_objid() 243 subid_len[ndx] = 2; in asn_build_objid() 245 subid_len[ndx] = 3; in asn_build_objid() 247 subid_len[ndx] = 4; in asn_build_objid() 249 subid_len[ndx] = 5; in asn_build_objid() 264 for (i = 0, ndx = 0; i < n_subids; i++, ndx++) { in asn_build_objid() 586 int i, ndx; in asn_parse_objid() local 635 objid[ndx] = subid; in asn_parse_objid() [all …]
|
/illumos-gate/usr/src/cmd/sgs/librtld/common/ |
H A D | syms.c | 87 Word num, ndx; in syminfo() local 97 for (ndx = 1, info++; ndx < num; ndx++, info++) { in syminfo() 101 if (alist_append(nodirect, &ndx, sizeof (Word), 20) == 0) in syminfo()
|
/illumos-gate/usr/src/cmd/sgs/liblddbg/common/ |
H A D | syms.c | 94 ndx, str); in Dbg_syms_cap_lookup() 208 Dbg_syms_dup_discarded(Lm_list *lml, Word ndx, Sym_desc *sdp) in Dbg_syms_dup_discarded() argument 220 dbg_print(lml, MSG_INTL(MSG_SYM_DISCARD_DUP), EC_WORD(ndx), in Dbg_syms_dup_discarded() 256 Dbg_syms_entry(Lm_list *lml, Word ndx, Sym_desc *sdp) in Dbg_syms_entry() argument 261 dbg_print(lml, MSG_INTL(MSG_SYM_BASIC), EC_WORD(ndx), in Dbg_syms_entry() 266 Dbg_syms_global(Lm_list *lml, Word ndx, const char *name) in Dbg_syms_global() argument 271 dbg_print(lml, MSG_INTL(MSG_SYM_ADDING), EC_WORD(ndx), in Dbg_syms_global() 281 dbg_print(ofl->ofl_lml, MSG_INTL(MSG_SYM_CAP_ORIG), EC_WORD(ndx), in Dbg_syms_cap_convert() 321 dbg_print(lml, MSG_INTL(MSG_SYM_WRAP), EC_WORD(ndx), in Dbg_syms_wrap() 445 dbg_print(lml, MSG_INTL(MSG_SYM_RESOLVING), EC_WORD(ndx), in Dbg_syms_resolving() [all …]
|
H A D | segments.c | 36 Dbg_seg_desc_entry(Lm_list *lml, uchar_t osabi, Half mach, int ndx, in Dbg_seg_desc_entry() argument 45 dbg_print(lml, MSG_ORIG(MSG_SEG_DESC), ndx); in Dbg_seg_desc_entry() 106 Dbg_seg_entry(Ofl_desc *ofl, int ndx, Sg_desc *sgp) in Dbg_seg_entry() argument 112 ofl->ofl_dehdr->e_machine, ndx, sgp, TRUE); in Dbg_seg_entry() 123 int ndx = 0; in Dbg_seg_list() local 131 Dbg_seg_desc_entry(lml, osabi, mach, ndx++, sgp, TRUE); in Dbg_seg_list() 141 Dbg_seg_os(Ofl_desc *ofl, Os_desc *osp, int ndx) in Dbg_seg_os() argument 155 dbg_print(lml, MSG_ORIG(MSG_SEC_NAME), ndx, osp->os_name); in Dbg_seg_os()
|
/illumos-gate/usr/src/uts/common/sys/ |
H A D | cyclic_impl.h | 543 #define CYC_HEAP_PARENT(ndx) (((ndx) - 1) >> 1) argument 544 #define CYC_HEAP_RIGHT(ndx) (((ndx) + 1) << 1) argument 545 #define CYC_HEAP_LEFT(ndx) ((((ndx) + 1) << 1) - 1) argument
|
/illumos-gate/usr/src/cmd/sgs/pvs/common/ |
H A D | pvs.c | 143 } ndx; member 372 if ((ndx > 0) && (ndx == rec->value.ndx.start)) in match() 380 if ((ndx > 0) && in match() 381 (ndx >= rec->value.ndx.start) && in match() 382 ((rec->value.ndx.end < 0) || in match() 383 (ndx <= rec->value.ndx.end))) in match() 585 Word ndx; in gvers_need() local 597 for (ndx = 0; ndx < vnd->vn_cnt; ndx++, in gvers_need() 841 GElf_Half ndx = vdf->vd_ndx; in gvers_def() local 853 vdp->vd_ndx = ndx; in gvers_def() [all …]
|
/illumos-gate/usr/src/uts/common/os/ |
H A D | cyclic.c | 662 uint_t ndx, orig; in cyclic_coverage() local 673 ndx = 0; in cyclic_coverage() 675 if (ndx == orig) in cyclic_coverage() 1720 arg->cyx_ndx = ndx; in cyclic_add_xcall() 1829 if (heap[i] == ndx) in cyclic_remove_xcall() 1866 heap[nelems] = ndx; in cyclic_remove_xcall() 1913 arg.cyx_ndx = ndx; in cyclic_remove_here() 1990 if (heap[i] == ndx) in cyclic_reprogram_cyclic() 2056 arg.cyx_ndx = ndx; in cyclic_reprogram_here() 3081 cyc_index_t ndx; in cyclic_reprogram() local [all …]
|
/illumos-gate/usr/src/cmd/sgs/libelf/demo/ |
H A D | dispsyms.c | 91 uint_t symcnt, ndx, nosymshndx; in print_symtab() local 131 for (ndx = 0; ndx < symcnt; ndx++) { in print_symtab() 143 if (gelf_getsymshndx(symdata, shndxdata, ndx, in print_symtab() 189 (gelf_getsymshndx(symdata, shndxdata, ndx, in print_symtab() 267 ndx, sym.st_value, sym.st_size, in print_symtab()
|
/illumos-gate/usr/src/cmd/sgs/crle/common/ |
H A D | config.c | 58 int ndx, bkt; in genconfig() local 96 for (ndx = 0; ndx < (sizeof (hashsize) / sizeof (int)); ndx++) { in genconfig() 97 if (crle->c_hashstrnum > hashsize[ndx]) in genconfig() 99 hashbkts = hashsize[ndx]; in genconfig() 284 for (ndx = 1, bkt = 0; bkt < stbl->t_size; bkt++) { in genconfig() 337 hashchn[ndx] = hashbkt[hashval]; in genconfig() 338 hashbkt[hashval] = ndx++; in genconfig() 435 hashchn[ndx] = hashbkt[hashval]; in genconfig() 436 hashbkt[hashval] = ndx++; in genconfig() 499 hashchn[ndx] = hashbkt[hashval]; in genconfig() [all …]
|
/illumos-gate/usr/src/cmd/sendmail/db/hash/ |
H A D | hash_page.c | 557 __ham_reputpair(p, psize, ndx, key, data) in __ham_reputpair() argument 559 u_int32_t psize, ndx; 567 (ndx == 0 ? psize : p->inp[H_DATAINDEX(ndx - 1)]) - HOFFSET(p); 579 if (i == H_KEYINDEX(ndx)) 584 p->inp[H_KEYINDEX(ndx)] = 585 (ndx == 0 ? psize : p->inp[H_DATAINDEX(ndx - 1)]) - key->size; 586 p->inp[H_DATAINDEX(ndx)] = p->inp[H_KEYINDEX(ndx)] - data->size; 610 db_indx_t ndx; local 618 ndx = hcp->bndx; 686 __ham_dpair(dbp, p, ndx); [all …]
|
/illumos-gate/usr/src/lib/libproc/common/ |
H A D | Psymtab_machelf32.c | 612 uint_t htmp, ndx; in fake_elf64() local 643 if (Pread(P, &ndx, sizeof (ndx), (uintptr_t)hash) != in fake_elf64() 644 sizeof (ndx)) { in fake_elf64() 649 while (ndx) { in fake_elf64() 651 (uintptr_t)&symtabptr[ndx]) != sizeof (sym)) { in fake_elf64() 653 (long)&symtabptr[ndx]); in fake_elf64() 668 hash = &((uint_t *)hptr)[2 + hnbuckets + ndx]; in fake_elf64() 669 if (Pread(P, &ndx, sizeof (ndx), (uintptr_t)hash) != in fake_elf64() 670 sizeof (ndx)) { in fake_elf64() 686 if (ndx == 0) { in fake_elf64()
|
/illumos-gate/usr/src/uts/common/io/ib/clients/eoib/ |
H A D | eib_rsrc.c | 281 ptrdiff_t ndx; in eib_rsrc_return_lsobufs() local 303 elem = bkt->bk_bufl + ndx; in eib_rsrc_return_lsobufs() 479 uint_t ndx; in eib_rsrc_setup_txbufs() local 533 for (ndx = 0; ndx < EIB_WQES_PER_BLK; ndx++, i++) { in eib_rsrc_setup_txbufs() 647 uint_t ndx; in eib_rsrc_setup_rxbufs() local 702 for (ndx = 0; ndx < EIB_WQES_PER_BLK; ndx++, i++) { in eib_rsrc_setup_rxbufs() 971 int ndx; in eib_rsrc_grab_wqes() local 1003 ASSERT(ndx != -1); in eib_rsrc_grab_wqes() 1020 wqe_ndx = blk * EIB_WQES_PER_BLK + ndx; in eib_rsrc_grab_wqes() 1046 uint_t ndx; in eib_rsrc_return_wqes() local [all …]
|