Home
last modified time | relevance | path

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

/systemd-251/src/basic/
Duser-util.c467 int ngroups; in in_gid() local
478 ngroups = getgroups_alloc(&gids); in in_gid()
479 if (ngroups < 0) in in_gid()
480 return ngroups; in in_gid()
482 return gid_list_has(gids, ngroups, gid); in in_gid()
521 int ngroups = 8; in getgroups_alloc() local
524 allocated = new(gid_t, ngroups); in getgroups_alloc()
530 ngroups = getgroups(ngroups, p); in getgroups_alloc()
531 if (ngroups >= 0) in getgroups_alloc()
542 ngroups = getgroups(0, NULL); in getgroups_alloc()
[all …]
/systemd-251/src/test/
Dtest-condition.c673 int ngroups_max, ngroups, r, i; in TEST() local
698 ngroups = getgroups(ngroups_max, gids); in TEST()
699 assert_se(ngroups >= 0); in TEST()
702 for (i = 0; i < ngroups; i++) { in TEST()