/haiku-fatelf/src/bin/coreutils/man/ |
H A D | groups.x | 2 groups \- print the groups a user is in
|
/haiku-fatelf/src/tests/add-ons/kernel/file_systems/beserved/server/ |
H A D | authentication.h | 2 void getUserGroups(char *user, char **groups);
|
H A D | authentication.c | 228 void getUserGroups(char *user, char **groups) argument 246 groups[i++] = btRPCGetNewString(inPacket);
|
/haiku-fatelf/src/tests/add-ons/kernel/file_systems/beserved/server-1.2.6/ |
H A D | authentication.h | 2 void getUserGroups(char *user, char **groups);
|
/haiku-fatelf/src/tests/add-ons/kernel/file_systems/beserved/server-Windows/ |
H A D | authentication.h | 2 void getUserGroups(char *user, char **groups);
|
H A D | printing.cpp | 159 char *groups[MAX_GROUPS_PER_USER];
local 184 // Does the authenticated user belong to any groups that have any rights on this
187 groups[i] = NULL;
189 getUserGroups(user, groups);
193 if (groups[i] && stricmp(ur->user, groups[i]) == 0)
201 if (groups[i])
202 free(groups[i]);
|
/haiku-fatelf/src/bin/coreutils/lib/ |
H A D | mgetgroups.h | 19 int mgetgroups (const char *username, gid_t gid, gid_t **groups); 20 int xgetgroups (const char *username, gid_t gid, gid_t **groups);
|
H A D | mgetgroups.c | 1 /* mgetgroups.c -- return a list of the groups a user or current process is in 52 listed in the groups database (e.g., /etc/groups). If USERNAME is 53 NULL, store the supplementary groups of the current process, and GID 56 the number of groups. The resulting list may contain duplicates, 60 mgetgroups (char const *username, gid_t gid, gid_t **groups) argument 108 *groups = g; 122 /* If we failed to count groups because there is no supplemental 129 *groups = g; 161 *groups 200 xgetgroups(char const *username, gid_t gid, gid_t **groups) argument [all...] |
H A D | getgroups.c | 33 getgroups (int n _GL_UNUSED, GETGROUPS_T *groups _GL_UNUSED) 48 groups for the process. This function handles that special case 98 limits on the number of secondary groups. */
|
/haiku-fatelf/src/bin/coreutils/src/ |
H A D | group-list.c | 34 /* Print all of the distinct groups the user is in. */ 58 gid_t *groups; local 62 &groups); 67 error (0, errno, _("failed to get groups for user %s"), 72 error (0, errno, _("failed to get groups for the current process")); 78 if (groups[i] != rgid && groups[i] != egid) 81 if (!print_group (groups[i], use_names)) 84 free (groups);
|
H A D | chroot.c | 49 {"groups", required_argument, NULL, GROUPS}, 56 /* Call setgroups to set the supplementary groups to those listed in GROUPS. 57 GROUPS is a comma separated list of supplementary groups (names or numbers). 62 set_additional_groups (char const *groups) argument 67 char *buffer = xstrdup (groups); 99 error (0, 0, _("invalid group list %s"), quote (groups)); 107 error (0, errno, _("failed to set additional groups")); 135 --groups=G_LIST specify supplementary groups as g1,g2,..,gN\n\ 154 char const *groups local [all...] |
H A D | id.c | 65 {"groups", no_argument, NULL, 'G'}, 90 -G, --groups print all group IDs\n\ 296 gid_t *groups; local 300 &groups); 305 error (0, errno, _("failed to get groups for user %s"), 310 error (0, errno, _("failed to get groups for the current process")); 317 fputs (_(" groups="), stdout); 322 printf ("%lu", (unsigned long int) groups[i]); 323 grp = getgrgid (groups[i]); 327 free (groups); [all...] |
/haiku-fatelf/src/bin/gdb/gdb/ |
H A D | reggroups.c | 32 /* Individual register groups. */ 63 /* A linked list of groups for the given architecture. */ 82 struct reggroups *groups = GDBARCH_OBSTACK_ZALLOC (gdbarch, local 84 groups->last = &groups->first; 85 return groups; 92 add_group (struct reggroups *groups, struct reggroup *group, argument 98 (*groups->last) = el; 99 groups->last = &el->next; 105 struct reggroups *groups local 127 struct reggroups *groups; local [all...] |
/haiku-fatelf/src/bin/diffutils/src/ |
H A D | ifdef.c | 95 struct group groups[2]; local 97 groups[0].file = &files[0]; 98 groups[0].from = beg0; 99 groups[0].upto = end0; 100 groups[1].file = &files[1]; 101 groups[1].from = beg1; 102 groups[1].upto = end1; 103 format_group (outfile, format, 0, groups); 114 struct group const *groups) 148 value[i] = groups_letter_value (groups, * 113 format_group(register FILE *out, char const *format, char endchar, struct group const *groups) argument 299 do_printf_spec(FILE *out, char const *spec, struct file_data const *file, lin n, struct group const *groups) argument [all...] |
/haiku-fatelf/src/kits/network/libbind/irs/ |
H A D | util.c | 67 gid_t basegid, gid_t *groups, int *ngroups) 78 * the first element of groups is the effective gid 83 groups[ng++] = basegid; 86 groups[ng++] = basegid; 88 * Scan the group file to find additional groups. 98 groups[ng++] = grp->gr_gid; 66 make_group_list(struct irs_gr *this, const char *name, gid_t basegid, gid_t *groups, int *ngroups) argument
|
H A D | getgrent.c | 110 return (getgrouplist_p(name, basegid, groups, ngroups, net_data)); 189 getgrouplist_p(const char *name, gid_t basegid, gid_t *groups, int *ngroups, argument 197 return ((*gr->list)(gr, name, basegid, groups, ngroups));
|
H A D | gen_gr.c | 233 gid_t basegid, gid_t *groups, int *ngroups) 255 if (newgid(*ngroups, groups, t_groups[n])) { 260 groups[(*ngroups)++] = t_groups[n]; 484 newgid(int ngroups, gid_t *groups, gid_t group) { argument 485 ngroups--, groups++; 486 for (; ngroups-- > 0; groups++) 487 if (*groups == group) 232 gr_list(struct irs_gr *this, const char *name, gid_t basegid, gid_t *groups, int *ngroups) argument
|
H A D | dns_gr.c | 179 gid_t basegid, gid_t *groups, int *ngroups) 184 UNUSED(groups); 178 gr_list(struct irs_gr *this, const char *name, gid_t basegid, gid_t *groups, int *ngroups) argument
|
/haiku-fatelf/src/system/libroot/posix/ |
H A D | grp.cpp | 251 const int32* groups; local 254 || reply.FindData("groups", B_INT32_TYPE, (const void**)&groups, 259 memcpy(groupList, groups, groupsSize); 274 gid_t groups[NGROUPS_MAX + 1]; local 276 if (getgrouplist(user, baseGroup, groups, &groupCount) < 0) 279 return setgroups(groupCount, groups);
|
/haiku-fatelf/src/apps/packageinstaller/ |
H A D | PackageInfo.h | 45 void _AddItem(PackageItem *item, uint64 size, uint32 groups,
|
/haiku-fatelf/src/bin/ |
H A D | id.c | 85 gid_t *groups; local 89 groups = (gid_t *)malloc(ngroups_max *sizeof(gid_t)); 91 nGroups = getgroups(ngroups_max, groups); 96 if (lastID == (id = groups[cnt])) 164 -G, --groups print only the supplementary groups 192 struct option groupsOption = { "groups", no_argument, 0, 2 } ;
|
/haiku-fatelf/src/apps/mail/ |
H A D | Header.cpp | 538 // Build a list of all unique groups and the addresses they expand to. 551 BString groups; local 552 if (file.ReadAttrString("META:group", &groups) < B_OK || groups.Length() == 0) 562 char *group = groups.LockBuffer(groups.Length()); 1036 // all the groups at the top and we don't want to mix it in with them. 1072 // groups at the top, a divider line, and miscellaneous people added below 1080 BString groups; local 1082 file.ReadAttrString("META:group", &groups); [all...] |
/haiku-fatelf/src/system/kernel/ |
H A D | usergroup.cpp | 175 const gid_t* groups = team->supplementary_groups; local 180 groups = &team->effective_gid; 184 // if groupCount 0 is supplied, we only return the number of groups 194 memcpy(groupList, groups, actualCount * sizeof(gid_t)); 197 || user_memcpy(groupList, groups,
|
/haiku-fatelf/src/tests/add-ons/kernel/file_systems/beserved/BeManager/ |
H A D | UserProperties.cpp | 126 DIR *groups = OpenGroups(); local 127 if (groups) 130 while ((group = ReadGroup(groups)) != NULL) 133 CloseGroups(groups);
|
/haiku-fatelf/src/servers/app/stackandtile/ |
H A D | StackAndTile.cpp | 179 GroupIterator groups(this, fDesktop); 182 SATGroup* group = groups.NextGroup(); 218 GroupIterator groups(this, fDesktop); 220 SATGroup* group = groups.NextGroup(); 597 GroupIterator groups(this, fDesktop); 599 SATGroup* group = groups.NextGroup();
|