Lines Matching defs:groups
62 * Store username and groups to which he/she belongs
67 int groups[NUMGIDS];
88 static struct group_list *groups[GRPTABSIZE]; /* group table */
204 * Parse the groups file
427 * Add gid to the list of a user's groups
439 for (g = groups[val]; g != NULL && strcmp(g->user, user); g = g->next)
446 g->groups[0] = gid;
447 g->next = groups[val];
448 groups[val] = g;
451 if (g->groups[i] == gid) {
456 (void) fprintf(stderr, "%s: %s's groups exceed %d\n",
460 g->groups[g->group_len++] = gid;
465 * print out a user's groups
477 for (g = groups[val]; g != NULL && strcmp(g->user, user); g = g->next)
482 if (gid != g->groups[i]) {
484 put_d(g->groups[i]);