Home
last modified time | relevance | path

Searched refs:rtype (Results 1 – 25 of 69) sorted by relevance

123

/illumos-gate/usr/src/cmd/rpcbind/
H A Drpcb_stat.c52 rpcbs_procinfo(int rtype, rpcproc_t proc) in rpcbs_procinfo() argument
54 assert(rtype >= 0 && rtype < RPCBVERS_STAT); in rpcbs_procinfo()
57 if ((rtype == RPCBVERS_2_STAT) && (proc > rpcb_highproc_2)) in rpcbs_procinfo()
60 assert(rtype != RPCBVERS_2_STAT); in rpcbs_procinfo()
63 if ((rtype == RPCBVERS_3_STAT) && (proc > rpcb_highproc_3)) in rpcbs_procinfo()
66 if ((rtype == RPCBVERS_4_STAT) && (proc > rpcb_highproc_4)) in rpcbs_procinfo()
69 atomic_add_int((uint_t *)&inf[rtype].info[proc], 1); in rpcbs_procinfo()
73 rpcbs_set(int rtype, bool_t success) in rpcbs_set() argument
75 assert(rtype >= 0 && rtype < RPCBVERS_STAT); in rpcbs_set()
80 atomic_add_int((uint_t *)&inf[rtype].setinfo, 1); in rpcbs_set()
[all …]
/illumos-gate/usr/src/uts/common/krtld/
H A Dreloc.h244 #define REL_ERR_UNIMPL(lml, file, sym, rtype) \ argument
247 _kobj_printf(ops, MSG_REL_UNIMPL, (int)(rtype))
249 #define REL_ERR_UNSUPSZ(lml, file, sym, rtype, size) \ argument
250 _kobj_printf(ops, MSG_REL_PREGEN, CONV_RELOC_TYPE((rtype))); \
255 #define REL_ERR_NONALIGN(lml, file, sym, rtype, off) \ argument
256 _kobj_printf(ops, MSG_REL_PREGEN, CONV_RELOC_TYPE((rtype))); \
261 #define REL_ERR_UNNOBITS(lml, file, sym, rtype, nbits) \ argument
262 _kobj_printf(ops, MSG_REL_PREGEN, CONV_RELOC_TYPE((rtype))); \
267 #define REL_ERR_LOSEBITS(lml, file, sym, rtype, uvalue, nbits, off) \ argument
268 _kobj_printf(ops, MSG_REL_PREGEN, CONV_RELOC_TYPE((rtype))); \
[all …]
/illumos-gate/usr/src/uts/sparc/krtld/
H A Ddoreloc.c366 do_reloc_krtld(uchar_t rtype, uchar_t *off, Xword *value, const char *sym, in do_reloc_krtld() argument
376 do_reloc_rtld(uchar_t rtype, uchar_t *off, Xword *value, const char *sym, in do_reloc_krtld()
382 uchar_t rtype = rdesc->rel_rtype; in do_reloc_krtld() local
391 rep = &reloc_table[rtype]; in do_reloc_krtld()
408 REL_ERR_UNIMPL(lml, file, sym, rtype); in do_reloc_krtld()
471 REL_ERR_NONALIGN(lml, file, sym, rtype, (uintptr_t)off); in do_reloc_krtld()
492 REL_ERR_UNNOBITS(lml, file, sym, rtype, in do_reloc_krtld()
528 ((rtype == R_SPARC_HIX22) || (rtype == R_SPARC_TLS_LE_HIX22))) in do_reloc_krtld()
537 REL_ERR_LOSEBITS(lml, file, sym, rtype, uvalue, 2, off); in do_reloc_krtld()
549 if ((rtype == R_SPARC_GOTDATA_HIX22) || in do_reloc_krtld()
[all …]
H A Dkobj_reloc.c113 uint_t rtype; in do_relocate() local
157 rtype = ELF_R_TYPE(((Rela *)reladdr)->r_info); in do_relocate()
165 if ((rtype > R_SPARC_NUM) || IS_TLS_INS(rtype)) { in do_relocate()
167 rtype); in do_relocate()
183 conv_reloc_SPARC_type(rtype)); in do_relocate()
191 if (rtype == R_SPARC_NONE) in do_relocate()
201 if (rtype == R_SPARC_RELATIVE) { in do_relocate()
249 if (IS_EXTOFFSET(rtype)) { in do_relocate()
258 if (IS_PC_RELATIVE(rtype)) { in do_relocate()
272 if (do_reloc_krtld(rtype, (unsigned char *)off, (Xword *)&value, in do_relocate()
/illumos-gate/usr/src/uts/intel/amd64/krtld/
H A Ddoreloc.c206 do_reloc_krtld(uchar_t rtype, uchar_t *off, Xword *value, const char *sym, in do_reloc_krtld() argument
216 do_reloc_rtld(uchar_t rtype, uchar_t *off, Xword *value, const char *sym, in do_reloc_krtld()
223 uchar_t rtype = rdesc->rel_rtype; in do_reloc_krtld() local
227 rep = &reloc_table[rtype]; in do_reloc_krtld()
270 if (rtype == R_AMD64_32) { in do_reloc_krtld()
281 REL_ERR_NOFIT(lml, file, sym, rtype, *value); in do_reloc_krtld()
284 } else if ((rtype == R_AMD64_32S) || (rtype == R_AMD64_PC32) || in do_reloc_krtld()
285 (rtype == R_AMD64_GOTPCREL) || (rtype == R_AMD64_GOTPC32) || in do_reloc_krtld()
286 (rtype == R_AMD64_GOTPCRELX) || in do_reloc_krtld()
287 (rtype == R_AMD64_REX_GOTPCRELX)) { in do_reloc_krtld()
[all …]
H A Dkobj_reloc.c147 register unsigned int rtype; in do_relocate() local
168 rtype = ELF_R_TYPE(((Rela *)reladdr)->r_info); in do_relocate()
176 if ((rtype > R_AMD64_NUM) || IS_TLS_INS(rtype)) { in do_relocate()
178 rtype); in do_relocate()
189 if (rtype == R_AMD64_NONE) in do_relocate()
198 conv_reloc_amd64_type(rtype)); in do_relocate()
214 if (rtype == R_AMD64_RELATIVE) { in do_relocate()
271 if (IS_PC_RELATIVE(rtype)) in do_relocate()
281 if (do_reloc_krtld(rtype, (unsigned char *)off, &value, in do_relocate()
/illumos-gate/usr/src/cmd/sgs/rtld/sparcv9/
H A Dsparc_elf.c745 uchar_t rtype; in elf_reloc() local
879 rtype = ELF_R_TYPE(((Rela *)relbgn)->r_info, M_MACH); in elf_reloc()
888 if ((rtype == R_SPARC_RELATIVE) && in elf_reloc()
901 rtype = ELF_R_TYPE(((Rela *)relbgn)->r_info, M_MACH); in elf_reloc()
914 if (rtype == R_SPARC_NONE) in elf_reloc()
922 if (rtype != R_SPARC_REGISTER) { in elf_reloc()
936 elf_reloc_bad(lmp, (void *)rel, rtype, roffset, in elf_reloc()
993 if ((rtype == R_SPARC_TLS_DTPMOD32) || in elf_reloc()
994 (rtype == R_SPARC_TLS_DTPMOD64)) { in elf_reloc()
1000 } else if ((rtype == R_SPARC_TLS_TPOFF32) || in elf_reloc()
[all …]
/illumos-gate/usr/src/cmd/lp/lib/msgs/
H A D_getmessage.c40 int _getmessage ( char * buf, short rtype, va_list arg ) in _getmessage() argument
42 int _getmessage (buf, rtype, arg) in _getmessage()
44 short rtype;
81 if (etype != rtype)
83 if (rtype > 0 && rtype <= LAST_MESSAGE)
84 fmt = _lp_msg_fmts[rtype];
/illumos-gate/usr/src/boot/common/
H A Dreloc_elf.c83 Elf_Size rtype, symidx; in __elfN()
93 rtype = ELF_R_TYPE(rel->r_info); in __elfN()
102 rtype = ELF_R_TYPE(rela->r_info); in __elfN()
119 switch (rtype) { in __elfN()
133 printf("\nunhandled relocation type %u\n", (u_int)rtype); in __elfN()
140 Elf_Size rtype, symidx; in __elfN()
150 rtype = ELF_R_TYPE(rel->r_info); in __elfN()
159 rtype = ELF_R_TYPE(rela->r_info); in __elfN()
177 switch (rtype) { in __elfN()
190 printf("\nunhandled relocation type %u\n", (u_int)rtype); in __elfN()
/illumos-gate/usr/src/cmd/sgs/rtld/sparc/
H A Dsparc_elf.c539 uchar_t rtype; in elf_reloc() local
651 rtype = ELF_R_TYPE(((Rela *)relbgn)->r_info, M_MACH); in elf_reloc()
658 if ((rtype == R_SPARC_RELATIVE) && in elf_reloc()
671 rtype = ELF_R_TYPE(((Rela *)relbgn)->r_info, M_MACH); in elf_reloc()
684 if (rtype == R_SPARC_NONE) in elf_reloc()
692 if (rtype != R_SPARC_REGISTER) { in elf_reloc()
706 elf_reloc_bad(lmp, (void *)rel, rtype, roffset, in elf_reloc()
766 if (rtype == R_SPARC_TLS_DTPMOD32) { in elf_reloc()
772 } else if (rtype == R_SPARC_TLS_TPOFF32) { in elf_reloc()
774 rel, rtype, 0, roffset, 0)) == 0) { in elf_reloc()
[all …]
/illumos-gate/usr/src/cmd/sgs/rtld/amd64/
H A Damd64_elf.c387 uchar_t rtype; in elf_reloc() local
522 rtype = ELF_R_TYPE(((Rela *)relbgn)->r_info, M_MACH); in elf_reloc()
529 if ((rtype == R_AMD64_RELATIVE) && in elf_reloc()
542 rtype = ELF_R_TYPE(((Rela *)relbgn)->r_info, M_MACH); in elf_reloc()
557 (rtype == R_AMD64_JUMP_SLOT) && in elf_reloc()
575 if (rtype == R_AMD64_NONE) in elf_reloc()
596 elf_reloc_bad(lmp, (void *)rel, rtype, roffset, in elf_reloc()
634 if (rtype == R_AMD64_DTPMOD64) { in elf_reloc()
640 } else if ((rtype == R_AMD64_TPOFF64) || in elf_reloc()
641 (rtype == R_AMD64_TPOFF32)) { in elf_reloc()
[all …]
/illumos-gate/usr/src/cmd/sgs/rtld/i386/
H A Di386_elf.c365 uchar_t rtype; in elf_reloc() local
500 rtype = ELF_R_TYPE(((Rel *)relbgn)->r_info, M_MACH); in elf_reloc()
507 if ((rtype == R_386_RELATIVE) && in elf_reloc()
520 rtype = ELF_R_TYPE(((Rel *)relbgn)->r_info, M_MACH); in elf_reloc()
535 (rtype == R_386_JMP_SLOT) && in elf_reloc()
552 if (rtype == R_386_NONE) in elf_reloc()
573 elf_reloc_bad(lmp, (void *)rel, rtype, roffset, in elf_reloc()
611 if (rtype == R_386_TLS_DTPMOD32) { in elf_reloc()
617 } else if (rtype == R_386_TLS_TPOFF) { in elf_reloc()
619 rel, rtype, 0, roffset, 0)) == 0) { in elf_reloc()
[all …]
/illumos-gate/usr/src/cmd/pools/poolstat/
H A Dpoolstat.c761 get_resources(const char *pool_name, const char *rtype, uint_t *nelem) in get_resources() argument
769 if (strcmp(rtype, PSET_TYPE_NAME) == 0) { in get_resources()
774 die(gettext(ERR_UNSUPP_RTYPE), rtype); in get_resources()
779 if ((pool_value_set_string(pvals[0], rtype)) == -1) in get_resources()
817 prt_resource_stats_by_type(pool_resource_t **resources, const char *rtype) in prt_resource_stats_by_type() argument
827 if (strcmp(rtype, PSET_TYPE_NAME) == 0) { in prt_resource_stats_by_type()
832 die(gettext(ERR_UNSUPP_RTYPE), rtype); in prt_resource_stats_by_type()
862 update_resource_stats(pool_resource_t *resource, const char *rtype) in update_resource_stats() argument
870 if (strcmp(rtype, PSET_TYPE_NAME) == 0) { in update_resource_stats()
874 die(gettext(ERR_UNSUPP_RTYPE), rtype); in update_resource_stats()
[all …]
/illumos-gate/usr/src/cmd/fs.d/autofs/
H A Dns_fnutils.c117 reftype_t rtype; in reftype() local
119 for (rtype = 0; rtype < NUM_REFTYPES; rtype++) { in reftype()
120 if (ident_str_equal(fn_ref_type(ref), reftypes[rtype])) { in reftype()
124 return (rtype); in reftype()
/illumos-gate/usr/src/cmd/sgs/libld/common/
H A Dmachrel.sparc.c858 Word rtype = arsp->rel_rtype; in tls_fixups() local
871 switch (rtype) { in tls_fixups()
909 switch (rtype) { in tls_fixups()
1010 Word rtype = arsp->rel_rtype; in gotop_fixups() local
1016 switch (rtype) { in gotop_fixups()
1453 Word rtype = rsp->rel_rtype; in ld_add_outrel() local
1459 if ((rtype == R_SPARC_HIPLT22) || (rtype == R_SPARC_LOPLT10)) { in ld_add_outrel()
1474 if ((rtype == R_SPARC_H44) || (rtype == R_SPARC_M44) || in ld_add_outrel()
1475 (rtype == R_SPARC_L44)) { in ld_add_outrel()
1718 Word rtype = rsp->rel_rtype; in ld_reloc_GOTOP() local
[all …]
H A Drelocate.c239 uchar_t rtype, ttype; in disp_scansyms() local
265 rtype = ELF_ST_TYPE(rsym->st_info); in disp_scansyms()
275 ((rtype != STT_OBJECT) && (rtype != STT_SECTION))) in disp_scansyms()
309 if ((rtype != STT_OBJECT) && (rtype != STT_SECTION) && in disp_scansyms()
861 Word rtype = rsp->rel_rtype; in ld_reloc_GOT_relative() local
904 rsp->rel_rtype = rtype; in ld_reloc_GOT_relative()
915 rsp->rel_rtype = rtype; in ld_reloc_GOT_relative()
1149 Word rtype = rsp->rel_rtype, w2align; in reloc_exec() local
1260 rsp->rel_rtype = rtype; in reloc_exec()
1321 Word rtype = rsp->rel_rtype; in reloc_relobj() local
[all …]
H A Dmachrel.intel.c470 Word rtype = arsp->rel_rtype; in tls_fixups() local
481 switch (rtype) { in tls_fixups()
526 switch (rtype) { in tls_fixups()
1322 Word rtype = rsp->rel_rtype; in ld_reloc_TLS() local
1331 if ((flags & FLG_OF_EXEC) || (IS_TLS_IE(rtype))) { in ld_reloc_TLS()
1346 rtype, R_386_TLS_TPOFF, 0) == S_ERROR) in ld_reloc_TLS()
1353 if (IS_TLS_IE(rtype)) { in ld_reloc_TLS()
1363 (rtype == R_386_TLS_IE)) { in ld_reloc_TLS()
1380 if (IS_TLS_LE(rtype) || (rtype == R_386_TLS_LDO_32)) in ld_reloc_TLS()
1392 if (IS_TLS_LD(rtype) && ((gnp = ld_find_got_ndx(sdp->sd_GOTndxs, in ld_reloc_TLS()
[all …]
/illumos-gate/usr/src/lib/abi/apptrace/common/
H A Dapptraceutil.c56 ctf_id_t rtype = ctf_type_resolve(ctfp, type); in print_value() local
61 if (ctf_type_kind(ctfp, rtype) == CTF_K_POINTER) { in print_value()
62 type = ctf_type_reference(ctfp, rtype); in print_value()
63 rtype = ctf_type_resolve(ctfp, type); in print_value()
65 if (ctf_type_encoding(ctfp, rtype, &e) == 0 && in print_value()
77 if (ctf_type_kind(ctfp, rtype) == CTF_K_STRUCT) { in print_value()
87 (void) ctf_type_visit(ctfp, rtype, elt_print, &pa); in print_value()
H A Dapptrace.c590 ctf_id_t type, rtype; in la_sparcv9_pltenter() local
617 rtype = ctf_type_resolve(ctfp, finfo.ctc_return); in la_sparcv9_pltenter()
618 type = ctf_type_reference(ctfp, rtype); in la_sparcv9_pltenter()
619 rtype = ctf_type_resolve(ctfp, type); in la_sparcv9_pltenter()
620 kind = ctf_type_kind(ctfp, rtype); in la_sparcv9_pltenter()
647 rtype = ctf_type_resolve(ctfp, argt[i]); in la_sparcv9_pltenter()
648 type = ctf_type_reference(ctfp, rtype); in la_sparcv9_pltenter()
649 rtype = ctf_type_resolve(ctfp, type); in la_sparcv9_pltenter()
650 kind = ctf_type_kind(ctfp, rtype); in la_sparcv9_pltenter()
/illumos-gate/usr/src/tools/smatch/src/
H A Devaluate.c487 struct symbol *rtype) in restricted_binop_type() argument
492 if (ltype == rtype) { in restricted_binop_type()
495 if (unfoul(ltype) == rtype) in restricted_binop_type()
498 if (unfoul(rtype) == ltype) in restricted_binop_type()
499 ctype = rtype; in restricted_binop_type()
505 } else if (!restricted_value(left, rtype)) in restricted_binop_type()
506 ctype = rtype; in restricted_binop_type()
544 struct symbol *rtype) in usual_conversions() argument
556 return bigger_int_type(ltype, rtype); in usual_conversions()
558 return rtype; in usual_conversions()
[all …]
/illumos-gate/usr/src/uts/intel/ia32/krtld/
H A Ddoreloc.c220 do_reloc_rtld(uchar_t rtype, uchar_t *off, Xword *value, const char *sym, in do_reloc_ld()
227 uchar_t rtype = rdesc->rel_rtype; in do_reloc_ld() local
231 rep = &reloc_table[rtype]; in do_reloc_ld()
286 REL_ERR_UNSUPSZ(lml, file, sym, rtype, rep->re_fsize); in do_reloc_ld()
/illumos-gate/usr/src/cmd/sgs/librtld/sparc/
H A D_relocate.c44 Xword rtype = ELF_R_TYPE(rel->r_info, M_MACH); in undo_reloc() local
48 switch (rtype) { in undo_reloc()
71 rep = &reloc_table[rtype]; in undo_reloc()
/illumos-gate/usr/src/cmd/sgs/librtld/sparcv9/
H A D_relocate.c44 Xword rtype = ELF_R_TYPE(rel->r_info, M_MACH); in undo_reloc() local
48 switch (rtype) { in undo_reloc()
71 rep = &reloc_table[rtype]; in undo_reloc()
/illumos-gate/usr/src/cmd/sgs/rtld/common/
H A D_inline_reloc.h100 uchar_t rtype; in elf_reloc_relative() local
113 rtype = ELF_R_TYPE(((M_RELOC *)rbgn)->r_info, M_MACH); in elf_reloc_relative()
115 } while (rtype == M_R_RELATIVE); in elf_reloc_relative()
/illumos-gate/usr/src/lib/libdtrace/common/
H A Ddt_print.c396 ctf_id_t rtype; in dt_print_array() local
404 (rtype = ctf_type_resolve(ctfp, car.ctr_contents)) == CTF_ERR || in dt_print_array()
405 (kind = ctf_type_kind(ctfp, rtype)) == CTF_ERR) { in dt_print_array()
413 ctf_type_encoding(ctfp, rtype, &e) != CTF_ERR && CTF_IS_CHAR(e)) { in dt_print_array()
574 ctf_id_t rtype; in dt_print_member() local
585 if ((rtype = ctf_type_resolve(ctfp, id)) == CTF_ERR || in dt_print_member()
586 (kind = ctf_type_kind(ctfp, rtype)) == CTF_ERR || in dt_print_member()
650 dt_printfuncs[kind - 1](rtype, off, pap); in dt_print_member()

123