/osnet-11/usr/src/lib/libdtrace/common/ |
H A D | dt_pcb.c | 93 dt_pcb_pop_ident(dt_idhash_t *dhp, dt_ident_t *idp, void *arg) argument 98 dt_idhash_delete(dhp, idp);
|
H A D | dt_as.c | 78 dt_countvar(dt_idhash_t *dhp, dt_ident_t *idp, void *data) argument 90 dt_copyvar(dt_idhash_t *dhp, dt_ident_t *idp, void *data) argument
|
H A D | dt_pragma.c | 44 dt_pragma_apply(dt_idhash_t *dhp, dt_ident_t *idp) argument
|
H A D | dt_program.c | 397 dt_header_decl(dt_idhash_t *dhp, dt_ident_t *idp, void *data) argument 450 dt_header_probe(dt_idhash_t *dhp, dt_ident_t *idp, void *data) argument
|
H A D | dt_dof.c | 392 dof_add_probe(dt_idhash_t *dhp, dt_ident_t *idp, void *data) argument
|
H A D | dt_ident.c | 611 dt_idhash_populate(dt_idhash_t *dhp) argument 613 const dt_ident_t *idp = dhp->dh_tmpl; 615 dhp->dh_tmpl = NULL; /* clear dh_tmpl first to avoid recursion */ 616 dt_dprintf("populating %s idhash from %p\n", dhp->dh_name, (void *)idp); 619 if (dt_idhash_insert(dhp, idp->di_name, 631 dt_idhash_t *dhp; local 639 if ((dhp = malloc(size)) == NULL) 642 bzero(dhp, size); 643 dhp->dh_name = name; 644 dhp 663 dt_idhash_destroy(dt_idhash_t *dhp) argument 687 dt_idhash_update(dt_idhash_t *dhp) argument 710 dt_idhash_lookup(dt_idhash_t *dhp, const char *name) argument 728 dt_idhash_nextid(dt_idhash_t *dhp, uint_t *p) argument 738 dt_idhash_size(const dt_idhash_t *dhp) argument 744 dt_idhash_name(const dt_idhash_t *dhp) argument 750 dt_idhash_insert(dt_idhash_t *dhp, const char *name, ushort_t kind, ushort_t flags, uint_t id, dtrace_attribute_t attr, uint_t vers, const dt_idops_t *ops, void *iarg, ulong_t gen) argument 779 dt_idhash_xinsert(dt_idhash_t *dhp, dt_ident_t *idp) argument 798 dt_idhash_delete(dt_idhash_t *dhp, dt_ident_t *key) argument 835 dt_idhash_iter(dt_idhash_t *dhp, dt_idhash_f *func, void *data) argument 866 dt_idhash_t *dhp; local 879 dt_idstack_push(dt_idstack_t *sp, dt_idhash_t *dhp) argument 885 dt_idstack_pop(dt_idstack_t *sp, dt_idhash_t *dhp) argument [all...] |
H A D | dt_cc.c | 121 dt_idreset(dt_idhash_t *dhp, dt_ident_t *idp, void *ignored) argument 130 dt_idpragma(dt_idhash_t *dhp, dt_ident_t *idp, void *ignored) argument 1529 dt_reduceid(dt_idhash_t *dhp, dt_ident_t *idp, dtrace_hdl_t *dtp) argument 1532 dt_idhash_delete(dhp, idp);
|
H A D | dt_parser.c | 1501 dt_idhash_t *dhp; local 1510 dhp = yypcb->pcb_locals; 1512 idp = dt_idhash_lookup(dhp, dsp->ds_ident); 1515 dhp = dtp->dt_tls; 1517 idp = dt_idhash_lookup(dhp, dsp->ds_ident); 1520 dhp = dtp->dt_globals; 1659 if (dt_idhash_nextid(dhp, &id) == -1) { 1662 dsp->ds_ident, dt_idhash_name(dhp)); 1666 dt_idhash_name(dhp), dt_idkind_name(idkind), 1669 idp = dt_idhash_insert(dhp, ds 2566 dt_xcook_ident(dt_node_t *dnp, dt_idhash_t *dhp, uint_t idkind, int create) argument 3095 dt_idhash_t *dhp; local [all...] |
/osnet-11/usr/src/lib/libdisasm/i386/ |
H A D | dis_i386.c | 55 dis_handle_t *dhp = data; local 59 if (dhp->dh_lookup(dhp->dh_data, dhp->dh_addr, NULL, 0, &start, &len) 63 if (start < dhp->dh_addr) 64 return (dhp->dh_addr > start + len - 0x10); 73 dis_handle_t *dhp = data; local 75 if (dhp->dh_read(dhp->dh_data, dhp 87 dis_handle_t *dhp = data; local 96 dis_handle_t *dhp; local 144 dis_disassemble(dis_handle_t *dhp, uint64_t addr, char *buf, size_t buflen) argument 165 dis_handle_destroy(dis_handle_t *dhp) argument 171 dis_set_data(dis_handle_t *dhp, void *data) argument 177 dis_flags_set(dis_handle_t *dhp, int f) argument 183 dis_flags_clear(dis_handle_t *dhp, int f) argument 191 dis_max_instrlen(dis_handle_t *dhp) argument 205 dis_previnstr(dis_handle_t *dhp, uint64_t pc, int n) argument [all...] |
/osnet-11/usr/src/lib/libdisasm/sparc/ |
H A D | dis_sparc.c | 117 dis_handle_t *dhp; local 124 if ((dhp = dis_zalloc(sizeof (struct dis_handle))) == NULL) { 129 dhp->dh_lookup = lookup_func; 130 dhp->dh_read = read_func; 131 dhp->dh_flags = flags; 132 dhp->dh_data = data; 133 dhp->dh_debug = DIS_DEBUG_COMPAT; 139 return (dhp); 143 dis_handle_destroy(dhp); 156 dhp 184 dis_handle_destroy(dis_handle_t *dhp) argument 190 dis_set_data(dis_handle_t *dhp, void *data) argument 196 dis_flags_set(dis_handle_t *dhp, int f) argument 202 dis_flags_clear(dis_handle_t *dhp, int f) argument 209 dis_max_instrlen(dis_handle_t *dhp) argument 221 dis_previnstr(dis_handle_t *dhp, uint64_t pc, int n) argument 233 dis_disassemble(dis_handle_t *dhp, uint64_t addr, char *buf, size_t buflen) argument 309 dis_get_overlay(dis_handle_t *dhp, const table_t *tp, uint32_t idx) argument [all...] |
H A D | dis_sparc_fmt.c | 754 fmt_call(dis_handle_t *dhp, uint32_t instr, const inst_t *inp, int idx) argument 761 int octal = ((dhp->dh_flags & DIS_OCTAL) != 0); 763 if ((dhp->dh_debug & DIS_DEBUG_PRTFMT) != 0) { 770 prt_name(dhp, inp->in_data.in_def.in_name, 1); 772 bprintf(dhp, (octal != 0) ? "%s0%-11lo" : "%s0x%-10lx", 776 (void) strlcat(dhp->dh_buf, " <", dhp->dh_buflen); 778 curlen = strlen(dhp->dh_buf); 779 dhp->dh_lookup(dhp 789 fmt_sethi(dis_handle_t *dhp, uint32_t instr, const inst_t *inp, int idx) argument 827 fmt_branch(dis_handle_t *dhp, uint32_t instr, const inst_t *inp, int idx) argument 971 fmt_cas(dis_handle_t *dhp, uint32_t instr, const char *name) argument 1055 fmt_ls(dis_handle_t *dhp, uint32_t instr, const inst_t *inp, int idx) argument 1299 fmt_cpop(dis_handle_t *dhp, uint32_t instr, const inst_t *inp) argument 1323 dis_fmt_rdwr(dis_handle_t *dhp, uint32_t instr, const inst_t *inp, int idx) argument 1540 fmt_trap(dis_handle_t *dhp, uint32_t instr, const inst_t *inp, int idx) argument 1583 prt_shift(dis_handle_t *dhp, uint32_t instr, const inst_t *inp) argument 1616 prt_jmpl(dis_handle_t *dhp, uint32_t instr, const inst_t *inp, int idx) argument 1655 fmt_alu(dis_handle_t *dhp, uint32_t instr, const inst_t *inp, int idx) argument 1957 fmt_regwin(dis_handle_t *dhp, uint32_t instr, const inst_t *inp, int idx) argument 1965 fmt_trap_ret(dis_handle_t *dhp, uint32_t instr, const inst_t *inp, int idx) argument 1980 fmt_movcc(dis_handle_t *dhp, uint32_t instr, const inst_t *inp, int idx) argument 2026 fmt_movr(dis_handle_t *dhp, uint32_t instr, const inst_t *inp, int idx) argument 2047 fmt_fpop1(dis_handle_t *dhp, uint32_t instr, const inst_t *inp, int idx) argument 2070 fmt_fpop2(dis_handle_t *dhp, uint32_t instr, const inst_t *inp, int idx) argument 2165 fmt_vis(dis_handle_t *dhp, uint32_t instr, const inst_t *inp, int idx) argument 2199 fmt_fused(dis_handle_t *dhp, uint32_t instr, const inst_t *inp, int idx) argument 2216 fmt_cbcond(dis_handle_t *dhp, uint32_t instr, const inst_t *inp, int idx) argument 2266 fmt_crypto(dis_handle_t *dhp, uint32_t instr, const inst_t *inp, int idx) argument 2287 fmt_crypto4op(dis_handle_t *dhp, uint32_t instr, const inst_t *inp, int idx) argument 2314 prt_name(dis_handle_t *dhp, const char *name, int add_space) argument 2366 prt_imm(dis_handle_t *dhp, uint32_t val, int format) argument 2408 get_regname(dis_handle_t *dhp, int regset, uint32_t idx) argument 2477 prt_asi(dis_handle_t *dhp, uint32_t instr) argument 2507 prt_address(dis_handle_t *dhp, uint32_t instr, int nobrackets) argument 2578 prt_aluargs(dis_handle_t *dhp, uint32_t instr, uint32_t flags) argument 2903 bprintf(dis_handle_t *dhp, const char *fmt, ...) argument [all...] |
/osnet-11/usr/src/lib/libdhcpsvc/modules/binfiles/ |
H A D | dhcptab.c | 93 dt_handle_t *dhp; local 99 dhp = malloc(sizeof (dt_handle_t)); 100 if (dhp == NULL) 103 dhp->dh_oflags = flags; 104 (void) strlcpy(dhp->dh_location, location, MAXPATHLEN); 109 free(dhp); 125 (void) close_dt((void **)&dhp); 136 (void) close_dt((void **)&dhp); 143 (void) close_dt((void **)&dhp); 149 *handlep = dhp; 179 dt_handle_t *dhp = (dt_handle_t *)handle; local 346 dt_handle_t *dhp = (dt_handle_t *)handle; local 436 dt_handle_t *dhp = (dt_handle_t *)handle; local 555 dt_handle_t *dhp = (dt_handle_t *)handle; local [all...] |
H A D | dhcp_network.c | 181 dn_handle_t *dhp; local 187 dhp = malloc(sizeof (dn_handle_t)); 188 if (dhp == NULL) 203 retval = open_file(dnpath, flags, &dhp->dh_fd); 205 free(dhp); 229 if (write_header(dhp->dh_fd, &header) == -1) { 232 (void) close_dn((void **)&dhp); 246 retval = setabyte(dhp->dh_fd, filesz - 1, 0); 249 (void) close_dn((void **)&dhp); 257 retval = setabyte(dhp 295 dn_handle_t *dhp = (dn_handle_t *)*handlep; local 320 dn_handle_t *dhp = (dn_handle_t *)handle; local 575 dn_handle_t *dhp = (dn_handle_t *)handle; local 700 dn_handle_t *dhp = (dn_handle_t *)handle; local 835 dn_handle_t *dhp = (dn_handle_t *)handle; local 1186 check_dn(dn_handle_t *dhp) argument [all...] |
/osnet-11/usr/src/lib/libdhcpsvc/modules/files/ |
H A D | dhcptab.c | 57 dt_handle_t *dhp; local 66 dhp = malloc(sizeof (dt_handle_t)); 67 if (dhp == NULL) 70 dhp->dh_oflags = flags; 71 (void) strlcpy(dhp->dh_location, location, MAXPATHLEN); 76 free(dhp); 83 free(dhp); 95 (void) free(dhp); 110 free(dhp); 116 *handlep = dhp; 289 dt_handle_t *dhp = (dt_handle_t *)handle; local 313 update_dt(const dt_handle_t *dhp, const dt_rec_t *origp, dt_rec_t *newp) argument [all...] |
H A D | dhcp_network.c | 67 dn_handle_t *dhp; local 75 dhp = malloc(sizeof (dn_handle_t)); 76 if (dhp == NULL) 79 dhp->dh_net = netp->s_addr; 80 dhp->dh_oflags = flags; 81 (void) strlcpy(dhp->dh_location, location, MAXPATHLEN); 86 free(dhp); 93 free(dhp); 112 (void) free(dhp); 133 (void) free(dhp); 345 dn_handle_t *dhp = (dn_handle_t *)handle; local 454 update_dn(const dn_handle_t *dhp, const dn_rec_t *origp, dn_rec_t *newp) argument [all...] |
/osnet-11/usr/src/lib/libdhcpsvc/modules/files0/ |
H A D | dhcptab.c | 57 dt_handle_t *dhp; local 62 dhp = malloc(sizeof (dt_handle_t)); 63 if (dhp == NULL) 66 dhp->dh_oflags = flags; 67 (void) strlcpy(dhp->dh_location, location, MAXPATHLEN); 74 dt2path(dtpath, MAXPATHLEN, dhp->dh_location, ""); 77 free(dhp); 82 *handlep = dhp; 254 dt_handle_t *dhp = (dt_handle_t *)handle; local 256 if ((dhp 278 update_dt(const dt_handle_t *dhp, const dt_rec_t *origp, dt_rec_t *newp) argument [all...] |
H A D | dhcp_network.c | 65 dn_handle_t *dhp; local 69 dhp = malloc(sizeof (dn_handle_t)); 70 if (dhp == NULL) 73 dhp->dh_net = netp->s_addr; 74 dhp->dh_oflags = flags; 75 (void) strlcpy(dhp->dh_location, location, MAXPATHLEN); 85 free(dhp); 90 *handlep = dhp; 275 dn_handle_t *dhp = (dn_handle_t *)handle; local 277 if ((dhp 383 update_dn(const dn_handle_t *dhp, const dn_rec_t *origp, dn_rec_t *newp) argument [all...] |
/osnet-11/usr/src/lib/fm/libfmnotify/common/ |
H A D | libfmnotify.c | 475 fm_dc_handle_t *dhp; local 485 if ((dhp = fm_dc_opendict(FM_DC_VERSION, dirpath, dict)) == NULL) { 493 if (fm_dc_key2code(dhp, key, buf, buflen) < 0) { 497 fm_dc_closedict(dhp);
|
/osnet-11/usr/src/lib/fm/libdiagcode/common/ |
H A D | diagcode.c | 99 static int buildcode(fm_dc_handle_t *dhp, const char *rhsp, 101 static bitv *code2dictval(fm_dc_handle_t *dhp, const char *code); 148 fm_dc_handle_t *dhp = NULL; local 196 if ((dhp = malloc(sizeof (*dhp))) == NULL || 197 (dhp->dictname = strdup(dictname)) == NULL) { 198 if (dhp) 199 free(dhp); 211 dhp->fp = NULL; 212 dhp 321 fm_dc_closedict(fm_dc_handle_t *dhp) argument 350 fm_dc_codelen(fm_dc_handle_t *dhp) argument 364 fm_dc_maxkey(fm_dc_handle_t *dhp) argument 377 fm_dc_key2code(fm_dc_handle_t *dhp, const char *key[], char *code, size_t maxcode) argument 437 fm_dc_code2key(fm_dc_handle_t *dhp, const char *code, char *key[], int maxkey) argument 566 fm_dc_getprop(fm_dc_handle_t *dhp, const char *name) argument 700 buildcode(fm_dc_handle_t *dhp, const char *rhsp, char *code, size_t maxcode, char *debugstr) argument 831 code2dictval(fm_dc_handle_t *dhp, const char *code) argument [all...] |
/osnet-11/usr/src/lib/libdlpi/common/ |
H A D | libdlpi.c | 137 dlpi_open(const char *linkname, dlpi_handle_t *dhp, uint_t flags) argument 193 *dhp = (dlpi_handle_t)dip; 240 *dhp = (dlpi_handle_t)dip;
|