Lines Matching refs:initgrrep
56 struct sss_nss_initgr_rep initgrrep;
96 inp->result.initgrrep.start,
97 inp->result.initgrrep.ngroups,
98 &(inp->result.initgrrep.groups),
147 if (inp->result.initgrrep.ngroups == 0
148 || inp->result.initgrrep.groups == NULL) {
256 if ((*(inp->result.initgrrep.ngroups) - *(inp->result.initgrrep.start))
258 new_groups = realloc(inp->result.initgrrep.groups,
259 (num_results + *(inp->result.initgrrep.start))
266 inp->result.initgrrep.groups = new_groups;
268 *(inp->result.initgrrep.ngroups) = num_results
269 + *(inp->result.initgrrep.start);
274 &(inp->result.initgrrep.groups[*(inp->result.initgrrep.start)]),
276 *(inp->result.initgrrep.start) += 1;
500 inp.result.initgrrep.groups = malloc(new_ngroups * sizeof(gid_t));
501 if (inp.result.initgrrep.groups == NULL) {
505 inp.result.initgrrep.groups[0] = group;
507 inp.result.initgrrep.ngroups = &new_ngroups;
508 inp.result.initgrrep.start = &start;
510 /* inp.result.initgrrep.groups, inp.result.initgrrep.ngroups and
511 * inp.result.initgrrep.start might be modified by sss_get_ex() */
515 free(inp.result.initgrrep.groups);
519 memcpy(groups, inp.result.initgrrep.groups,
521 free(inp.result.initgrrep.groups);