Lines Matching defs:groups
42 /* Private interface to the groups code in getgrnam.c */
48 gid_t *groups;
58 * ngroups_max is the maximum number of supplemental groups per
59 * process. if no supplemental groups are allowed, we're done.
64 if ((groups = (gid_t *)calloc(ngroups_max, sizeof (gid_t))) == 0) {
68 groups[0] = agroup;
70 ngroups = _getgroupsbymember(uname, groups, (int)ngroups_max,
75 free(groups);
79 retsave = setgroups(ngroups, groups);
82 free(groups);