Lines Matching refs:gh
811 struct grouphead *gh; in group() local
820 for (gh = groups[h]; gh != NULL; gh = gh->g_link) in group()
824 for (gh = groups[h]; gh != NULL; gh = gh->g_link) in group()
825 *p++ = gh->g_name; in group()
838 if ((gh = findgroup(gname)) == NULL) { in group()
839 gh = ecalloc(1, sizeof(*gh)); in group()
840 gh->g_name = vcopy(gname); in group()
841 gh->g_list = NULL; in group()
842 gh->g_link = groups[h]; in group()
843 groups[h] = gh; in group()
855 gp->ge_link = gh->g_list; in group()
856 gh->g_list = gp; in group()
868 struct grouphead *gh, *p; in delgroup() local
873 for (gh = groups[h], p = NULL; gh != NULL; p = gh, gh = gh->g_link) in delgroup()
874 if (strcmp(gh->g_name, name) == 0) { in delgroup()
876 groups[h] = gh->g_link; in delgroup()
878 p->g_link = gh->g_link; in delgroup()
879 while (gh->g_list != NULL) { in delgroup()
880 g = gh->g_list; in delgroup()
881 gh->g_list = g->ge_link; in delgroup()
885 free(gh->g_name); in delgroup()
886 free(gh); in delgroup()