Lines Matching defs:ngroups
727 int ngroups;
735 ngroups = ngroups_alloc;
736 getgrouplist(user_name, pw->pw_gid, groups, &ngroups);
738 if (ngroups > ngroups_alloc)
743 realloc_groups(&supp_groups, ngroups);
744 memcpy(supp_groups.groups + supp_groups.nb - ngroups,
745 groups, ngroups * sizeof(*groups));
758 const int ngroups = getgroups(0, NULL);
760 if (ngroups > 0) {
761 realloc_groups(&supp_groups, ngroups);
763 if (getgroups(ngroups, supp_groups.groups +
764 supp_groups.nb - ngroups) < 0)