Lines Matching refs:ghp

341 		Grp_hdl	*ghp;  in remove_so()  local
343 for (APLIST_TRAVERSE(GROUPS(lmp), idx1, ghp)) { in remove_so()
347 for (ALIST_TRAVERSE(ghp->gh_depends, idx2, gdp)) { in remove_so()
351 alist_delete(ghp->gh_depends, &idx2); in remove_so()
554 Grp_hdl *ghp; in is_deletable() local
577 for (APLIST_TRAVERSE(HANDLES(lmp), idx, ghp)) { in is_deletable()
583 if (ghp->gh_flags & GPH_PRIVATE) in is_deletable()
585 if (aplist_test(ghalp, ghp, 0) != ALE_EXISTS) in is_deletable()
751 Grp_hdl *ghp; in remove_rescan() local
755 ((ghp = (Grp_hdl *)pdp->pd_info) == NULL)) in remove_rescan()
758 if (aplist_test(&ghalp, ghp, 0) == in remove_rescan()
762 for (ALIST_TRAVERSE(ghp->gh_depends, idx3, in remove_rescan()
778 (void) aplist_delete_value(ghalp, ghp); in remove_rescan()
801 free_hdl(Grp_hdl *ghp) in free_hdl() argument
803 if (--(ghp->gh_refcnt) == 0) { in free_hdl()
808 for (ALIST_TRAVERSE(ghp->gh_depends, idx, gdp)) { in free_hdl()
811 if (ghp->gh_ownlmp == lmp) in free_hdl()
812 (void) aplist_delete_value(HANDLES(lmp), ghp); in free_hdl()
813 (void) aplist_delete_value(GROUPS(lmp), ghp); in free_hdl()
815 (void) free(ghp->gh_depends); in free_hdl()
818 ndx = (uintptr_t)ghp % HDLIST_SZ; in free_hdl()
819 (void) aplist_delete_value(hdl_alp[ndx], ghp); in free_hdl()
821 (void) free(ghp); in free_hdl()
852 Grp_hdl *ghp; in remove_lmc() local
876 ghp = (Grp_hdl *)HANDLES(lmp)->apl_data[0]; in remove_lmc()
882 ghp->gh_flags &= ~GPH_PRIVATE; in remove_lmc()
889 if (((ghp = hdl_create(lml, lmc->lc_head, NULL, GPH_PUBLIC, in remove_lmc()
891 (hdl_initialize(ghp, lmc->lc_head, 0, 0) == 0)) in remove_lmc()
894 ghp = NULL; in remove_lmc()
904 if (ghp) { in remove_lmc()
905 ghp->gh_refcnt = 1; in remove_lmc()
906 free_hdl(ghp); in remove_lmc()
911 ASSERT(ghp != NULL); in remove_lmc()
929 for (ALIST_TRAVERSE(ghp->gh_depends, idx, gdp)) { in remove_lmc()
956 if ((Grp_hdl *)pdp->pd_info == ghp) { in remove_lmc()
963 (void) aplist_delete_value(GROUPS(lmp), ghp); in remove_lmc()
964 alist_delete(ghp->gh_depends, &idx); in remove_lmc()
972 ghp->gh_refcnt = 1; in remove_lmc()
973 (void) remove_hdl(ghp, clmp, NULL); in remove_lmc()
1020 remove_hdl(Grp_hdl *ghp, Rt_map *clmp, int *removed) in remove_hdl() argument
1037 if (gdp_collect(&ghalp, &lmalp, ghp) == 0) { in remove_hdl()
1051 Grp_hdl *ghp = ghp2; in remove_hdl() local
1053 DBG_CALL(Dbg_file_hdl_collect(ghp, 0)); in remove_hdl()
1055 if ((ghp->gh_flags & GPH_FILTEE) == 0) in remove_hdl()
1064 if (ghp->gh_flags & GPH_LDSO) { in remove_hdl()
1065 DBG_CALL(Dbg_file_hdl_collect(ghp, in remove_hdl()
1071 for (ALIST_TRAVERSE(ghp->gh_depends, idx2, gdp)) { in remove_hdl()
1099 DBG_CALL(Dbg_file_hdl_collect(ghp, NAME(lmp))); in remove_hdl()
1169 Grp_hdl *ghp = ghp2; in remove_hdl() local
1171 for (ALIST_TRAVERSE(ghp->gh_depends, idx2, gdp)) { in remove_hdl()
1199 callable(lmp, dlmp, ghp, 0)) in remove_hdl()
1205 for (ALIST_TRAVERSE(ghp->gh_depends, in remove_hdl()
1228 Grp_hdl *ghp = ghp2; in remove_hdl() local
1234 if ((ghp->gh_ownlmp == NULL) || in remove_hdl()
1235 (FLAGS(ghp->gh_ownlmp) & FLG_RT_DELETE)) in remove_hdl()
1242 for (ALIST_TRAVERSE(ghp->gh_depends, idx2, gdp)) { in remove_hdl()
1251 if ((lmp == ghp->gh_ownlmp) && in remove_hdl()
1271 Grp_hdl *ghp = ghp2; in remove_hdl() local
1275 for (ALIST_TRAVERSE(ghp->gh_depends, idx2, gdp)) { in remove_hdl()
1307 DBG_CALL(Dbg_file_hdl_action(ghp, lmp, flag, 0)); in remove_hdl()
1378 Grp_hdl *ghp; in remove_hdl() local
1381 ((ghp = (Grp_hdl *)pdp->pd_info) == NULL)) in remove_hdl()
1388 if (aplist_test(&ghalp, ghp, 0) == ALE_EXISTS) { in remove_hdl()
1406 (void) dlclose_core(ghp, in remove_hdl()
1428 Grp_hdl *ghp = ghp2; in remove_hdl() local
1438 ndx = (uintptr_t)ghp % HDLIST_SZ; in remove_hdl()
1439 (void) aplist_delete_value(hdl_alp[ndx], ghp); in remove_hdl()
1448 for (ALIST_TRAVERSE(ghp->gh_depends, idx2, gdp)) { in remove_hdl()
1461 if (ghp->gh_ownlmp == lmp) { in remove_hdl()
1462 (void) aplist_delete_value(HANDLES(lmp), ghp); in remove_hdl()
1463 ghp->gh_ownlmp = NULL; in remove_hdl()
1466 (void) aplist_delete_value(GROUPS(lmp), ghp); in remove_hdl()
1467 alist_delete(ghp->gh_depends, &idx2); in remove_hdl()
1496 if (ghp->gh_depends->al_nitems == 0) { in remove_hdl()
1497 free(ghp->gh_depends); in remove_hdl()
1498 free(ghp); in remove_hdl()
1500 } else if ((ghp->gh_refcnt == 0) && in remove_hdl()
1501 ((ghp->gh_flags & GPH_ZERO) == 0)) { in remove_hdl()
1505 (void) aplist_append(&hdl_alp[HDLIST_ORP], ghp, in remove_hdl()
1510 for (ALIST_TRAVERSE(ghp->gh_depends, idx1, gdp)) in remove_hdl()
1511 DBG_CALL(Dbg_file_hdl_action(ghp, in remove_hdl()
1548 Grp_hdl *ghp, *oghp = NULL; in remove_hdl() local
1559 for (APLIST_TRAVERSE(alp, idx, ghp)) { in remove_hdl()
1563 DBG_CALL(Dbg_file_del_rescan(ghp->gh_ownlml)); in remove_hdl()
1570 if (((_error = remove_hdl(ghp, clmp, &_remove)) != 0) && in remove_hdl()
1577 oghp = ghp; in remove_hdl()