Lines Matching refs:CTF_ERR
1007 if ((type = ctf_add_generic(fp, flag, name, &dtd)) == CTF_ERR) in ctf_add_encoded()
1008 return (CTF_ERR); /* errno is set for us */ in ctf_add_encoded()
1031 if (ref == CTF_ERR || ref < 0 || ref > CTF_MAX_TYPE) in ctf_add_reftype()
1034 if ((type = ctf_add_generic(fp, flag, name, &dtd)) == CTF_ERR) in ctf_add_reftype()
1035 return (CTF_ERR); /* errno is set for us */ in ctf_add_reftype()
1090 if ((type = ctf_add_generic(fp, flag, NULL, &dtd)) == CTF_ERR) in ctf_add_array()
1091 return (CTF_ERR); /* errno is set for us */ in ctf_add_array()
1171 if ((type = ctf_add_generic(fp, flag, NULL, &dtd)) == CTF_ERR) { in ctf_add_funcptr()
1173 return (CTF_ERR); /* errno is set for us */ in ctf_add_funcptr()
1197 ctf_id_t type = CTF_ERR; in ctf_add_struct()
1211 if (type == CTF_ERR) in ctf_add_struct()
1212 return (CTF_ERR); /* errno is set for us */ in ctf_add_struct()
1215 VERIFY(type != CTF_ERR); in ctf_add_struct()
1233 ctf_id_t type = CTF_ERR; in ctf_add_union()
1247 if (type == CTF_ERR) in ctf_add_union()
1248 return (CTF_ERR); /* errno is set for us */ in ctf_add_union()
1251 VERIFY(type != CTF_ERR); in ctf_add_union()
1273 ctf_id_t type = CTF_ERR; in ctf_add_enum()
1291 if (type == CTF_ERR) in ctf_add_enum()
1292 return (CTF_ERR); /* errno is set for us */ in ctf_add_enum()
1295 VERIFY(type != CTF_ERR); in ctf_add_enum()
1339 if ((type = ctf_add_generic(fp, flag, name, &dtd)) == CTF_ERR) in ctf_add_forward()
1340 return (CTF_ERR); /* errno is set for us */ in ctf_add_forward()
1356 if (ref == CTF_ERR || (ctf_lookup_by_id(&fpd, ref) == NULL && in ctf_add_typedef()
1360 if ((type = ctf_add_generic(fp, flag, name, &dtd)) == CTF_ERR) in ctf_add_typedef()
1361 return (CTF_ERR); /* errno is set for us */ in ctf_add_typedef()
1433 dmd->dmd_type = CTF_ERR; in ctf_add_enumerator()
1490 if ((msize = ctf_type_size(fp, type)) == CTF_ERR || in ctf_add_member()
1491 (malign = ctf_type_align(fp, type)) == CTF_ERR || in ctf_add_member()
1492 (mkind = ctf_type_kind(fp, type)) == CTF_ERR) in ctf_add_member()
1493 return (CTF_ERR); /* errno is set for us */ in ctf_add_member()
1504 if (ctf_type_encoding(fp, type, &e) == CTF_ERR) in ctf_add_member()
1505 return (CTF_ERR); /* errno is set for us */ in ctf_add_member()
1549 if (ctf_type_encoding(fp, ltype, &linfo) != CTF_ERR) in ctf_add_member()
1551 else if ((lsize = ctf_type_size(fp, ltype)) != CTF_ERR) in ctf_add_member()
1616 return (CTF_ERR); /* errno is set for us */ in ctf_delete_type()
1636 name, &bvalue) == CTF_ERR || value != bvalue); in enumcmp()
1645 name, value) == CTF_ERR); in enumadd()
1656 name, &ctm) == CTF_ERR || ctm.ctm_offset != offset); in membcmp()
1705 ctf_id_t dst_type = CTF_ERR; in ctf_add_type()
1767 if (dst_type != CTF_ERR && dst_kind != kind && ( in ctf_add_type()
1780 if (dst_type == CTF_ERR && name[0] != '\0') { in ctf_add_type()
1811 if (dst_type != CTF_ERR) { in ctf_add_type()
1813 return (CTF_ERR); /* errno is set for us */ in ctf_add_type()
1831 if (src_type == CTF_ERR) in ctf_add_type()
1832 return (CTF_ERR); /* errno is set for us */ in ctf_add_type()
1838 if (ctf_array_info(src_fp, src_type, &src_ar) == CTF_ERR) in ctf_add_type()
1847 if (src_ar.ctr_contents == CTF_ERR || in ctf_add_type()
1848 src_ar.ctr_index == CTF_ERR) in ctf_add_type()
1849 return (CTF_ERR); /* errno is set for us */ in ctf_add_type()
1851 if (dst_type != CTF_ERR) { in ctf_add_type()
1853 return (CTF_ERR); /* errno is set for us */ in ctf_add_type()
1866 if (ctc.ctc_return == CTF_ERR) in ctf_add_type()
1867 return (CTF_ERR); /* errno is set for us */ in ctf_add_type()
1886 if (dst_type != CTF_ERR && dst_kind != CTF_K_FORWARD) { in ctf_add_type()
1903 if (dst_type == CTF_ERR) in ctf_add_type()
1904 return (CTF_ERR); /* errno is set for us */ in ctf_add_type()
1925 dmd->dmd_type)) == CTF_ERR) in ctf_add_type()
1930 return (CTF_ERR); /* errno is set for us */ in ctf_add_type()
1943 if (dst_type != CTF_ERR && dst_kind != CTF_K_FORWARD) { in ctf_add_type()
1950 if (size == CTF_ERR) in ctf_add_type()
1951 return (CTF_ERR); /* errno is set for us */ in ctf_add_type()
1954 if ((dst.ctb_type = dst_type) == CTF_ERR || in ctf_add_type()
1956 return (CTF_ERR); /* errno is set for us */ in ctf_add_type()
1961 if (dst_type == CTF_ERR) { in ctf_add_type()
1971 if (src_type == CTF_ERR) in ctf_add_type()
1972 return (CTF_ERR); /* errno is set for us */ in ctf_add_type()
1983 if (dst_type == CTF_ERR) { in ctf_add_type()
2029 return (CTF_ERR); /* errno is set for us */ in ctf_add_function()
2034 return (CTF_ERR); /* errno is set for us */ in ctf_add_function()
2096 return (CTF_ERR); /* errno is set for us */ in ctf_add_object()
2134 return (CTF_ERR); /* errno is set for us */ in ctf_add_label()