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

/systemd/src/basic/
H A Duser-util.c296 int ngroups_max, r, i; local
307 ngroups_max = sysconf(_SC_NGROUPS_MAX);
308 assert(ngroups_max > 0);
310 gids = alloca(sizeof(gid_t) * ngroups_max);
312 r = getgroups(ngroups_max, gids);
/systemd/src/core/
H A Dexecute.c699 int ngroups_max, k; local
704 assert_se((ngroups_max = (int) sysconf(_SC_NGROUPS_MAX)) > 0);
706 if (!(gids = new(gid_t, ngroups_max)))
710 k = getgroups(ngroups_max, gids);
721 if (k >= ngroups_max) {

Completed in 17 milliseconds