Lines Matching refs:gid_t
40 common_setregid(gid_t rgid, gid_t egid, bool setAllIfPrivileged, bool kernel)
48 gid_t ssgid = team->saved_set_gid;
51 if (rgid == (gid_t)-1) {
84 if (egid == (gid_t)-1) {
166 common_getgroups(int groupCount, gid_t* groupList, bool kernel)
172 const gid_t* groups = NULL;
196 memcpy(groupList, groups, actualCount * sizeof(gid_t));
200 actualCount * sizeof(gid_t)) != B_OK) {
210 common_setgroups(int groupCount, const gid_t* groupList, bool kernel)
218 + (sizeof(gid_t) * groupCount));
224 memcpy(newGroups->groups, groupList, sizeof(gid_t) * groupCount);
228 sizeof(gid_t) * groupCount) != B_OK) {
292 gid_t
311 _kern_setregid(gid_t rgid, gid_t egid, bool setAllIfPrivileged)
325 _kern_getgroups(int groupCount, gid_t* groupList)
332 _kern_setgroups(int groupCount, const gid_t* groupList)
341 gid_t
360 _user_setregid(gid_t rgid, gid_t egid, bool setAllIfPrivileged)
374 _user_getgroups(int groupCount, gid_t* groupList)
381 _user_setgroups(int groupCount, const gid_t* groupList)