Searched refs:ngroups (Results 1 – 2 of 2) sorted by relevance
/bionic/tests/ |
D | grp_pwd_test.cpp | 837 int ngroups = 0; in TEST() local 838 ASSERT_EQ(-1, getgrouplist("root", 123, nullptr, &ngroups)); in TEST() 839 ASSERT_EQ(1, ngroups); in TEST() 842 ngroups = 8; in TEST() 843 gid_t groups[ngroups]; in TEST() 844 ASSERT_EQ(1, getgrouplist("root", 123, groups, &ngroups)); in TEST() 845 ASSERT_EQ(1, ngroups); in TEST()
|
/bionic/libc/bionic/ |
D | grp_pwd.cpp | 612 int getgrouplist(const char* /*user*/, gid_t group, gid_t* groups, int* ngroups) { in getgrouplist() argument 613 if (*ngroups < 1) { in getgrouplist() 614 *ngroups = 1; in getgrouplist() 618 return (*ngroups = 1); in getgrouplist()
|