Lines Matching defs:nGroupsMax
3208 static size_t nGroupsMax = (size_t)-1;
3212 * be nGroupsMax elements long, used for verifying user
3241 if (nGroupsMax == (size_t)-1) {
3242 if ((nGroupsMax = sysconf(_SC_NGROUPS_MAX)) > 0) {
3243 UsrGrps = xcalloc(nGroupsMax, sizeof (gid_t));
3244 OrigGrps = xcalloc(nGroupsMax, sizeof (gid_t));
3248 (void) fprintf(stderr, "nGroupsMax = %ld\n", nGroupsMax);
3261 if (nGroupsMax > 0) {
3262 numOrigGrps = getgroups(nGroupsMax, OrigGrps);
3265 numUsrGrps = getgroups(nGroupsMax, UsrGrps);