grutil.c | 69 alloc_groups(int *ngroups, gid_t **groups, int *ngroupsmax) 71 *ngroupsmax = (int)sysconf(_SC_NGROUPS_MAX); 72 if (*ngroupsmax < 0) 73 *ngroupsmax = NGROUPS_MAX; 75 *groups = malloc(*ngroupsmax * sizeof(**groups)); 79 *ngroups = getgroups(*ngroupsmax, *groups); 88 addgid(gid_t *groups, int ngroups, int ngroupsmax, gid_t gid, int makespace) 98 if (ngroups < ngroupsmax) 118 for (i = ngroupsmax - 1; i >= 0; i--) 140 int ngroups, ngroupsmax; local in function:addgrp 213 int ngroups, ngroupsmax; local in function:newgrp [all...] |