Lines Matching defs:dst_fp

1065 	 * equivalent dst_fp type by a final loop in ctf_add_type(), below.
1089 ctf_add_type(ctf_file_t *dst_fp, ctf_file_t *src_fp, ctf_id_t src_type)
1109 if (!(dst_fp->ctf_flags & LCTF_RDWR))
1110 return (ctf_set_errno(dst_fp, ECTF_RDONLY));
1113 return (ctf_set_errno(dst_fp, ctf_errno(src_fp)));
1122 hp = &dst_fp->ctf_structs;
1125 hp = &dst_fp->ctf_unions;
1128 hp = &dst_fp->ctf_enums;
1131 hp = &dst_fp->ctf_names;
1141 (hep = ctf_hash_lookup(hp, dst_fp, name, strlen(name))) != NULL) {
1143 dst_kind = ctf_type_kind(dst_fp, dst_type);
1154 return (ctf_set_errno(dst_fp, ECTF_CONFLICT));
1165 for (dtd = ctf_list_prev(&dst_fp->ctf_dtdefs); dtd != NULL &&
1166 dtd->dtd_type > dst_fp->ctf_dtoldid;
1179 dst.ctb_file = dst_fp;
1185 * we add a new type with the same properties as src_type to dst_fp.
1193 return (ctf_set_errno(dst_fp, ctf_errno(src_fp)));
1196 if (ctf_type_encoding(dst_fp, dst_type, &dst_en) != 0)
1200 return (ctf_set_errno(dst_fp, ECTF_CONFLICT));
1203 dst_type = ctf_add_integer(dst_fp, flag, name, &src_en);
1205 dst_type = ctf_add_float(dst_fp, flag, name, &src_en);
1213 src_type = ctf_add_type(dst_fp, src_fp, src_type);
1218 dst_type = ctf_add_reftype(dst_fp, flag, src_type, kind);
1223 return (ctf_set_errno(dst_fp, ctf_errno(src_fp)));
1226 ctf_add_type(dst_fp, src_fp, src_ar.ctr_contents);
1228 ctf_add_type(dst_fp, src_fp, src_ar.ctr_index);
1236 if (ctf_array_info(dst_fp, dst_type, &dst_ar) != 0)
1240 return (ctf_set_errno(dst_fp, ECTF_CONFLICT));
1242 dst_type = ctf_add_array(dst_fp, flag, &src_ar);
1246 ctc.ctc_return = ctf_add_type(dst_fp, src_fp, tp->ctt_type);
1253 dst_type = ctf_add_function(dst_fp, flag, &ctc, NULL);
1272 ctf_type_size(dst_fp, dst_type))
1273 return (ctf_set_errno(dst_fp, ECTF_CONFLICT));
1276 return (ctf_set_errno(dst_fp, ECTF_CONFLICT));
1286 dst_type = ctf_add_generic(dst_fp, flag, name, &dtd);
1307 * (a src_fp type) to an equivalent type in dst_fp. We pass
1312 if ((dmd->dmd_type = ctf_add_type(dst_fp, src_fp,
1325 ctf_enum_iter(dst_fp, dst_type, enumcmp, &src))
1326 return (ctf_set_errno(dst_fp, ECTF_CONFLICT));
1328 dst_type = ctf_add_enum(dst_fp, flag, name);
1337 dst_type = ctf_add_forward(dst_fp,
1344 src_type = ctf_add_type(dst_fp, src_fp, src_type);
1351 * ctf_type_reference(dst_fp, dst_type) != src_type and if so
1356 * already exists in dst_fp, it is correct or equivalent.
1359 dst_type = ctf_add_typedef(dst_fp, flag,
1365 return (ctf_set_errno(dst_fp, ECTF_CORRUPT));