Searched refs:ngroupsmax (Results 1 – 1 of 1) sorted by relevance
69 alloc_groups(int *ngroups, gid_t **groups, int *ngroupsmax) in alloc_groups() argument71 *ngroupsmax = (int)sysconf(_SC_NGROUPS_MAX); in alloc_groups()72 if (*ngroupsmax < 0) in alloc_groups()73 *ngroupsmax = NGROUPS_MAX; in alloc_groups()75 *groups = malloc(*ngroupsmax * sizeof(**groups)); in alloc_groups()79 *ngroups = getgroups(*ngroupsmax, *groups); in alloc_groups()88 addgid(gid_t *groups, int ngroups, int ngroupsmax, gid_t gid, int makespace) in addgid() argument98 if (ngroups < ngroupsmax) in addgid()118 for (i = ngroupsmax - 1; i >= 0; i--) in addgid()140 int ngroups, ngroupsmax; in addgrp() local[all …]