Home | History | Annotate | Download | only in libctf-writable

Lines Matching defs:cfp

9   ctf_dict_t *cfp;
19 if ((cfp = ctf_create (&err)) == NULL)
22 if (ctf_import (cfp, pfp) < 0)
35 if ((ptr = ctf_add_pointer (cfp, CTF_ADD_ROOT, base)) == CTF_ERR)
38 if ((type = ctf_lookup_by_name (cfp, "int *") ) == CTF_ERR)
41 type_name = ctf_type_aname (cfp, type);
43 type_name, ctf_type_kind (cfp, ctf_type_reference (cfp, type)));
46 if (ctf_type_reference (cfp, type) != base)
48 ctf_type_reference (cfp, type));
56 if ((type = ctf_lookup_by_name (cfp, "long int *") ) == CTF_ERR)
59 type_name = ctf_type_aname (cfp, type);
61 type_name, ctf_type_kind (cfp, ctf_type_reference (cfp, type)));
64 if (ctf_type_reference (cfp, type) != base2)
66 ctf_type_reference (cfp, type));
74 if ((ptr = ctf_add_pointer (cfp, CTF_ADD_ROOT, base2)) == CTF_ERR)
77 if ((type = ctf_lookup_by_name (cfp, "long int *") ) == CTF_ERR)
80 type_name = ctf_type_aname (cfp, type);
82 type_name, ctf_type_kind (cfp, ctf_type_reference (cfp, type)));
85 if (ctf_type_reference (cfp, type) != base2)
87 ctf_type_reference (cfp, type));
92 ctf_file_close (cfp);
104 fprintf (stderr, "Cannot create type: %s\n", ctf_errmsg (ctf_errno (cfp)));
107 fprintf (stderr, "Lookup failed: %s\n", ctf_errmsg (ctf_errno (cfp)));