/freebsd-11-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-11-stable/contrib/openpam/lib/libpam/ |
H A D | openpam_cred.h | 48 gid_t groups[NGROUPS_MAX]; member in struct:pam_saved_cred
|
/freebsd-11-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 | 90 if (strcmp(myname, "groups") == 0) { 235 (void)printf("groups\t"); 261 (void)printf("groups\t"); 274 gid_t *groups; local 287 if ((groups = malloc(sizeof(gid_t) * ngroups_max)) == NULL) 292 getgrouplist(pw->pw_name, gid, groups, &ngroups); 295 ngroups = getgroups(ngroups_max, groups); 315 fmt = " groups=%u"; 317 if (lastgid == (gid = groups[cnt])) 326 free(groups); 383 gid_t *groups; local [all...] |
/freebsd-11-stable/usr.bin/procstat/ |
H A D | procstat_cred.c | 51 gid_t *groups; local 71 groups = NULL; 73 * We may have too many groups to fit in kinfo_proc's statically 78 groups = procstat_getgroups(procstat, kipp, &ngroups); 79 if (groups == NULL) { 81 groups = kipp->ki_groups; 83 xo_open_list("groups"); 85 xo_emit("{D:/%s}{l:groups/%d}", (i > 0) ? "," : "", groups[i]); 86 if (groups ! [all...] |
/freebsd-11-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-11-stable/libexec/mknetid/ |
H A D | hash.h | 44 struct grouplist *groups; member in struct:member_entry
|
H A D | hash.c | 120 return(cur->groups); 150 tmp->next = cur->groups; 151 cur->groups = tmp; 161 new->groups = tmp; 163 new->groups = (struct grouplist *)&dummy;
|
/freebsd-11-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-11-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-11-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-11-stable/contrib/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...] |
/freebsd-11-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-11-stable/libexec/revnetgroup/ |
H A D | hash.h | 45 struct grouplist *groups; member in struct:member_entry
|
/freebsd-11-stable/contrib/gcc/ |
H A D | tree-ssa-loop-prefetch.c | 233 find_or_create_group (struct mem_ref_group **groups, tree base, argument 238 for (; *groups; groups = &(*groups)->next) 240 if ((*groups)->step == step 241 && operand_equal_p ((*groups)->base, base, 0)) 242 return *groups; 244 /* Keep the list of groups sorted by decreasing step. */ 245 if ((*groups)->step < step) 253 group->next = *groups; 304 release_mem_refs(struct mem_ref_group *groups) argument 729 prune_by_reuse(struct mem_ref_group *groups) argument 755 schedule_prefetches(struct mem_ref_group *groups, unsigned unroll_factor, unsigned ahead) argument 803 anything_to_prefetch_p(struct mem_ref_group *groups) argument 861 issue_prefetches(struct mem_ref_group *groups, unsigned unroll_factor, unsigned ahead) argument [all...] |
/freebsd-11-stable/include/rpcsvc/ |
H A D | mount.x | 128 typedef struct groupnode *groups; 131 groups gr_next; 140 groups ex_groups;
|
/freebsd-11-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-11-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-11-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-11-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-11-stable/crypto/openssh/ |
H A D | groupaccess.c | 47 * supplementary groups. Return the number of groups in the list. 68 logit("getgrouplist: groups list too small"); 77 * Return 1 if one of user's groups is contained in groups. 81 ga_match(char * const *groups, int n) argument 87 if (match_pattern(groups_byname[i], groups[j])) 93 * Return 1 if one of user's groups matches group_pattern list.
|
/freebsd-11-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:__anon30 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...] |