Home
last modified time | relevance | path

Searched refs:gidset (Results 1 – 3 of 3) sorted by relevance

/external/ltp/testcases/kernel/syscalls/getgroups/
Dgetgroups01.c65 static GID_T gidset[NGROUPS]; variable
83 TEST(GETGROUPS(cleanup, -1, gidset)); in main()
101 memset(gidset, 052, NGROUPS * sizeof(GID_T)); in main()
104 TEST(GETGROUPS(cleanup, 0, gidset)); in main()
108 if (memcmp(cmpset, gidset, NGROUPS * sizeof(GID_T)) != 0) in main()
126 TEST(GETGROUPS(cleanup, TEST_RETURN - 1, gidset)); in main()
143 TEST(GETGROUPS(cleanup, NGROUPS, gidset)); in main()
152 if (gidset[i] == group) { in main()
/external/ltp/runtest/
Dquickhit140 # 1. Check to see if getgroups(-1, gidset) fails and sets errno to EINVAL
141 # 2. Check to see if getgroups(0, gidset) does not return -1 and gidset is
144 # where x is one less then what is returned by getgroups(0, gidset).
145 # 4. Check to see if getgroups() succeeds and gidset contains
/external/openssh/
Dsshd.c543 gid_t gidset[1]; in privsep_preauth_child() local
571 gidset[0] = privsep_pw->pw_gid; in privsep_preauth_child()
572 if (setgroups(1, gidset) < 0) in privsep_preauth_child()