Lines Matching full: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 *groups = (gid_t *)toybuf; in do_id() local
113 ngroups = username ? getgrouplist(username, gid, groups, &i) in do_id()
114 : getgroups(i, groups); in do_id()
120 if (groups[i] != egid) { in do_id()
121 if ((grp=getgrgid(groups[i]))) showone(" ",grp->gr_name,grp->gr_gid,0); in do_id()
122 else printf(" %u", groups[i]); in do_id()
144 showid(" groups=", gid, grp->gr_name); in do_id()
146 if (groups[i] != egid) { in do_id()
147 if ((grp=getgrgid(groups[i]))) showid(",", grp->gr_gid, grp->gr_name); in do_id()
148 else printf(",%u", groups[i]); in do_id()