Home | History | Annotate | Download | only in getgroups

Lines Matching refs:groups

52 static GID_T groups[NGROUPS];
87 * Scans the /etc/group file to get IDs of all the groups to which TESTUSER
91 static int readgroups(GID_T groups[NGROUPS])
104 groups[ngrps++] = grp->gr_gid;
120 if (groups[i] == g)
124 groups[ngrps++] = g;
139 * Get the IDs of all the groups of "root"
142 ngroups = readgroups(groups);
149 if (SETGROUPS(cleanup, ngroups, groups) == -1)
176 if (groups_list[i] != groups[j]) {
196 if (groups[i] != groups_list[j]) {
203 if (groups[i] != egid) {
207 groups[i], TESTUSER);