Lines Matching defs:ngroups
41 static int ngroups;
58 if (ngroups > 0)
61 ngroups = NGROUPS_MAX;
63 ngroups = MAX(NGROUPS_MAX, sysconf(_SC_NGROUPS_MAX));
66 groups_bygid = xcalloc(ngroups, sizeof(*groups_bygid));
67 groups_byname = xcalloc(ngroups, sizeof(*groups_byname));
69 if (getgrouplist(user, base, groups_bygid, &ngroups) == -1)
71 for (i = 0, j = 0; i < ngroups; i++)
75 return (ngroups = j);
88 for (i = 0; i < ngroups; i++)
105 for (i = 0; i < ngroups; i++) {
127 if (ngroups > 0) {
128 for (i = 0; i < ngroups; i++)
130 ngroups = 0;