Lines Matching refs:gh
609 register struct grouphead *gh; in group() local
617 for (gh = groups[h]; gh != NOGRP; gh = gh->g_link) in group()
621 for (gh = groups[h]; gh != NOGRP; gh = gh->g_link) in group()
622 *p++ = gh->g_name; in group()
635 if ((gh = findgroup(gname)) == NOGRP) { in group()
636 if ((gh = (struct grouphead *) in group()
637 calloc(sizeof (*gh), 1)) == NULL) { in group()
640 gh->g_name = vcopy(gname); in group()
641 gh->g_list = NOGE; in group()
642 gh->g_link = groups[h]; in group()
643 groups[h] = gh; in group()
658 gp->ge_link = gh->g_list; in group()
659 gh->g_list = gp; in group()
671 register struct grouphead *gh, **ghp; in ungroup() local
689 gh = *ghp; in ungroup()
690 if (equal(gh->g_name, gname)) { in ungroup()
692 *ghp = gh->g_link; in ungroup()
694 for (gp = gh->g_list; gp != NOGE; gp = gpnext) { in ungroup()
699 vfree(gh->g_name); in ungroup()
700 free(gh); in ungroup()