Home
last modified time | relevance | path

Searched refs:ndx (Results 1 – 25 of 160) sorted by relevance

1234567

/illumos-gate/usr/src/cmd/sgs/elfdump/common/
H A Ddwarf.c80 ((*ndx + size) < *ndx)) in dwarf_extract_uint()
92 data += *ndx; in dwarf_extract_uint()
98 (*ndx) += 2; in dwarf_extract_uint()
107 data += *ndx; in dwarf_extract_uint()
113 (*ndx) += 4; in dwarf_extract_uint()
129 (*ndx) += 8; in dwarf_extract_uint()
309 (*ndx < len) && (data[off + *ndx] == 0); in dump_cfi()
673 dump_hex_bytes(data + off + *ndx, len - *ndx, in dump_cfi()
709 ndx = 0; in dump_eh_frame()
778 ndx += 1; in dump_eh_frame()
[all …]
/illumos-gate/usr/src/cmd/sgs/elfedit/modules/common/
H A Dstr.c223 ndx = in shndx_to_strtab()
252 Word ndx; in process_args() local
338 ndx = shndx_to_strtab(obj_state, ndx); in process_args()
430 Word ndx; in print_strtab() local
451 ndx = argstate->str.ndx; in print_strtab()
488 ndx++; in print_strtab()
521 Word ndx = argstate->str.ndx; in cmd_body_set() local
623 Word ndx = argstate->str.ndx; in cmd_body_zero() local
753 Word ndx; in cpl_sh_opt() local
788 for (ndx = 0; ndx < obj_state->os_shnum; ndx++, sec++) { in cpl_sh_opt()
[all …]
H A Dcap.c196 ndx--; in cap_group_extents()
198 ndx--; in cap_group_extents()
208 ndx++; in cap_group_extents()
211 ndx++; in cap_group_extents()
226 for (; ndx <= argstate->cap.grp_end_ndx; ndx++, cap++) { in cap_group_id()
407 ndx = arg; in print_cap()
607 return (ndx); in arg_to_index()
635 ndx <= argstate->cap.grp_end_ndx; ndx++) { in arg_to_index()
774 Word ndx; in cmd_body() local
913 EC_WORD(ndx), EC_XWORD(cap[ndx].c_un.c_val), in cmd_body()
[all …]
H A Ddyn.c190 Word ndx; in convert_dt_null() local
214 return (ndx); in convert_dt_null()
329 ndx = arg; in print_dyn()
331 ndx = 0; in print_dyn()
626 Word ndx; in arg_to_index() local
673 return (ndx); in arg_to_index()
697 ndx < argstate->dyn.num; dyn++, ndx++) { in arg_to_index()
705 (ndx > 0) && (retndx == (ndx - 1))) { in arg_to_index()
732 for (ndx = 0; ndx < argstate->dyn.num; ndx++) { in arg_to_index()
738 return (ndx); in arg_to_index()
[all …]
H A Dshdr.c233 for (; cnt--; ndx++) { in print_shdr()
362 Word ndx; in cmd_body() local
410 if (ndx == 0) in cmd_body()
429 ndx, shdr_sec->sec_name, in cmd_body()
758 Word ndx; in cpl_1starg_sec() local
764 for (ndx = 0; ndx < num_opt; ndx++) { in cpl_1starg_sec()
776 for (ndx = 0; ndx < obj_state->os_shnum; ndx++, sec++) in cpl_1starg_sec()
815 Word ndx; in cpl_sh_infolink() local
824 for (ndx = 0; ndx < num_opt; ndx++) { in cpl_sh_infolink()
827 else if (strcmp(argv[ndx], in cpl_sh_infolink()
[all …]
H A Dsyminfo.c266 sym = argstate->sym.data + ndx; in dump_syminfo()
314 Word ndx, Word cnt) in print_syminfo() argument
336 dump_syminfo(argstate, ndx, cnt); in print_syminfo()
470 Word str_offset, ndx, numdyn; in needed_to_boundto() local
484 for (ndx = 0; ndx < numdyn; dyn++, ndx++) { in needed_to_boundto()
510 for (ndx = 0; ndx < numdyn; dyn++, ndx++) { in needed_to_boundto()
538 ndx = null_elt.dn_ndx; in needed_to_boundto()
545 dyn = argstate->dynamic.data + ndx; in needed_to_boundto()
553 return (ndx); in needed_to_boundto()
572 Word ndx; in cmd_body() local
[all …]
H A Dsym.c367 data[symstate1->ndx]; in all_same()
375 data[symstate2->ndx]; in all_same()
498 for (; cnt--; ndx++) { in print_symstate()
499 value = sym[ndx].st_shndx; in print_symstate()
594 Word ndx, tblndx; in print_sym() local
654 ndx = 0; in print_sym()
657 ndx = symstate->ndx; in print_sym()
1234 if (symstate->ndx == 0) in symstate_cmd_body()
1546 Word ndx; in cpl_st_shndx() local
1560 for (ndx = 0; ndx < num_opt; ndx++) { in cpl_st_shndx()
[all …]
H A Dphdr.c137 Word ndx; /* Index of header if cmd */ member
220 argstate->ndx = (Word) elfedit_atoui_range( in process_args()
232 argstate->ndx = (Word) elfedit_atoconst( in process_args()
236 if (phdr->p_type == argstate->ndx) { in process_args()
237 argstate->ndx = i; in process_args()
354 Word ndx, cnt, by_type, type; in print_phdr() local
373 ndx = argstate->ndx; in print_phdr()
383 ndx = 0; in print_phdr()
386 phdr = argstate->obj_state->os_phdr + ndx; in print_phdr()
405 for (; cnt--; ndx++, phdr++) { in print_phdr()
[all …]
/illumos-gate/usr/src/cmd/sendmail/db/log/
H A Dlog_rec.c227 u_int32_t ndx;
262 u_int32_t ndx;
276 if (logp->dbentry_cnt <= ndx) {
299 if (logp->dbentry[ndx].deleted == 0 && logp->dbentry[ndx].dbp == NULL) {
300 logp->dbentry[ndx].dbp = dbp;
304 logp->dbentry[ndx].refcount++;
322 u_int32_t ndx;
338 if (ndx >= logp->dbentry_cnt ||
339 (!logp->dbentry[ndx].deleted && logp->dbentry[ndx].dbp == NULL)) {
411 __log_rem_logid(logp, ndx) in __log_rem_logid() argument
[all …]
/illumos-gate/usr/src/cmd/sgs/libld/common/
H A Dutil.c197 DBG_CALL(Dbg_args_str2chr(lml, ndx, opt, c)); in str2chr()
208 DBG_CALL(Dbg_args_str2chr(lml, ndx, opt, c)); in str2chr()
308 if ((c = str2chr(lml, ndx, argc, argv, in ld_getopt()
319 if ((c = str2chr(lml, ndx, argc, argv, in ld_getopt()
344 } else if ((c = str2chr(lml, argc, ndx, argv, in ld_getopt()
371 if ((c = str2chr(lml, ndx, argc, argv, in ld_getopt()
420 } else if ((c = str2chr(lml, ndx, argc, argv, in ld_getopt()
484 if ((c = str2chr(lml, ndx, argc, argv, in ld_getopt()
515 if ((c = str2chr(lml, ndx, argc, argv, in ld_getopt()
525 if ((c = str2chr(lml, ndx, argc, argv, in ld_getopt()
[all …]
H A Dunwind.c292 data += *ndx; in extract_uint()
298 (*ndx) += 4; in extract_uint()
389 uint64_t ndx = 0; in ld_unwind_make_hdr() local
414 ndx += 1; in ld_unwind_make_hdr()
558 uint64_t ndx = 0; in ld_unwind_populate_hdr() local
594 ndx += 1; in ld_unwind_populate_hdr()
627 ndx++; in ld_unwind_populate_hdr()
662 ndx++; in ld_unwind_populate_hdr()
670 &ndx, &ujunk, ciePflag, in ld_unwind_populate_hdr()
692 ndx++; in ld_unwind_populate_hdr()
[all …]
H A Dfiles.c837 Word ndx, cnum; in process_cap() local
876 for (ndx = 0, data = cdata; ndx < cnum; ndx++, data++) { in process_cap()
885 if (ndx == 0) in process_cap()
947 for (ndx = 0, data = cdata; ndx < cnum; ndx++, data++) { in process_cap()
1057 for (ndx = 0, data = cdata; ndx < cnum; ndx++, data++) { in process_cap()
2629 ndx = 0; in process_elf()
2633 ndx++; in process_elf()
2829 for (ndx = 1; ndx < ifl->ifl_shnum; ndx++) { in process_elf()
2853 for (ndx = 1; ndx < ifl->ifl_shnum; ndx++) { in process_elf()
2886 for (ndx = ordndx; ndx < ifl->ifl_shnum; ndx++) { in process_elf()
[all …]
H A Dgroups.c100 size_t ndx; in ld_get_group() local
110 for (ndx = 1; ndx < gdp->gd_cnt; ndx++) { in ld_get_group()
111 if (data[ndx] == scnndx) in ld_get_group()
171 size_t ndx; in ld_group_process() local
258 for (ndx = 1; ndx < gd.gd_cnt; ndx++) { in ld_group_process()
259 Word gndx = gd.gd_data[ndx]; in ld_group_process()
264 EC_WORD(gisc->is_scnndx), gisc->is_name, ndx, gndx); in ld_group_process()
/illumos-gate/usr/src/cmd/sgs/libelf/common/
H A Dgelf.c227 if (phnum <= ndx) { in gelf_getphdr()
254 *dst = ((GElf_Phdr *)phdrs)[ndx]; in gelf_getphdr()
274 if (phnum < ndx) { in gelf_update_phdr()
301 dst[ndx] = *(GElf_Phdr *)src; in gelf_update_phdr()
488 if ((entsize * ndx) >= data->d_size) { in gelf_getsym()
530 if ((entsize * ndx) >= dst->d_size) { in gelf_update_sym()
610 if ((entsize * ndx) >= dst->d_size) { in gelf_update_syminfo()
680 if ((entsize * ndx) >= dst->d_size) { in gelf_update_dyn()
760 if ((entsize * ndx) >= src->d_size) { in gelf_getmove()
841 if ((entsize * ndx) >= src->d_size) { in gelf_getrela()
[all …]
/illumos-gate/usr/src/cmd/sgs/liblddbg/common/
H A Dargs.c31 Dbg_args_option(Lm_list *lml, int ndx, int c, char *optarg) in Dbg_args_option() argument
37 dbg_print(lml, MSG_INTL(MSG_ARG_OPTARG), ndx, c, optarg); in Dbg_args_option()
39 dbg_print(lml, MSG_INTL(MSG_ARG_OPTION), ndx, c); in Dbg_args_option()
43 Dbg_args_str2chr(Lm_list *lml, int ndx, const char *opt, int c) in Dbg_args_str2chr() argument
48 dbg_print(lml, MSG_INTL(MSG_ARG_STR2CHR), ndx, opt, c); in Dbg_args_str2chr()
52 Dbg_args_Wldel(Lm_list *lml, int ndx, const char *opt) in Dbg_args_Wldel() argument
57 dbg_print(lml, MSG_INTL(MSG_ARG_WLDEL), ndx, opt); in Dbg_args_Wldel()
61 Dbg_args_file(Lm_list *lml, int ndx, char *file) in Dbg_args_file() argument
66 dbg_print(lml, MSG_INTL(MSG_ARG_FILE), ndx, file); in Dbg_args_file()
H A Dsupport.c74 Support_ndx ndx, const char *name) in Dbg_support_action() argument
83 if (ndx == LDS_START) in Dbg_support_action()
85 else if ((ndx == LDS_OPEN) || (ndx == LDS_FILE)) in Dbg_support_action()
87 else if (ndx == LDS_INSEC) in Dbg_support_action()
89 else if (ndx == LDS_SEC) in Dbg_support_action()
92 if ((ndx == LDS_ATEXIT) || (ndx == LDS_VERSION) || in Dbg_support_action()
93 (ndx == LDS_INPUT_DONE)) in Dbg_support_action()
H A Dtls.c79 ulong_t ndx; in Dbg_tls_static_block() local
84 for (ndx = 0; tlsmodlist[ndx]; ndx++) { in Dbg_tls_static_block()
85 dbg_print(lml, MSG_INTL(MSG_TLS_STATBLOCK1), ndx, in Dbg_tls_static_block()
86 tlsmodlist[ndx]->tm_modname); in Dbg_tls_static_block()
87 Dbg_tls_modent(lml, tlsmodlist[ndx]); in Dbg_tls_static_block()
/illumos-gate/usr/src/cmd/sgs/libelf/demo/
H A Ddcom.c93 int tfd, *shndx, ndx = 1, off = 0; in delete_comment() local
142 shndx[ndx] = -1; in delete_comment()
158 shndx[ndx] = ndx - off; in delete_comment()
159 ndx++; in delete_comment()
195 ndx = 1; in delete_comment()
201 if (shndx[ndx] == -1) { in delete_comment()
202 ndx++; in delete_comment()
242 tshdr.sh_info = shndx[ndx]; in delete_comment()
263 ndx++; in delete_comment()
306 for (ndx = 0; ndx < (int)phnum; ndx++) { in delete_comment()
[all …]
/illumos-gate/usr/src/cmd/sgs/elfedit/common/
H A Delfedit_machelf.c130 uint_t ndx; in elfedit64_init_obj_state() local
180 ndx++) { in elfedit64_init_obj_state()
188 tstate.os_dynndx = ndx; in elfedit64_init_obj_state()
262 for (ndx = 0; ndx < obj_state->os_symtabnum; ndx++) in elfedit64_init_obj_state()
263 obj_state->os_symtab[ndx].symt_shndx = symtabndx[ndx]; in elfedit64_init_obj_state()
268 ndx++, _cache++) { in elfedit64_init_obj_state()
269 _cache->sec_shndx = ndx; in elfedit64_init_obj_state()
281 symtab->symt_xshndx = ndx; in elfedit64_init_obj_state()
286 symtab->symt_syminfo = ndx; in elfedit64_init_obj_state()
291 symtab->symt_versym = ndx; in elfedit64_init_obj_state()
[all …]
H A Dutil_machelf.c122 Word ndx; in elfedit_name_to_shndx() local
125 for (ndx = 0; ndx < shnum; ndx++, sec++) { in elfedit_name_to_shndx()
158 Word ndx; in elfedit_type_to_shndx() local
161 for (ndx = 0; ndx < shnum; ndx++, sec++) { in elfedit_type_to_shndx()
221 for (ndx = 0; ndx < cnt; ndx++) { in elfedit_name_to_symndx()
572 Word ndx; in elfedit_sec_getsymtab() local
587 for (ndx = 0; ndx < obj_state->os_symtabnum; ndx++, symtab++) { in elfedit_sec_getsymtab()
648 Word ndx; in elfedit_sec_getxshndx() local
654 for (ndx = 0; ndx < obj_state->os_symtabnum; ndx++, symtab++) in elfedit_sec_getxshndx()
711 Word ndx; in elfedit_sec_getversym() local
[all …]
/illumos-gate/usr/src/cmd/sgs/libconv/common/
H A Ddynamic.c783 int ndx = 0; in conv_dyn_tag_strings() local
807 retarr[ndx++] = CONV_DS_ADDR(ds_null_cf); in conv_dyn_tag_strings()
811 retarr[ndx++] = CONV_DS_ADDR(ds_config_cf); in conv_dyn_tag_strings()
812 retarr[ndx++] = CONV_DS_ADDR(ds_versym_cf); in conv_dyn_tag_strings()
818 retarr[ndx++] = CONV_DS_ADDR(ds_sdreg_cf); in conv_dyn_tag_strings()
828 retarr[ndx++] = CONV_DS_ADDR(ds_null_nf); in conv_dyn_tag_strings()
832 retarr[ndx++] = CONV_DS_ADDR(ds_config_nf); in conv_dyn_tag_strings()
833 retarr[ndx++] = CONV_DS_ADDR(ds_versym_nf); in conv_dyn_tag_strings()
869 retarr[ndx++] = in conv_dyn_tag_strings()
883 retarr[ndx++] = NULL; in conv_dyn_tag_strings()
[all …]
/illumos-gate/usr/src/cmd/sgs/rtld/common/
H A Dtsort.c94 int ndx; in sort_scc() local
112 ndx = 1; in sort_scc()
117 IDX(lmp) = ndx++; in sort_scc()
141 IDX(lmp3) = ndx++; in sort_scc()
176 for (ndx = fndx; ndx < sort->s_lndx; ndx++) { in sort_scc()
177 lmp = sort->s_lmpa[ndx]; in sort_scc()
187 for (ndx = sort->s_lndx - 1; ndx >= fndx; ndx--) { in sort_scc()
188 lmp = sort->s_lmpa[ndx]; in sort_scc()
198 for (ndx = fndx; ndx < sort->s_lndx; ndx++) { in sort_scc()
230 for (ndx = fndx; ndx < sort->s_lndx; ndx++) { in sort_scc()
[all …]
/illumos-gate/usr/src/uts/sparc/krtld/
H A Dkobj_convrelstr.c91 int ndx = 31; in conv_reloc_SPARC_type() local
96 strbuf[ndx--] = '\0'; in conv_reloc_SPARC_type()
98 strbuf[ndx--] = '0' + (type % 10); in conv_reloc_SPARC_type()
100 } while ((ndx >= (int)0) && (type > (Word)0)); in conv_reloc_SPARC_type()
102 return (&strbuf[ndx + 1]); in conv_reloc_SPARC_type()
/illumos-gate/usr/src/tools/mbh_patch/
H A Dmbh_patch.c109 unsigned ndx, mem, mem2; in patch64() local
158 ndx = 0; in patch64()
163 ndx = mbh2->mb2_header_length; in patch64()
166 ndx = 0; in patch64()
169 if (ndx == 0 || mem2 + ndx > MULTIBOOT_SEARCH) { in patch64()
180 for (ndx = 0; ndx < eh->e_phnum; ndx++) { in patch64()
182 phdr = (Elf64_Phdr *)(phdrs + eh->e_phentsize * ndx); in patch64()
/illumos-gate/usr/src/cmd/mdb/common/modules/genunix/
H A Dcyclic.c131 int ndx, int l, int r, int depth) in cyclic_dump_node() argument
138 heap_left = CYC_HEAP_LEFT(ndx); in cyclic_dump_node()
139 heap_right = CYC_HEAP_RIGHT(ndx); in cyclic_dump_node()
140 me = heap[ndx]; in cyclic_dump_node()
142 if (ndx >= cpu->cyp_nelems) in cyclic_dump_node()
151 CYC_HEAP_LEFT(CYC_HEAP_PARENT(ndx)) == ndx ? " " : "", me, in cyclic_dump_node()
152 CYC_HEAP_LEFT(CYC_HEAP_PARENT(ndx)) == ndx ? "" : " "); in cyclic_dump_node()
517 int i, ndx, new_ndx, lev, rval; in cyctrace_walk_step() local
521 if ((ndx = buf[i].cyt_ndx) == -1) in cyctrace_walk_step()
543 ndx = buf->cyt_ndx; in cyctrace_walk_step()
[all …]

1234567