Home | History | Annotate | Download | only in id

Lines Matching defs:groups

63 static gid_t *groups;
76 if (strcmp(getprogname(), "groups") == 0) {
135 if ((groups = malloc((maxgroups + 1) * sizeof(gid_t))) == NULL)
171 free(groups);
185 (void)printf("groups\t");
211 (void)printf("groups\t");
244 if ((ngroups = getgroups(maxgroups, groups)) != 0) {
245 for (fmt = " groups=%ju", lastid = -1, cnt = 0; cnt < ngroups;
247 gid = groups[cnt];
264 gid_t *glist = groups;
276 for (fmt = " groups=%u", lastid = -1, cnt = 0; cnt < ngroups;
286 if (glist != groups)
297 gid_t *glist = groups;
329 if (glist != groups)
358 if (strcmp(getprogname(), "groups") == 0) {
359 (void)fprintf(stderr, "usage: groups [user]\n");