Lines Matching refs:gidset
51 gid_t gidset[NGROUPS_MAX]; in ATF_TC_BODY() local
60 ATF_REQUIRE(getgroups(-1, gidset) == -1); in ATF_TC_BODY()
72 gid_t gidset[NGROUPS_MAX]; in ATF_TC_BODY() local
80 n = getgroups(NGROUPS_MAX, gidset); in ATF_TC_BODY()
84 if (gidset[i] == gid) in ATF_TC_BODY()
100 gid_t gidset[NGROUPS_MAX]; in ATF_TC_BODY() local
108 n = getgroups(NGROUPS_MAX, gidset); in ATF_TC_BODY()
118 rv = setgid(gidset[i]); in ATF_TC_BODY()
142 gid_t gidset[NGROUPS_MAX]; in ATF_TC_BODY() local
150 for (i = 0; i < __arraycount(gidset); i++) in ATF_TC_BODY()
151 gidset[i] = val; in ATF_TC_BODY()
153 ATF_REQUIRE(getgroups(0, gidset) >= 0); in ATF_TC_BODY()
155 for (i = 0; i < __arraycount(gidset); i++) { in ATF_TC_BODY()
157 if (gidset[i] != val) in ATF_TC_BODY()