/illumos-gate/usr/src/cmd/sgs/elfedit/common/ |
H A D | util.c | 413 elfedit_atoui_t ndx; in elfedit_atoshndx() local 415 ndx = elfedit_atoconst(str, ELFEDIT_CONST_SHN); in elfedit_atoshndx() 416 if ((ndx >= shnum) && ((ndx < SHN_LORESERVE) || (ndx > SHN_HIRESERVE))) in elfedit_atoshndx() 418 EC_WORD(ndx), EC_WORD(shnum-1)); in elfedit_atoshndx() 420 return (ndx); in elfedit_atoshndx()
|
H A D | elfedit.c | 2971 MSG_ORIG(MSG_FMT_WORDVAL), ndx); in elfedit_cpl_ndx() 3132 int ndx; in cmd_match_fcn() local 3175 if (ndx == 0) { in cmd_match_fcn() 3205 if (ndx >= ELFEDIT_MAXCPLARGS) in cmd_match_fcn() 3223 for (i = 0; i < ndx; i++) { in cmd_match_fcn() 3274 if (ostyle_ndx == ndx) in cmd_match_fcn() 3292 if ((ostyle_ndx == (ndx - 1)) && (ndx == num_opt)) { in cmd_match_fcn() 3309 if (ostyle_ndx == ndx) in cmd_match_fcn() 3338 if ((ndx <= num_opt) && (argv[ndx - 1][0] == '-')) { in cmd_match_fcn() 3368 &cstate, ndx, argv, num_opt); in cmd_match_fcn() [all …]
|
/illumos-gate/usr/src/uts/common/io/ib/clients/eoib/ |
H A D | eib_ibt.c | 341 uint_t ndx = dlid % EIB_AV_NBUCKETS; /* simple hashing */ in eib_ibt_hold_avect() local 352 for (av = ss->ei_av[ndx]; av; av = av->av_next) { in eib_ibt_hold_avect() 387 ss->ei_av[ndx] = av; in eib_ibt_hold_avect() 461 int ndx; in eib_ibt_free_avects() local 464 for (ndx = 0; ndx < EIB_AV_NBUCKETS; ndx++) { in eib_ibt_free_avects() 465 for (av = ss->ei_av[ndx]; av; av = av_next) { in eib_ibt_free_avects() 471 ss->ei_av[ndx] = NULL; in eib_ibt_free_avects()
|
/illumos-gate/usr/src/cmd/sendmail/db/hash/ |
H A D | hash_auto.c | 33 u_int32_t ndx; 56 + sizeof(ndx) 76 memcpy(bp, &ndx, sizeof(ndx)); 77 bp += sizeof(ndx); 205 memcpy(&argp->ndx, bp, sizeof(argp->ndx)); 206 bp += sizeof(argp->ndx); 741 u_int32_t ndx; 765 + sizeof(ndx) 785 memcpy(bp, &ndx, sizeof(ndx)); 786 bp += sizeof(ndx); [all …]
|
/illumos-gate/usr/src/cmd/sgs/rtld/common/ |
H A D | remove.c | 113 uint_t ndx; in purge_exit_handlers() local 115 for (ndx = 0; ndx < MMAPCNT(lmp); ndx++, mpp++) { in purge_exit_handlers() 806 uintptr_t ndx; in free_hdl() local 818 ndx = (uintptr_t)ghp % HDLIST_SZ; in free_hdl() 819 (void) aplist_delete_value(hdl_alp[ndx], ghp); in free_hdl() 1435 uintptr_t ndx; in remove_hdl() local 1438 ndx = (uintptr_t)ghp % HDLIST_SZ; in remove_hdl() 1439 (void) aplist_delete_value(hdl_alp[ndx], ghp); in remove_hdl()
|
/illumos-gate/usr/src/tools/sgs/sgsmsg/ |
H A D | sgsmsg.c | 601 size_t ndx; in output_data() local 626 for (ndx = 0; ndx < (stbufsize - 1); ndx++) { in output_data() 629 "\n/* %4ld */ 0x%.2x,", ndx, in output_data() 630 (unsigned char)stbuf[ndx]) < 0) { in output_data() 637 (unsigned char)stbuf[ndx]) < 0) { in output_data()
|
/illumos-gate/usr/src/cmd/sgs/libld/common/ |
H A D | sunwmove.c | 193 Xword ndx = ELF_M_SYM(mvp->m_info); in ld_process_move() local 197 if ((ndx >= (Xword) isp->is_file->ifl_symscnt) || in ld_process_move() 198 (ndx == 0)) { in ld_process_move() 215 sdp = isp->is_file->ifl_oldndx[ndx]; in ld_process_move()
|
H A D | outfile.c | 377 size_t ndx; in ld_create_outfile() local 809 ndx = 0; in ld_create_outfile() 830 elf_getscn(ofl->ofl_elf, ++ndx)) == NULL) { in ld_create_outfile() 833 ndx); in ld_create_outfile() 854 if (ndx == fndx) { in ld_create_outfile()
|
H A D | machrel.sparc.c | 587 Xword ndx, roffset, value; in ld_perform_outreloc() local 750 ndx = STN_UNDEF; in ld_perform_outreloc() 760 ndx = sdp->sd_isc->is_osdesc->os_identndx; in ld_perform_outreloc() 762 ndx = sdp->sd_shndx; in ld_perform_outreloc() 764 ndx = ofl->ofl_parexpnndx; in ld_perform_outreloc() 766 ndx = sdp->sd_symndx; in ld_perform_outreloc() 789 if (ndx == 0) { in ld_perform_outreloc() 802 rea.r_info = ELF_R_INFO(ndx, in ld_perform_outreloc() 1597 Word ndx; in ld_reloc_register() local 1599 for (ndx = ifl->ifl_locscnt; in ld_reloc_register() [all …]
|
H A D | ldentry.c | 194 Aliste ndx; in ld_ent_check() local 203 for (APLIST_TRAVERSE(ofl->ofl_ents, ndx, enp)) { in ld_ent_check()
|
/illumos-gate/usr/src/cmd/mdb/common/modules/genunix/ |
H A D | typegraph.c | 1206 size_t nptrs, ndx; in typegraph_build_anchored() local 1238 ndx = 0; in typegraph_build_anchored() 1246 for (; ndx < nptrs; ndx++) { in typegraph_build_anchored() 2767 size_t ndx; in typeconflict_walk_step() local 2770 for (ndx = (size_t)wsp->walk_data; ndx < tg_nnodes; ndx++) { in typeconflict_walk_step() 2771 node = &tg_node[ndx]; in typeconflict_walk_step() 2785 if (ndx == tg_nnodes) in typeconflict_walk_step() 2795 size_t ndx; in typeunknown_walk_step() local 2798 for (ndx = (size_t)wsp->walk_data; ndx < tg_nnodes; ndx++) { in typeunknown_walk_step() 2799 node = &tg_node[ndx]; in typeunknown_walk_step() [all …]
|
/illumos-gate/usr/src/cmd/sgs/libelf/common/ |
H A D | strptr.c | 36 elf_strptr(Elf * elf, size_t ndx, size_t off) in elf_strptr() argument 44 if ((s = elf_getscn(elf, ndx)) == 0) { in elf_strptr()
|
/illumos-gate/usr/src/uts/common/vm/ |
H A D | vpm.c | 171 int i, ndx; in vpm_init() local 218 ndx = 0; in vpm_init() 221 vpmd_cpu[i].vfree_ndx = ndx; in vpm_init() 222 ndx = (ndx + 1) & vpmd_freemsk; in vpm_init() 320 int ndx; in get_freelndx() local 322 ndx = vpmd_cpu[CPU->cpu_seqid].vfree_ndx & vpmd_freemsk; in get_freelndx() 330 return (ndx); in get_freelndx()
|
/illumos-gate/usr/src/cmd/sgs/liblddbg/common/ |
H A D | map.c | 260 Word ndx, Lineno lineno) in Dbg_map_seg_os_order() argument 266 sgp->sg_name, sec_name, EC_WORD(ndx)); in Dbg_map_seg_os_order() 270 Dbg_map_seg(Ofl_desc *ofl, dbg_state_t dbg_state, int ndx, Sg_desc *sgp, in Dbg_map_seg() argument 282 ofl->ofl_dehdr->e_machine, ndx, sgp, FALSE); in Dbg_map_seg()
|
H A D | syminfo.c | 40 Elf_syminfo_entry(Lm_list *lml, Word ndx, Syminfo *sip, const char *name, in Elf_syminfo_entry() argument 125 (void) snprintf(sndxstr, NDXSZ, MSG_ORIG(MSG_FMT_INDEX), ndx); in Elf_syminfo_entry()
|
H A D | shdr.c | 62 Word ndx, Shdr *oshdr, Shdr *nshdr, const char *name) in Dbg_shdr_modified() argument 74 dbg_fmt_isec_name2(name, ndx, buf, &alloc_mem), obj); in Dbg_shdr_modified()
|
/illumos-gate/usr/src/cmd/sgs/size/common/ |
H A D | process.c | 93 size_t ndx = 0, shnum = 0; in process() local 128 if (elf_getshdrstrndx(elf, &ndx) == -1) in process() 172 name = elf_strptr(elf, ndx, (size_t)shdr.sh_name); in process()
|
/illumos-gate/usr/src/cmd/sgs/gprof/common/ |
H A D | readelf.c | 142 GElf_Half ndx; in get_txtorigin() local 149 for (ndx = 0; ndx < ehdr.e_phnum; ndx++) { in get_txtorigin() 150 if (gelf_getphdr(elf, ndx, &phdr) == NULL) in get_txtorigin()
|
H A D | printgprof.c | 943 does_clash(nltype **nlp, int ndx, int nnames) in does_clash() argument 948 if (ndx && (strcmp(nlp[ndx]->name, nlp[ndx-1]->name) == 0)) in does_clash() 954 if ((ndx < (nnames - 1)) && in does_clash() 955 (strcmp(nlp[ndx]->name, nlp[ndx+1]->name) == 0)) { in does_clash()
|
/illumos-gate/usr/src/cmd/sendmail/db/include/ |
H A D | hash_auto.h | 20 u_int32_t ndx; member 80 u_int32_t ndx; member
|
/illumos-gate/usr/src/cmd/fs.d/ |
H A D | mount.c | 1087 int ndx, found; in make_vfsarray() local 1103 for (ndx = 0, vp = vfsll; vp; vp = vp->next) { in make_vfsarray() 1117 vpp[ndx++] = vp; in make_vfsarray() 1119 vpp[ndx] = NULL; in make_vfsarray() 1133 for (ndx = 0; *mntlist; mntlist++) { in make_vfsarray() 1140 vpp[ndx++] = vp; /* found it. */ in make_vfsarray() 1181 if (ndx == 0) in make_vfsarray() 1184 vpp[ndx] = NULL; /* null terminate the list */ in make_vfsarray() 1185 vfsarraysize = ndx; /* adjust vfsarraysize */ in make_vfsarray()
|
/illumos-gate/usr/src/cmd/picl/plugins/sun4v/snmp/ |
H A D | snmpplugin.c | 1195 int i, ndx; in read_volprop() local 1216 ndx = i; in read_volprop() 1231 ret = snmp_get_int(hdl, vol_props[ndx].oidstr, vol_props[ndx].row, in read_volprop() 1241 vol_props[ndx].oidstr, vol_props[ndx].row); in read_volprop() 1245 switch (vol_props[ndx].proptype) { in read_volprop() 1254 propval, vol_props[ndx].row); in read_volprop() 1267 vol_props[ndx].row, &pstr, &snmp_syserr); in read_volprop() 1278 vol_props[ndx].row); in read_volprop() 1289 vol_props[ndx].row, &pstr, &snmp_syserr); in read_volprop() 1300 vol_props[ndx].row); in read_volprop() [all …]
|
/illumos-gate/usr/src/cmd/sgs/libconv/common/ |
H A D | symbols.c | 49 uint_t ndx = 0; in conv_sym_other() local 51 inv_buf->buf[ndx++] = visibility[vis]; in conv_sym_other() 57 inv_buf->buf[ndx++] = '?'; in conv_sym_other() 58 inv_buf->buf[ndx++] = '\0'; in conv_sym_other()
|
/illumos-gate/usr/src/uts/intel/dtrace/ |
H A D | sdt.c | 196 int ndx; in sdt_destroy() local 211 ndx = SDT_ADDR2NDX(sdp->sdp_patchpoint); in sdt_destroy() 213 hash = sdt_probetab[ndx]; in sdt_destroy() 224 sdt_probetab[ndx] = sdp->sdp_hashnext; in sdt_destroy()
|
/illumos-gate/usr/src/cmd/sgs/dump/common/ |
H A D | dump.c | 295 int ndx = 0; in print_rela() local 322 ndx++; in print_rela() 332 ndx++; in print_rela() 347 ndx++; in print_rela() 377 ndx++; in print_rela() 400 int ndx = 0; in print_rel() local 417 (void) gelf_getrel(rdata, ndx, &rel); in print_rel() 427 ndx++; in print_rel() 437 ndx++; in print_rel() 451 ndx++; in print_rel() [all …]
|