Lines Matching refs:ngroups
41 static int ngroups; variable
58 if (ngroups > 0) in ga_init()
61 ngroups = NGROUPS_MAX; in ga_init()
63 ngroups = MAX(NGROUPS_MAX, sysconf(_SC_NGROUPS_MAX)); in ga_init()
66 groups_bygid = xcalloc(ngroups, sizeof(*groups_bygid)); in ga_init()
67 groups_byname = xcalloc(ngroups, sizeof(*groups_byname)); in ga_init()
69 if (getgrouplist(user, base, groups_bygid, &ngroups) == -1) in ga_init()
71 for (i = 0, j = 0; i < ngroups; i++) in ga_init()
75 return (ngroups = j); in ga_init()
88 for (i = 0; i < ngroups; i++) in ga_match()
105 for (i = 0; i < ngroups; i++) { in ga_match_pattern_list()
127 if (ngroups > 0) { in ga_free()
128 for (i = 0; i < ngroups; i++) in ga_free()
130 ngroups = 0; in ga_free()