Lines Matching defs:dld
1724 dt_lib_depend_t *dld;
1732 if ((dld = dt_zalloc(dtp, sizeof (dt_lib_depend_t))) == NULL)
1735 if ((dld->dtld_libpath = dt_alloc(dtp, MAXPATHLEN)) == NULL) {
1736 dt_free(dtp, dld);
1740 (void) strlcpy(dld->dtld_libpath, arg, end - arg + 2);
1741 if ((dld->dtld_library = strdup(arg)) == NULL) {
1742 dt_free(dtp, dld->dtld_libpath);
1743 dt_free(dtp, dld);
1747 dt_list_append(dlp, dld);
1752 dt_lib_depend_lookup(dt_list_t *dld, const char *arg)
1756 for (dldn = dt_list_next(dld); dldn != NULL;
1774 dt_lib_depend_t *dld, *dpld;
1776 for (dld = dt_list_next(&dtp->dt_lib_dep); dld != NULL;
1777 dld = dt_list_next(dld)) {
1778 char *library = dld->dtld_library;
1780 for (dpld = dt_list_next(&dld->dtld_dependencies); dpld != NULL;
1788 dld->dtld_library, dpld->dtld_library);
1803 dt_topo_sort(dtrace_hdl_t *dtp, dt_lib_depend_t *dld, int *count)
1807 dld->dtld_start = ++(*count);
1809 for (dpld = dt_list_next(&dld->dtld_dependents); dpld != NULL;
1823 if ((new->dtld_library = strdup(dld->dtld_library)) == NULL) {
1828 new->dtld_start = dld->dtld_start;
1829 new->dtld_finish = dld->dtld_finish = ++(*count);
1841 dt_lib_depend_t *dld, *dpld, *dlda;
1852 for (dld = dt_list_next(&dtp->dt_lib_dep); dld != NULL;
1853 dld = dt_list_next(dld)) {
1854 if (dld->dtld_start == 0 &&
1855 dt_topo_sort(dtp, dld, &count) == -1)
1864 for (dld = dt_list_next(&dtp->dt_lib_dep); dld != NULL;
1865 dld = dt_list_next(dld)) {
1866 for (dpld = dt_list_next(&dld->dtld_dependents); dpld != NULL;
1872 if (dlda->dtld_finish > dld->dtld_finish) {
1875 dld->dtld_library, dpld->dtld_library);
1888 dt_lib_depend_t *dld, *dlda;
1890 while ((dld = dt_list_next(&dtp->dt_lib_dep)) != NULL) {
1891 while ((dlda = dt_list_next(&dld->dtld_dependencies)) != NULL) {
1892 dt_list_delete(&dld->dtld_dependencies, dlda);
1897 while ((dlda = dt_list_next(&dld->dtld_dependents)) != NULL) {
1898 dt_list_delete(&dld->dtld_dependents, dlda);
1903 dt_list_delete(&dtp->dt_lib_dep, dld);
1904 dt_free(dtp, dld->dtld_library);
1905 dt_free(dtp, dld->dtld_libpath);
1906 dt_free(dtp, dld);
1909 while ((dld = dt_list_next(&dtp->dt_lib_dep_sorted)) != NULL) {
1910 dt_list_delete(&dtp->dt_lib_dep_sorted, dld);
1911 dt_free(dtp, dld->dtld_library);
1912 dt_free(dtp, dld);
1937 dt_lib_depend_t *dld;
1988 for (dld = dt_list_next(&dtp->dt_lib_dep_sorted); dld != NULL;
1989 dld = dt_list_next(dld)) {
1991 if ((fp = fopen(dld->dtld_library, "r")) == NULL) {
1993 dld->dtld_library, strerror(errno));
1997 dtp->dt_filetag = dld->dtld_library;
2008 dld->dtld_library,
2011 dld->dtld_loaded = B_TRUE;