Lines Matching defs:ghp

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