Lines Matching refs:gh
607 struct grouphead *gh; in group() local
615 for (gh = groups[h]; gh != NOGRP; gh = gh->g_link) in group()
619 for (gh = groups[h]; gh != NOGRP; gh = gh->g_link) in group()
620 *p++ = gh->g_name; in group()
633 if ((gh = findgroup(gname)) == NOGRP) { in group()
634 if ((gh = (struct grouphead *) in group()
635 calloc(sizeof (*gh), 1)) == NULL) { in group()
638 gh->g_name = vcopy(gname); in group()
639 gh->g_list = NOGE; in group()
640 gh->g_link = groups[h]; in group()
641 groups[h] = gh; in group()
656 gp->ge_link = gh->g_list; in group()
657 gh->g_list = gp; in group()
669 struct grouphead *gh, **ghp; in ungroup() local
687 gh = *ghp; in ungroup()
688 if (equal(gh->g_name, gname)) { in ungroup()
690 *ghp = gh->g_link; in ungroup()
692 for (gp = gh->g_list; gp != NOGE; gp = gpnext) { in ungroup()
697 vfree(gh->g_name); in ungroup()
698 free(gh); in ungroup()