/freebsd-9.3-release/lib/libc/gen/ |
H A D | initgroups.c | 53 gid_t *groups; local 60 if ((groups = malloc(sizeof(*groups) * ngroups_max)) == NULL) 64 getgrouplist(uname, agroup, groups, &ngroups); 65 ret = setgroups(ngroups, groups); 66 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-9.3-release/contrib/openpam/lib/libpam/ |
H A D | openpam_cred.h | 48 gid_t groups[NGROUPS_MAX]; member in struct:pam_saved_cred
|
H A D | openpam_restore_cred.c | 77 setgroups(scred->ngroups, scred->groups) < 0 ||
|
/freebsd-9.3-release/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 | 87 if (strcmp(myname, "groups") == 0) { 232 (void)printf("groups\t"); 258 (void)printf("groups\t"); 271 gid_t *groups; local 284 if ((groups = malloc(sizeof(gid_t) * ngroups_max)) == NULL) 289 getgrouplist(pw->pw_name, gid, groups, &ngroups); 292 ngroups = getgroups(ngroups_max, groups); 312 fmt = " groups=%u"; 314 if (lastgid == (gid = groups[cnt])) 323 free(groups); 380 gid_t *groups; local [all...] |
/freebsd-9.3-release/usr.bin/procstat/ |
H A D | procstat_cred.c | 48 gid_t *groups; local 67 groups = NULL; 69 * We may have too many groups to fit in kinfo_proc's statically 74 groups = procstat_getgroups(procstat, kipp, &ngroups); 75 if (groups == NULL) { 77 groups = kipp->ki_groups; 80 printf("%s%d", (i > 0) ? "," : "", groups[i]); 81 if (groups != kipp->ki_groups) 82 procstat_freegroups(procstat, groups);
|
/freebsd-9.3-release/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-9.3-release/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-9.3-release/contrib/openbsm/bin/auditdistd/ |
H A D | sandbox.c | 81 gid_t *groups, *ggroups; local 89 groups = NULL; 114 "Unable to obtain maximum number of groups"); 118 groups = malloc(sizeof(groups[0]) * ngroups); 119 if (groups == NULL) { 120 pjdlog_error("Unable to allocate memory for %d groups.", 124 if (getgrouplist(user, pw->pw_gid, groups, &ngroups) == -1) { 125 pjdlog_error("Unable to obtain groups of user %s.", user); 163 if (setgroups(ngroups, groups) [all...] |
/freebsd-9.3-release/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-9.3-release/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-9.3-release/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-9.3-release/contrib/cvs/diff/ |
H A D | ifdef.c | 98 struct group groups[2]; local 100 groups[0].file = &files[0]; 101 groups[0].from = beg0; 102 groups[0].upto = end0; 103 groups[1].file = &files[1]; 104 groups[1].from = beg1; 105 groups[1].upto = end1; 106 format_group (1, format, '\0', groups); 116 format_group (doit, format, endchar, groups) 120 struct group const *groups; [all...] |
/freebsd-9.3-release/libexec/revnetgroup/ |
H A D | hash.h | 45 struct grouplist *groups; member in struct:member_entry
|
H A D | hash.c | 167 * structure also has a linked list of groups hung off it. If handed 192 tmp->next = cur->groups; 193 cur->groups = tmp; 203 new->groups = tmp;
|
/freebsd-9.3-release/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-9.3-release/include/rpcsvc/ |
H A D | mount.x | 126 typedef struct groupnode *groups; 129 groups gr_next; 138 groups ex_groups;
|
/freebsd-9.3-release/tools/regression/acltools/ |
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-9.3-release/usr.sbin/jexec/ |
H A D | jexec.c | 63 if (getgrouplist(username, pwd->pw_gid, groups, &ngroups) != 0) \ 73 gid_t *groups = NULL; local 81 if ((groups = malloc(sizeof(gid_t) * ngroups_max)) == NULL) 119 if (setgroups(ngroups, groups) != 0)
|
/freebsd-9.3-release/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-9.3-release/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:__anon4504 215 /// to free the Record groups from each index_stream before freeing 358 index_tree_init(&s->groups); 369 /// Free the memory allocated for a Stream and its Record groups. 374 index_tree_end(&s->groups, allocator, NULL); 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-9.3-release/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.
|