Searched refs:ndx (Results 1 - 25 of 164) sorted by relevance

1234567

/illumos-gate/usr/src/uts/sparc/krtld/
H A Dkobj_convrelstr.c91 int ndx = 31; local
96 strbuf[ndx--] = '\0';
98 strbuf[ndx--] = '0' + (type % 10);
100 } while ((ndx >= (int)0) && (type > (Word)0));
102 return (&strbuf[ndx + 1]);
/illumos-gate/usr/src/uts/intel/amd64/krtld/
H A Dkobj_convrelstr.c64 int ndx = 31; local
69 strbuf[ndx--] = '\0';
71 strbuf[ndx--] = '0' + (type % 10);
73 } while ((ndx >= (int)0) && (type > (Word)0));
75 return (&strbuf[ndx + 1]);
/illumos-gate/usr/src/uts/intel/ia32/krtld/
H A Dkobj_convrelstr.c67 int ndx = 31; local
72 strbuf[ndx--] = '\0';
74 strbuf[ndx--] = '0' + (type % 10);
76 } while ((ndx >= (int)0) && (type > (Word)0));
78 return (&strbuf[ndx + 1]);
/illumos-gate/usr/src/cmd/sgs/liblddbg/common/
H A Dargs.c31 Dbg_args_option(Lm_list *lml, int ndx, int c, char *optarg) argument
37 dbg_print(lml, MSG_INTL(MSG_ARG_OPTARG), ndx, c, optarg);
39 dbg_print(lml, MSG_INTL(MSG_ARG_OPTION), ndx, c);
43 Dbg_args_str2chr(Lm_list *lml, int ndx, const char *opt, int c) argument
48 dbg_print(lml, MSG_INTL(MSG_ARG_STR2CHR), ndx, opt, c);
52 Dbg_args_Wldel(Lm_list *lml, int ndx, const char *opt) argument
57 dbg_print(lml, MSG_INTL(MSG_ARG_WLDEL), ndx, opt);
61 Dbg_args_file(Lm_list *lml, int ndx, char *file) argument
66 dbg_print(lml, MSG_INTL(MSG_ARG_FILE), ndx, file);
H A Dsupport.c74 Support_ndx ndx, const char *name)
83 if (ndx == LDS_START)
85 else if ((ndx == LDS_OPEN) || (ndx == LDS_FILE))
87 else if (ndx == LDS_INSEC)
89 else if (ndx == LDS_SEC)
92 if ((ndx == LDS_ATEXIT) || (ndx == LDS_VERSION) ||
93 (ndx == LDS_INPUT_DONE))
73 Dbg_support_action(Lm_list *lml, const char *obj, const char *func, Support_ndx ndx, const char *name) argument
H A Dtls.c79 ulong_t ndx; local
84 for (ndx = 0; tlsmodlist[ndx]; ndx++) {
85 dbg_print(lml, MSG_INTL(MSG_TLS_STATBLOCK1), ndx,
86 tlsmodlist[ndx]->tm_modname);
87 Dbg_tls_modent(lml, tlsmodlist[ndx]);
/illumos-gate/usr/src/cmd/sendmail/db/log/
H A Dlog_rec.c167 * entry in the dbentry table for this ndx.
222 __log_do_open(lp, uid, name, ftype, ndx)
227 u_int32_t ndx;
246 (void)__log_add_logid(lp, dbp, name, ndx);
258 __log_add_logid(logp, dbp, name, ndx)
262 u_int32_t ndx;
272 * Check if we need to grow the table. Note, ndx is 0-based (the
276 if (logp->dbentry_cnt <= ndx) {
278 (ndx + DB_GROW_SIZE) * sizeof(DB_ENTRY))) != 0)
282 for (i = logp->dbentry_cnt; i < ndx
[all...]
/illumos-gate/usr/src/cmd/sgs/elfedit/modules/common/
H A Dcap.c186 cap_group_extents(ARGSTATE *argstate, Word ndx, Word *ret_start_ndx, argument
189 *ret_end_ndx = ndx;
195 while ((ndx > 0) && (argstate->cap.data[ndx].c_tag == CA_SUNW_NULL))
196 ndx--;
197 while ((ndx > 0) && (argstate->cap.data[ndx - 1].c_tag != CA_SUNW_NULL))
198 ndx--;
199 *ret_start_ndx = ndx;
205 ndx
223 Word ndx = argstate->cap.grp_start_ndx; local
251 argstate_cap_group(ARGSTATE *argstate, Word ndx) argument
271 group_title(ARGSTATE *argstate, Word ndx) argument
387 Word cnt, ndx, printed = 0; local
592 Word ndx, ca_value; local
725 cap_set(ARGSTATE *argstate, Cap *cap, Word ndx, Word cap_ndx, const char *cap_name, Xword cap_tag, elfedit_const_t const_type) argument
774 Word ndx; local
[all...]
H A Dstr.c101 STR_OPT_F_SHNDX = 16, /* -shndx ndx: strtab spec. by index */
120 Word ndx; /* Table offset if (argc > 0) */ member in struct:__anon1515::__anon1516
199 shndx_to_strtab(elfedit_obj_state_t *obj_state, Word ndx) argument
206 if (ndx < obj_state->os_shnum) {
207 Shdr *shdr = obj_state->os_secarr[ndx].sec_shdr;
213 ndx = shdr->sh_link;
221 ndx = shdr->sh_link;
222 if (ndx < obj_state->os_shnum)
223 ndx =
224 obj_state->os_secarr[ndx]
252 Word ndx; local
430 Word ndx; local
521 Word ndx = argstate->str.ndx; local
623 Word ndx = argstate->str.ndx; local
753 Word ndx; local
824 Word ndx; local
[all...]
H A Ddyn.c111 DYN_OPT_F_DYNNDX_VAL = 16, /* -dynndx ndx: Index is value to */
190 Word ndx; local
206 ndx = argstate->dyn.null_ndx;
207 dyn = &argstate->dyn.data[ndx];
214 return (ndx);
298 Word end_ndx, ndx, printed = 0; local
329 ndx = arg;
331 ndx = 0;
342 dyn = &argstate->dyn.data[ndx];
348 * only want to display one item (ndx
626 Word ndx; local
1135 Word ndx; local
[all...]
H A Dsyminfo.c253 * ndx - Index of first symbol to display
257 dump_syminfo(ARGSTATE *argstate, Word ndx, Word cnt) argument
263 syminfo = argstate->syminfo.data + ndx;
266 sym = argstate->sym.data + ndx;
278 for (; cnt-- > 0; ndx++, syminfo++, sym++) {
294 Elf_syminfo_entry(0, ndx, syminfo, name, needed);
309 * ndx - Index of first symbol to display
314 Word ndx, Word cnt)
336 dump_syminfo(argstate, ndx, cnt);
350 for (syminfo += ndx; cn
313 print_syminfo(SYMINFO_CMD_T cmd, int autoprint, ARGSTATE *argstate, Word ndx, Word cnt) argument
470 Word str_offset, ndx, numdyn; local
572 Word ndx; local
[all...]
H A Dshdr.c191 PRINT_SHDR_ALL, /* Print all shdr[ndx:ndx+cnt-1] */
192 PRINT_SHDR_TYPE, /* Print all shdr[ndx:ndx+cnt-1] with type */
193 /* of shdr[ndx] */
194 PRINT_SHDR_NAME, /* Print all shdr[ndx:ndx+cnt-1] with name */
195 /* of shdr[ndx] */
207 * ndx - Index of first section to display
213 Word ndx, Wor
212 print_shdr(SHDR_CMD_T cmd, int autoprint, ARGSTATE *argstate, Word ndx, Word cnt, PRINT_SHDR_T print_type) argument
256 elfedit_printf(MSG_INTL(MSG_ELF_SHDR), ndx, local
362 Word ndx; local
758 Word ndx; local
815 Word ndx; local
[all...]
H A Dsym.c125 SYM_OPT_F_SHNDX = 32, /* -shndx ndx: section spec. by index */
150 Word ndx; /* If argstate.argc > 0, this is the table index */ member in struct:__anon1522
239 * ndx - Index of first symbol to display
243 dump_symtab(ARGSTATE *argstate, SYMSTATE *symstate, Word ndx, Word cnt) argument
258 sym = symstate->sym.data + ndx;
273 for (; cnt-- > 0; ndx++, sym++) {
275 MSG_ORIG(MSG_FMT_INDEX), EC_XWORD(ndx));
277 symstate->versym.data[ndx];
282 shndx = symstate->xshndx.data[ndx];
311 sym1 = &symstate1->sym.data[symstate1->ndx];
424 print_symstate(SYM_CMD_T cmd, ARGSTATE *argstate, SYMSTATE *symstate, elfedit_outstyle_t outstyle, Word ndx, Word cnt) argument
594 Word ndx, tblndx; local
1546 Word ndx; local
[all...]
/illumos-gate/usr/src/cmd/sgs/elfdump/common/
H A Ddwarf.c64 * ndx - Address of variable giving index to start byte in data.
70 * *ndx is incremented by the size of the extracted datum.
76 dwarf_extract_uint(uchar_t *data, size_t len, uint64_t *ndx, int size, argument
79 if (((*ndx + size) > len) ||
80 ((*ndx + size) < *ndx))
85 *ret = (data[(*ndx)++]);
92 data += *ndx;
98 (*ndx) += 2;
107 data += *ndx;
206 dump_cfi(uchar_t *data, uint64_t off, uint64_t *ndx, uint_t len, dump_cfi_state_t *state, const char *msg, int indent) argument
691 uint64_t off, ndx, length, id; local
[all...]
/illumos-gate/usr/src/cmd/sgs/librtld/common/
H A Dsyms.c88 Word num, ndx; local
98 for (ndx = 1, info++; ndx < num; ndx++, info++) {
102 if (alist_append(nodirect, &ndx, sizeof (Word), 20) == 0)
/illumos-gate/usr/src/cmd/sgs/libelf/common/
H A Dgelf.c216 gelf_getphdr(Elf *elf, int ndx, GElf_Phdr *dst) argument
227 if (phnum <= ndx) {
239 Elf32_Phdr *p = &((Elf32_Phdr *)elf32_getphdr(elf))[ndx];
254 *dst = ((GElf_Phdr *)phdrs)[ndx];
263 gelf_update_phdr(Elf *elf, int ndx, GElf_Phdr *src) argument
274 if (phnum < ndx) {
281 Elf32_Phdr *dst = &((Elf32_Phdr *)elf32_getphdr(elf))[ndx];
301 dst[ndx] = *(GElf_Phdr *)src;
468 gelf_getsym(Elf_Data * data, int ndx, GElf_Sym * dst) argument
488 if ((entsize * ndx) >
510 gelf_update_sym(Elf_Data *dst, int ndx, GElf_Sym *src) argument
555 gelf_getsyminfo(Elf_Data *data, int ndx, GElf_Syminfo *dst) argument
591 gelf_update_syminfo(Elf_Data *dst, int ndx, GElf_Syminfo *src) argument
625 gelf_getdyn(Elf_Data *data, int ndx, GElf_Dyn *dst) argument
661 gelf_update_dyn(Elf_Data *dst, int ndx, GElf_Dyn *src) argument
700 gelf_getsymshndx(Elf_Data *symdata, Elf_Data *shndxdata, int ndx, GElf_Sym *symptr, Elf32_Word *xshndx) argument
721 gelf_update_symshndx(Elf_Data *symdata, Elf_Data *shndxdata, int ndx, GElf_Sym *symptr, Elf32_Word xshndx) argument
741 gelf_getmove(Elf_Data *src, int ndx, GElf_Move *dst) argument
781 gelf_update_move(Elf_Data *dest, int ndx, GElf_Move *src) argument
822 gelf_getrela(Elf_Data *src, int ndx, GElf_Rela *dst) argument
867 gelf_update_rela(Elf_Data *dst, int ndx, GElf_Rela *src) argument
915 gelf_getrel(Elf_Data *src, int ndx, GElf_Rel *dst) argument
958 gelf_update_rel(Elf_Data *dst, int ndx, GElf_Rel *src) argument
1017 gelf_getcap(Elf_Data *data, int ndx, GElf_Cap *dst) argument
1053 gelf_update_cap(Elf_Data *dst, int ndx, GElf_Cap *src) argument
[all...]
/illumos-gate/usr/src/cmd/sgs/libld/common/
H A Dutil.c310 * ndx - Starting optind for current item
321 str2chr(Lm_list *lml, int ndx, int argc, char **argv, char *arg, int c, argument
330 DBG_CALL(Dbg_args_str2chr(lml, ndx, opt, c));
341 DBG_CALL(Dbg_args_str2chr(lml, ndx, opt, c));
400 ld_getopt(Lm_list *lml, int ndx, int argc, char **argv) argument
410 if ((c = str2chr(lml, ndx, argc, argv, arg, 'R',
418 if ((c = str2chr(lml, ndx, argc, argv, arg, 'G',
423 } else if ((c = str2chr(lml, ndx, argc, argv, arg, 'h',
431 if ((c = str2chr(lml, ndx, argc, argv, arg, 'z',
441 if ((c = str2chr(lml, ndx, arg
[all...]
H A Dunwind.c287 extract_uint(const uchar_t *data, uint64_t *ndx, int do_swap) argument
292 data += *ndx;
298 (*ndx) += 4;
389 uint64_t ndx = 0; local
397 length = extract_uint(data + off, &ndx, bswap);
404 id = extract_uint(data + off, &ndx, bswap);
413 cieversion = data[off + ndx];
414 ndx += 1;
558 uint64_t ndx = 0; local
565 length = extract_uint(data + off, &ndx, bswa
[all...]
H A Dgroups.c100 size_t ndx; local
110 for (ndx = 1; ndx < gdp->gd_cnt; ndx++) {
111 if (data[ndx] == scnndx)
171 size_t ndx; local
258 for (ndx = 1; ndx < gd.gd_cnt; ndx++) {
261 if ((gndx = gd.gd_data[ndx]) >
[all...]
H A Dfiles.c164 Word ndx, int ident, Ofl_desc *ofl)
178 isp->is_scnndx = ndx;
200 ifl->ifl_isdesc[ndx] = isp;
821 Word ndx, cnum; local
860 for (ndx = 0, data = cdata; ndx < cnum; ndx++, data++) {
869 if (ndx == 0)
889 descapndx = ndx;
931 for (ndx
163 process_section(const char *name, Ifl_desc *ifl, Shdr *shdr, Elf_Scn *scn, Word ndx, int ident, Ofl_desc *ofl) argument
1280 process_input(const char *name, Ifl_desc *ifl, Shdr *shdr, Elf_Scn *scn, Word ndx, int ident, Ofl_desc *ofl) argument
1295 process_reloc(const char *name, Ifl_desc *ifl, Shdr *shdr, Elf_Scn *scn, Word ndx, int ident, Ofl_desc *ofl) argument
1320 process_strtab(const char *name, Ifl_desc *ifl, Shdr *shdr, Elf_Scn *scn, Word ndx, int ident, Ofl_desc *ofl) argument
1375 invalid_section(const char *name, Ifl_desc *ifl, Shdr *shdr, Elf_Scn *scn, Word ndx, int ident, Ofl_desc *ofl) argument
1434 process_progbits_alloc(const char *name, Ifl_desc *ifl, Shdr *shdr, Word ndx, int *ident, Ofl_desc *ofl, Boolean is_stab_index, Word *is_flags) argument
1528 process_progbits(const char *name, Ifl_desc *ifl, Shdr *shdr, Elf_Scn *scn, Word ndx, int ident, Ofl_desc *ofl) argument
1601 process_debug(const char *name, Ifl_desc *ifl, Shdr *shdr, Elf_Scn *scn, Word ndx, int ident, Ofl_desc *ofl) argument
1617 process_nobits(const char *name, Ifl_desc *ifl, Shdr *shdr, Elf_Scn *scn, Word ndx, int ident, Ofl_desc *ofl) argument
1638 process_array(const char *name, Ifl_desc *ifl, Shdr *shdr, Elf_Scn *scn, Word ndx, int ident, Ofl_desc *ofl) argument
1682 process_sym_shndx(const char *name, Ifl_desc *ifl, Shdr *shdr, Elf_Scn *scn, Word ndx, int ident, Ofl_desc *ofl) argument
1738 process_rel_dynamic(const char *name, Ifl_desc *ifl, Shdr *shdr, Elf_Scn *scn, Word ndx, int ident, Ofl_desc *ofl) argument
2081 process_dynamic_isgnu(const char *name, Ifl_desc *ifl, Shdr *shdr, Elf_Scn *scn, Word ndx, int ident, Ofl_desc *ofl) argument
2333 process_group(const char *name, Ifl_desc *ifl, Shdr *shdr, Elf_Scn *scn, Word ndx, int ident, Ofl_desc *ofl) argument
2434 process_exclude(const char *name, Ifl_desc *ifl, Shdr *shdr, Elf_Scn *scn, Word ndx, Ofl_desc *ofl) argument
2535 Word ndx, sndx, ordndx = 0, ordcnt = 0; local
[all...]
/illumos-gate/usr/src/cmd/sgs/libelf/demo/
H A Ddcom.c93 int tfd, *shndx, ndx = 1, off = 0; local
142 shndx[ndx] = -1;
158 shndx[ndx] = ndx - off;
159 ndx++;
195 ndx = 1;
201 if (shndx[ndx] == -1) {
202 ndx++;
242 tshdr.sh_info = shndx[ndx];
263 ndx
[all...]
/illumos-gate/usr/src/uts/common/sys/
H A Dcyclic_impl.h543 #define CYC_HEAP_PARENT(ndx) (((ndx) - 1) >> 1)
544 #define CYC_HEAP_RIGHT(ndx) (((ndx) + 1) << 1)
545 #define CYC_HEAP_LEFT(ndx) ((((ndx) + 1) << 1) - 1)
/illumos-gate/usr/src/cmd/sgs/elfedit/common/
H A Delfedit_machelf.c129 uint_t ndx; local
178 for (ndx = 1, scn = NULL; scn = elf_nextscn(tstate.os_elf, scn);
179 ndx++) {
187 tstate.os_dynndx = ndx;
201 symtabndx[tstate.os_symtabnum++] = ndx;
260 for (ndx = 0; ndx < obj_state->os_symtabnum; ndx++)
261 obj_state->os_symtab[ndx].symt_shndx = symtabndx[ndx];
[all...]
/illumos-gate/usr/src/cmd/sgs/rtld/common/
H A Dtls.c50 ulong_t ndx, cnt; local
72 for (ndx = 0, bits = 1; bits; bits = bits << 1, ndx++) {
75 ndx = (cnt * (sizeof (uint_t)) * 8) + ndx;
76 tmid.tmi_lowfree = ndx + 1;
77 return (ndx);
95 ndx = (tmid.tmi_cnt * sizeof (uint_t)) * 8;
96 tmid.tmi_lowfree = ndx + 1;
99 return (ndx);
[all...]
/illumos-gate/usr/src/cmd/mdb/common/modules/genunix/
H A Dcyclic.c133 int ndx, int l, int r, int depth)
140 heap_left = CYC_HEAP_LEFT(ndx);
141 heap_right = CYC_HEAP_RIGHT(ndx);
142 me = heap[ndx];
144 if (ndx >= cpu->cyp_nelems)
153 CYC_HEAP_LEFT(CYC_HEAP_PARENT(ndx)) == ndx ? " " : "", me,
154 CYC_HEAP_LEFT(CYC_HEAP_PARENT(ndx)) == ndx ? "" : " ");
519 int i, ndx, new_nd local
132 cyclic_dump_node(cyc_cpu_t *cpu, cyc_index_t *heap, char **c, size_t w, int ndx, int l, int r, int depth) argument
708 cycid_cpu(cyc_cpu_t *addr, int ndx) argument
[all...]

Completed in 162 milliseconds

1234567