Lines Matching refs:CTF_ERR

669 	if ((type = ctf_add_generic(fp, flag, name, &dtd)) == CTF_ERR)  in ctf_add_encoded()
670 return (CTF_ERR); /* errno is set for us */ in ctf_add_encoded()
685 if (ref == CTF_ERR || ref < 0 || ref > CTF_MAX_TYPE) in ctf_add_reftype()
688 if ((type = ctf_add_generic(fp, flag, NULL, &dtd)) == CTF_ERR) in ctf_add_reftype()
689 return (CTF_ERR); /* errno is set for us */ in ctf_add_reftype()
739 if ((type = ctf_add_generic(fp, flag, NULL, &dtd)) == CTF_ERR) in ctf_add_array()
740 return (CTF_ERR); /* errno is set for us */ in ctf_add_array()
820 if ((type = ctf_add_generic(fp, flag, NULL, &dtd)) == CTF_ERR) { in ctf_add_function()
822 return (CTF_ERR); /* errno is set for us */ in ctf_add_function()
853 else if ((type = ctf_add_generic(fp, flag, name, &dtd)) == CTF_ERR) in ctf_add_struct()
854 return (CTF_ERR); /* errno is set for us */ in ctf_add_struct()
875 else if ((type = ctf_add_generic(fp, flag, name, &dtd)) == CTF_ERR) in ctf_add_union()
876 return (CTF_ERR); /* errno is set for us */ in ctf_add_union()
897 else if ((type = ctf_add_generic(fp, flag, name, &dtd)) == CTF_ERR) in ctf_add_enum()
898 return (CTF_ERR); /* errno is set for us */ in ctf_add_enum()
936 if ((type = ctf_add_generic(fp, flag, name, &dtd)) == CTF_ERR) in ctf_add_forward()
937 return (CTF_ERR); /* errno is set for us */ in ctf_add_forward()
953 if (ref == CTF_ERR || (ctf_lookup_by_id(&fpd, ref) == NULL && in ctf_add_typedef()
957 if ((type = ctf_add_generic(fp, flag, name, &dtd)) == CTF_ERR) in ctf_add_typedef()
958 return (CTF_ERR); /* errno is set for us */ in ctf_add_typedef()
1028 dmd->dmd_type = CTF_ERR; in ctf_add_enumerator()
1076 if ((msize = ctf_type_size(fp, type)) == CTF_ERR || in ctf_add_member()
1077 (malign = ctf_type_align(fp, type)) == CTF_ERR) in ctf_add_member()
1078 return (CTF_ERR); /* errno is set for us */ in ctf_add_member()
1100 if (ctf_type_encoding(fp, ltype, &linfo) != CTF_ERR) in ctf_add_member()
1102 else if ((lsize = ctf_type_size(fp, ltype)) != CTF_ERR) in ctf_add_member()
1167 return (CTF_ERR); /* errno is set for us */ in ctf_delete_type()
1187 name, &bvalue) == CTF_ERR || value != bvalue); in enumcmp()
1196 name, value) == CTF_ERR); in enumadd()
1207 name, &ctm) == CTF_ERR || ctm.ctm_offset != offset); in membcmp()
1253 ctf_id_t dst_type = CTF_ERR; in ctf_add_type()
1316 if (dst_type != CTF_ERR && dst_kind != kind && ( in ctf_add_type()
1329 if (dst_type == CTF_ERR && name[0] != '\0') { in ctf_add_type()
1360 if (dst_type != CTF_ERR) { in ctf_add_type()
1362 return (CTF_ERR); /* errno is set for us */ in ctf_add_type()
1380 if (src_type == CTF_ERR) in ctf_add_type()
1381 return (CTF_ERR); /* errno is set for us */ in ctf_add_type()
1387 if (ctf_array_info(src_fp, src_type, &src_ar) == CTF_ERR) in ctf_add_type()
1396 if (src_ar.ctr_contents == CTF_ERR || in ctf_add_type()
1397 src_ar.ctr_index == CTF_ERR) in ctf_add_type()
1398 return (CTF_ERR); /* errno is set for us */ in ctf_add_type()
1400 if (dst_type != CTF_ERR) { in ctf_add_type()
1402 return (CTF_ERR); /* errno is set for us */ in ctf_add_type()
1415 if (ctc.ctc_return == CTF_ERR) in ctf_add_type()
1416 return (CTF_ERR); /* errno is set for us */ in ctf_add_type()
1435 if (dst_type != CTF_ERR && dst_kind != CTF_K_FORWARD) { in ctf_add_type()
1452 if (dst_type == CTF_ERR) in ctf_add_type()
1453 return (CTF_ERR); /* errno is set for us */ in ctf_add_type()
1478 dmd->dmd_type)) == CTF_ERR) in ctf_add_type()
1483 return (CTF_ERR); /* errno is set for us */ in ctf_add_type()
1496 if (dst_type != CTF_ERR && dst_kind != CTF_K_FORWARD) { in ctf_add_type()
1502 if ((dst.ctb_type = dst_type) == CTF_ERR || in ctf_add_type()
1504 return (CTF_ERR); /* errno is set for us */ in ctf_add_type()
1509 if (dst_type == CTF_ERR) { in ctf_add_type()
1519 if (src_type == CTF_ERR) in ctf_add_type()
1520 return (CTF_ERR); /* errno is set for us */ in ctf_add_type()
1531 if (dst_type == CTF_ERR) { in ctf_add_type()