HomeSort by: relevance | last modified time | path
    Searched defs:ngroupsmax (Results 1 - 1 of 1) sorted by relevancy

  /src/usr.bin/newgrp/
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...]

Completed in 12 milliseconds