Lines Matching defs:gidset
39 1. Check to see if getgroups(-1, gidset) fails and sets errno to EINVAL
40 2. Check to see if getgroups(0, gidset) does not return -1 and gidset is
43 where x is one less then what is returned by getgroups(0, gidset).
44 4. Check to see if getgroups() succeeds and gidset contains
65 static GID_T gidset[NGROUPS];
83 TEST(GETGROUPS(cleanup, -1, gidset));
98 * return and the gidset array is not modified.
101 memset(gidset, 052, NGROUPS * sizeof(GID_T));
104 TEST(GETGROUPS(cleanup, 0, gidset));
108 if (memcmp(cmpset, gidset, NGROUPS * sizeof(GID_T)) != 0)
110 "getgroups modified the gidset array");
113 "getgroups did not modify the gidset "
126 TEST(GETGROUPS(cleanup, TEST_RETURN - 1, gidset));
143 TEST(GETGROUPS(cleanup, NGROUPS, gidset));
152 if (gidset[i] == group) {
154 "getgroups(NGROUPS,gidset) "
164 "getgroups(NGROUPS,gidset) ret %d, does "