/freebsd-13-stable/lib/libc/gen/ |
H A D | initgroups.c | 51 gid_t *groups; local 58 if ((groups = malloc(sizeof(*groups) * ngroups_max)) == NULL) 62 getgrouplist(uname, agroup, groups, &ngroups); 63 ret = setgroups(ngroups, groups); 64 free(groups);
|
H A D | getgrouplist.c | 48 getgrouplist(const char *uname, gid_t agroup, gid_t *groups, int *grpcnt) argument 50 return __getgroupmembership(uname, agroup, groups, *grpcnt, grpcnt);
|
/freebsd-13-stable/contrib/openpam/lib/libpam/ |
H A D | openpam_cred.h | 48 gid_t groups[NGROUPS_MAX]; member in struct:pam_saved_cred
|
/freebsd-13-stable/usr.bin/id/ |
H A D | Makefile | 7 LINKS= ${BINDIR}/id ${BINDIR}/groups 9 MAN= id.1 groups.1 whoami.1
|
H A D | id.c | 92 if (strcmp(myname, "groups") == 0) { 237 (void)printf("groups\t"); 263 (void)printf("groups\t"); 276 gid_t *groups; local 289 if ((groups = malloc(sizeof(gid_t) * ngroups_max)) == NULL) 294 getgrouplist(pw->pw_name, gid, groups, &ngroups); 297 ngroups = getgroups(ngroups_max, groups); 317 fmt = " groups=%u"; 319 if (lastgid == (gid = groups[cnt])) 328 free(groups); 385 gid_t *groups; local [all...] |
/freebsd-13-stable/usr.bin/procstat/ |
H A D | procstat_cred.c | 52 gid_t *groups; local 72 groups = NULL; 74 * We may have too many groups to fit in kinfo_proc's statically 79 groups = procstat_getgroups(procstat, kipp, &ngroups); 80 if (groups == NULL) { 82 groups = kipp->ki_groups; 84 xo_open_list("groups"); 86 xo_emit("{D:/%s}{l:groups/%d}", (i > 0) ? "," : "", groups[i]); 87 if (groups ! [all...] |
/freebsd-13-stable/contrib/atf/atf-c/detail/ |
H A D | user.c | 48 static gid_t groups[NGROUPS_MAX]; local 54 ngroups = getgroups(NGROUPS_MAX, groups); 60 if (groups[i] == gid)
|
/freebsd-13-stable/libexec/mknetid/ |
H A D | hash.h | 46 struct grouplist *groups; member in struct:member_entry
|
H A D | hash.c | 122 return(cur->groups); 152 tmp->next = cur->groups; 153 cur->groups = tmp; 163 new->groups = tmp; 165 new->groups = (struct grouplist *)&dummy;
|
/freebsd-13-stable/crypto/openssh/openbsd-compat/ |
H A D | getgrouplist.c | 46 getgrouplist(const char *uname, gid_t agroup, gid_t *groups, int *grpcnt) argument 64 groups[ngroups++] = agroup; 67 * Scan the group file to find additional groups. 74 if (groups[i] == grp->gr_gid) 84 groups[ngroups++] = grp->gr_gid;
|
/freebsd-13-stable/contrib/openbsm/bin/auditdistd/ |
H A D | sandbox.c | 79 gid_t *groups, *ggroups; local 87 groups = NULL; 112 "Unable to obtain maximum number of groups"); 116 groups = malloc(sizeof(groups[0]) * ngroups); 117 if (groups == NULL) { 118 pjdlog_error("Unable to allocate memory for %d groups.", 122 if (getgrouplist(user, pw->pw_gid, groups, &ngroups) == -1) { 123 pjdlog_error("Unable to obtain groups of user %s.", user); 161 if (setgroups(ngroups, groups) [all...] |
/freebsd-13-stable/contrib/libevent/test/ |
H A D | tinytest.c | 87 static void usage(struct testgroup_t *groups, int list_groups) 89 static int process_test_option(struct testgroup_t *groups, const char *test); 278 tinytest_set_flag_(struct testgroup_t *groups, const char *arg, int set, unsigned long flag) argument 286 for (i=0; groups[i].prefix; ++i) { 287 for (j=0; groups[i].cases[j].name; ++j) { 288 struct testcase_t *testcase = &groups[i].cases[j]; 290 groups[i].prefix, testcase->name); 313 usage(struct testgroup_t *groups, int list_groups) argument 322 tinytest_set_flag_(groups, "..", 1, 0); 328 process_test_alias(struct testgroup_t *groups, cons argument 348 process_test_option(struct testgroup_t *groups, const char *test) argument 381 tinytest_main(int c, const char **v, struct testgroup_t *groups) argument [all...] |
H A D | tinytest.h | 87 /** Set all tests in 'groups' matching the name 'named' to be skipped. */ 88 #define tinytest_skip(groups, named) \ 89 tinytest_set_flag_(groups, named, 1, TT_SKIP) 96 /** Run a set of testcases from an END_OF_GROUPS-terminated array of groups, 98 int tinytest_main(int argc, const char **argv, struct testgroup_t *groups);
|
/freebsd-13-stable/contrib/ntp/sntp/libevent/test/ |
H A D | tinytest.c | 87 static void usage(struct testgroup_t *groups, int list_groups) 89 static int process_test_option(struct testgroup_t *groups, const char *test); 278 tinytest_set_flag_(struct testgroup_t *groups, const char *arg, int set, unsigned long flag) argument 286 for (i=0; groups[i].prefix; ++i) { 287 for (j=0; groups[i].cases[j].name; ++j) { 288 struct testcase_t *testcase = &groups[i].cases[j]; 290 groups[i].prefix, testcase->name); 313 usage(struct testgroup_t *groups, int list_groups) argument 322 tinytest_set_flag_(groups, "..", 1, 0); 328 process_test_alias(struct testgroup_t *groups, cons argument 348 process_test_option(struct testgroup_t *groups, const char *test) argument 381 tinytest_main(int c, const char **v, struct testgroup_t *groups) argument [all...] |
H A D | tinytest.h | 87 /** Set all tests in 'groups' matching the name 'named' to be skipped. */ 88 #define tinytest_skip(groups, named) \ 89 tinytest_set_flag_(groups, named, 1, TT_SKIP) 96 /** Run a set of testcases from an END_OF_GROUPS-terminated array of groups, 98 int tinytest_main(int argc, const char **argv, struct testgroup_t *groups);
|
/freebsd-13-stable/contrib/diff/src/ |
H A D | ifdef.c | 101 struct group groups[2]; local 103 groups[0].file = &files[0]; 104 groups[0].from = beg0; 105 groups[0].upto = end0; 106 groups[1].file = &files[1]; 107 groups[1].from = beg1; 108 groups[1].upto = end1; 109 format_group (outfile, format, 0, groups); 120 struct group const *groups) 154 value[i] = groups_letter_value (groups, * 119 format_group(register FILE *out, char const *format, char endchar, struct group const *groups) argument 305 do_printf_spec(FILE *out, char const *spec, struct file_data const *file, lin n, struct group const *groups) argument [all...] |
/freebsd-13-stable/libexec/revnetgroup/ |
H A D | hash.h | 47 struct grouplist *groups; member in struct:member_entry
|
/freebsd-13-stable/include/rpcsvc/ |
H A D | mount.x | 128 typedef struct groupnode *groups; 131 groups gr_next; 140 groups ex_groups;
|
/freebsd-13-stable/contrib/netbsd-tests/usr.bin/id/ |
H A D | pwgr.c | 105 getgrouplist(const char *name, gid_t basegid, gid_t *groups, int *ngroups) argument 111 groups[0] = basegid; 119 groups[0] = basegid; 124 groups[1] = 0;
|
H A D | t_groups.sh | 31 [ -f ./groups ] || ln -s $(atf_get_srcdir)/h_id ./groups 32 ./groups "\${@}" 62 # groups shares code) when using the -Gn options.
|
/freebsd-13-stable/tests/sys/acl/ |
H A D | run | 163 my @groups = (); 170 push @groups, $gid 176 my $groups = join(" ", ($gid, $gid, @groups)); 177 #print STDERR "[[$groups]]\n"; 181 $) = $groups; 202 my %groups = map { $_ eq $gid ? () : ($_ => 1) } (split /\s/, $)); 204 #print STDERR "<<", join("/", keys %groups), ">>\n"; 205 my $groups = join(" ", ($gid, $gid, keys %groups)); [all...] |
/freebsd-13-stable/contrib/llvm-project/lldb/source/Plugins/LanguageRuntime/RenderScript/RenderScriptRuntime/ |
H A D | RenderScriptScriptGroup.cpp | 96 "List all currently discovered script groups.", 109 const RSScriptGroupList &groups = runtime->GetScriptGroups(); variable 111 stream.Printf("%" PRIu64 " script %s", uint64_t(groups.size()), 112 (groups.size() == 1) ? "group" : "groups"); 116 for (const RSScriptGroupDescriptorSP &g : groups) {
|
/freebsd-13-stable/usr.sbin/nscd/ |
H A D | cacheplcs.c | 373 TAILQ_INSERT_HEAD(&(lfu_policy->groups[CACHELIB_MAX_FREQUENCY - 1]), 414 TAILQ_REMOVE(&(lfu_policy->groups[lfu_item->frequency]), lfu_item, 417 TAILQ_INSERT_HEAD(&(lfu_policy->groups[index]), lfu_item, entries); 433 TAILQ_REMOVE(&(lfu_policy->groups[lfu_item->frequency]), lfu_item, 449 if (!TAILQ_EMPTY(&(lfu_policy->groups[i]))) { 450 lfu_item = TAILQ_FIRST(&(lfu_policy->groups[i])); 469 if (!TAILQ_EMPTY(&(lfu_policy->groups[i]))) { 470 lfu_item = TAILQ_LAST(&(lfu_policy->groups[i]), 494 if (!TAILQ_EMPTY(&(lfu_policy->groups[i]))) { 495 lfu_item = TAILQ_FIRST(&(lfu_policy->groups[ [all...] |
/freebsd-13-stable/contrib/xz/src/liblzma/common/ |
H A D | index.c | 72 /// Every Record group is part of index_stream.groups tree. 117 /// Record groups of this Stream are stored in a tree. 122 index_tree groups; member in struct:__anon6621 212 /// The latter is used to free the Record groups from each index_stream 357 index_tree_init(&s->groups); 368 /// Free the memory allocated for a Stream and its Record groups. 373 index_tree_end(&s->groups, allocator, &lzma_free); 464 // Number of groups. There may actually be more, but that overhead 466 const lzma_vli groups local 471 const uint64_t groups_mem = groups * group_bas [all...] |
/freebsd-13-stable/crypto/openssh/ |
H A D | groupaccess.c | 47 * supplementary groups. Return the number of groups in the list. 67 fatal("getgrouplist: groups list too small"); 81 * Return 1 if one of user's groups is contained in groups. 85 ga_match(char * const *groups, int n) argument 91 if (match_pattern(groups_byname[i], groups[j])) 97 * Return 1 if one of user's groups matches group_pattern list.
|