Lines Matching refs:ngroups
223 int cnt, ngroups;
244 if ((ngroups = getgroups(maxgroups, groups)) != 0) {
245 for (fmt = " groups=%ju", lastid = -1, cnt = 0; cnt < ngroups;
263 int cnt, id, lastid, ngroups;
271 ngroups = maxgroups + 1;
272 if (getgrouplist(pw->pw_name, pw->pw_gid, glist, &ngroups) == -1) {
273 glist = malloc(ngroups * sizeof(gid_t));
274 (void) getgrouplist(pw->pw_name, pw->pw_gid, glist, &ngroups);
276 for (fmt = " groups=%u", lastid = -1, cnt = 0; cnt < ngroups;
294 int cnt, ngroups;
300 ngroups = maxgroups;
301 if (getgrouplist(pw->pw_name, pw->pw_gid, glist, &ngroups)
303 glist = malloc(ngroups * sizeof(gid_t));
305 &ngroups);
309 ngroups = getgroups(maxgroups, glist + 1) + 1;
312 for (lastid = -1, cnt = 0; cnt < ngroups; ++cnt) {