Lines Matching defs:glist
264 gid_t *glist = groups;
272 if (getgrouplist(pw->pw_name, pw->pw_gid, glist, &ngroups) == -1) {
273 glist = malloc(ngroups * sizeof(gid_t));
274 (void) getgrouplist(pw->pw_name, pw->pw_gid, glist, &ngroups);
278 id = glist[cnt];
286 if (glist != groups)
287 free(glist);
297 gid_t *glist = groups;
301 if (getgrouplist(pw->pw_name, pw->pw_gid, glist, &ngroups)
303 glist = malloc(ngroups * sizeof(gid_t));
304 (void) getgrouplist(pw->pw_name, pw->pw_gid, glist,
308 glist[0] = getgid();
309 ngroups = getgroups(maxgroups, glist + 1) + 1;
313 if (lastid == (id = glist[cnt]) || (cnt && id == glist[0]))
329 if (glist != groups)
330 free(glist);