Searched refs:ngroups (Results 1 - 2 of 2) sorted by relevance

/ast/src/lib/libast/comp/
H A Deaccess.c106 static int ngroups = -2;
109 if (ngroups == -2)
111 if ((ngroups = getgroups(0, (gid_t*)0)) <= 0)
112 ngroups = NGROUPS_MAX;
113 if (!(groups = newof(0, gid_t, ngroups + 1, 0)))
114 ngroups = -1;
116 ngroups = getgroups(ngroups, groups);
118 n = ngroups;
/ast/src/lib/libcmd/
H A Did.c209 int ngroups = 0; local
237 ngroups = getgroups(maxgroups, groups);
238 for (i = j = 0; i < ngroups; i++)
243 ngroups = j;
286 if (ngroups == 1 && groups[0] == group)
287 ngroups = 0;
335 if (ngroups > 0)
339 for (i = 0; i < ngroups; i++)
393 else if (ngroups > 0)
401 if (++i >= ngroups) brea
[all...]

Completed in 8 milliseconds