Home | History | Annotate | Download | only in posix

Lines Matching refs:groups

10 USE_GROUPS(NEWTOY(groups, NULL, TOYFLAG_USR|TOYFLAG_BIN))
37 config GROUPS
38 bool "groups"
41 usage: groups [user]
43 Print the groups a user is in.
91 gid_t gid = getgid(), egid = getegid(), *groups;
125 showid(" groups=", grp->gr_gid, grp->gr_name);
129 groups = (gid_t *)toybuf;
131 ngroups = username ? getgrouplist(username, gid, groups, &i)
132 : getgroups(i, groups);
139 if (!(grp = getgrgid(groups[i]))) perror_msg(0);