Lines Matching refs:ngroups
42 static int ngroups; variable
60 if (ngroups > 0) in ga_init()
63 ngroups = NGROUPS_MAX; in ga_init()
65 ngroups = MAX(NGROUPS_MAX, sysconf(_SC_NGROUPS_MAX)); in ga_init()
68 groups_bygid = xcalloc(ngroups, sizeof(*groups_bygid)); in ga_init()
69 groups_byname = xcalloc(ngroups, sizeof(*groups_byname)); in ga_init()
71 if (getgrouplist(user, base, groups_bygid, &ngroups) == -1) in ga_init()
73 for (i = 0, j = 0; i < ngroups; i++) in ga_init()
77 return (ngroups = j); in ga_init()
90 for (i = 0; i < ngroups; i++) in ga_match()
107 for (i = 0; i < ngroups; i++) { in ga_match_pattern_list()
129 if (ngroups > 0) { in ga_free()
130 for (i = 0; i < ngroups; i++) in ga_free()
132 ngroups = 0; in ga_free()