Lines Matching defs:groups
32 This is a *much* faster way of getting the list of groups for a user
35 network with hundeds of thousands of groups and users. The new method
41 static int getgrouplist_internals(const char *user, gid_t gid, gid_t *groups,
52 /* work out how many groups we need to save */
95 ret = getgroups(*grpcnt - 1, &groups[1]);
101 groups[0] = gid;
120 static int sys_getgrouplist(const char *user, gid_t gid, gid_t *groups, int *grpcnt)
134 retval = getgrouplist(user, gid, groups, grpcnt);
137 retval = getgrouplist_internals(user, gid, groups, grpcnt);
156 gid_t *groups;
181 groups = NULL;
184 if (!add_gid_to_array_unique(mem_ctx, primary_gid, &groups, &ngrp)) {
191 &groups, &ngrp)) {
198 *ret_groups = groups;