Searched refs:groups (Results 1 - 25 of 128) sorted by relevance

123456

/freebsd-current/lib/libc/gen/
H A Dinitgroups.c47 gid_t *groups; local
54 if ((groups = malloc(sizeof(*groups) * ngroups_max)) == NULL)
58 getgrouplist(uname, agroup, groups, &ngroups);
59 ret = setgroups(ngroups, groups);
60 free(groups);
H A Dgetgrouplist.c44 getgrouplist(const char *uname, gid_t agroup, gid_t *groups, int *grpcnt) argument
46 return __getgroupmembership(uname, agroup, groups, *grpcnt, grpcnt);
/freebsd-current/contrib/openpam/lib/libpam/
H A Dopenpam_cred.h46 gid_t groups[NGROUPS_MAX]; member in struct:pam_saved_cred
/freebsd-current/usr.bin/procstat/
H A Dprocstat_cred.c49 gid_t *groups; local
69 groups = NULL;
71 * We may have too many groups to fit in kinfo_proc's statically
76 groups = procstat_getgroups(procstat, kipp, &ngroups);
77 if (groups == NULL) {
79 groups = kipp->ki_groups;
81 xo_open_list("groups");
83 xo_emit("{D:/%s}{l:groups/%d}", (i > 0) ? "," : "", groups[i]);
84 if (groups !
[all...]
/freebsd-current/usr.bin/id/
H A DMakefile7 LINKS= ${BINDIR}/id ${BINDIR}/groups
9 MAN= id.1 groups.1 whoami.1
H A Did.c78 if (strcmp(myname, "groups") == 0) {
225 (void)printf("groups\t");
251 (void)printf("groups\t");
264 gid_t *groups; local
277 if ((groups = malloc(sizeof(gid_t) * ngroups_max)) == NULL)
282 getgrouplist(pw->pw_name, gid, groups, &ngroups);
285 ngroups = getgroups(ngroups_max, groups);
305 fmt = " groups=%u";
307 if (lastgid == (gid = groups[cnt]))
316 free(groups);
373 gid_t *groups; local
[all...]
/freebsd-current/contrib/atf/atf-c/detail/
H A Duser.c48 static gid_t groups[NGROUPS_MAX]; local
54 ngroups = getgroups(NGROUPS_MAX, groups);
60 if (groups[i] == gid)
/freebsd-current/crypto/openssh/openbsd-compat/
H A Dgetgrouplist.c46 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-current/libexec/mknetid/
H A Dhash.h44 struct grouplist *groups; member in struct:member_entry
H A Dhash.c117 return(cur->groups);
147 tmp->next = cur->groups;
148 cur->groups = tmp;
158 new->groups = tmp;
160 new->groups = (struct grouplist *)&dummy;
/freebsd-current/contrib/openbsm/bin/auditdistd/
H A Dsandbox.c79 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-current/contrib/ntp/sntp/libevent/test/
H A Dtinytest.h90 /** Set all tests in 'groups' matching the name 'named' to be skipped. */
91 #define tinytest_skip(groups, named) \
92 tinytest_set_flag_(groups, named, 1, TT_SKIP)
99 /** Run a set of testcases from an END_OF_GROUPS-terminated array of groups,
101 int tinytest_main(int argc, const char **argv, struct testgroup_t *groups);
H A Dtinytest.c85 static void usage(struct testgroup_t *groups, int list_groups)
87 static int process_test_option(struct testgroup_t *groups, const char *test);
364 tinytest_set_flag_(struct testgroup_t *groups, const char *arg, int set, unsigned long flag) argument
372 for (i=0; groups[i].prefix; ++i) {
373 for (j=0; groups[i].cases[j].name; ++j) {
374 struct testcase_t *testcase = &groups[i].cases[j];
376 groups[i].prefix, testcase->name);
399 usage(struct testgroup_t *groups, int list_groups) argument
408 tinytest_set_flag_(groups, "..", 1, 0);
414 process_test_alias(struct testgroup_t *groups, cons argument
434 process_test_option(struct testgroup_t *groups, const char *test) argument
467 tinytest_main(int c, const char **v, struct testgroup_t *groups) argument
[all...]
/freebsd-current/contrib/libevent/test/
H A Dtinytest.h90 /** Set all tests in 'groups' matching the name 'named' to be skipped. */
91 #define tinytest_skip(groups, named) \
92 tinytest_set_flag_(groups, named, 1, TT_SKIP)
99 /** Run a set of testcases from an END_OF_GROUPS-terminated array of groups,
101 int tinytest_main(int argc, const char **argv, struct testgroup_t *groups);
H A Dtinytest.c85 static void usage(struct testgroup_t *groups, int list_groups)
87 static int process_test_option(struct testgroup_t *groups, const char *test);
364 tinytest_set_flag_(struct testgroup_t *groups, const char *arg, int set, unsigned long flag) argument
372 for (i=0; groups[i].prefix; ++i) {
373 for (j=0; groups[i].cases[j].name; ++j) {
374 struct testcase_t *testcase = &groups[i].cases[j];
376 groups[i].prefix, testcase->name);
399 usage(struct testgroup_t *groups, int list_groups) argument
408 tinytest_set_flag_(groups, "..", 1, 0);
414 process_test_alias(struct testgroup_t *groups, cons argument
434 process_test_option(struct testgroup_t *groups, const char *test) argument
467 tinytest_main(int c, const char **v, struct testgroup_t *groups) argument
[all...]
/freebsd-current/contrib/diff/src/
H A Difdef.c101 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-current/libexec/revnetgroup/
H A Dhash.h45 struct grouplist *groups; member in struct:member_entry
/freebsd-current/include/rpcsvc/
H A Dmount.x119 typedef struct groupnode *groups;
122 groups gr_next;
131 groups ex_groups;
/freebsd-current/contrib/netbsd-tests/usr.bin/id/
H A Dpwgr.c105 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 Dt_groups.sh31 [ -f ./groups ] || ln -s $(atf_get_srcdir)/h_id ./groups
32 ./groups "\${@}"
62 # groups shares code) when using the -Gn options.
/freebsd-current/tests/sys/acl/
H A Drun162 my @groups = ();
169 push @groups, $gid
175 my $groups = join(" ", ($gid, $gid, @groups));
176 #print STDERR "[[$groups]]\n";
180 $) = $groups;
201 my %groups = map { $_ eq $gid ? () : ($_ => 1) } (split /\s/, $));
203 #print STDERR "<<", join("/", keys %groups), ">>\n";
204 my $groups = join(" ", ($gid, $gid, keys %groups));
[all...]
/freebsd-current/sys/contrib/openzfs/tests/zfs-tests/tests/functional/idmap_mount/
H A Didmap_mount_005.ksh106 log_must $NSENTER setpriv --reuid 11000 --regid 11000 --clear-groups touch $IDMAPDIR/file
107 log_must $NSENTER setpriv --reuid 11000 --regid 11000 --clear-groups mkdir $IDMAPDIR/folder
108 log_must $NSENTER setpriv --reuid 11000 --regid 11000 --clear-groups ln -s file $IDMAPDIR/file-soft
109 log_must $NSENTER setpriv --reuid 11000 --regid 11000 --clear-groups ln $IDMAPDIR/file $IDMAPDIR/file-hard
111 log_must $NSENTER setpriv --reuid 11000 --regid 11000 --clear-groups cp -p $IDMAPDIR/file $IDMAPDIR/folder/file-p
112 log_must $NSENTER setpriv --reuid 11000 --regid 11000 --clear-groups cp $IDMAPDIR/file $IDMAPDIR/folder/file
/freebsd-current/usr.sbin/nscd/
H A Dcacheplcs.c367 TAILQ_INSERT_HEAD(&(lfu_policy->groups[CACHELIB_MAX_FREQUENCY - 1]),
408 TAILQ_REMOVE(&(lfu_policy->groups[lfu_item->frequency]), lfu_item,
411 TAILQ_INSERT_HEAD(&(lfu_policy->groups[index]), lfu_item, entries);
427 TAILQ_REMOVE(&(lfu_policy->groups[lfu_item->frequency]), lfu_item,
443 if (!TAILQ_EMPTY(&(lfu_policy->groups[i]))) {
444 lfu_item = TAILQ_FIRST(&(lfu_policy->groups[i]));
463 if (!TAILQ_EMPTY(&(lfu_policy->groups[i]))) {
464 lfu_item = TAILQ_LAST(&(lfu_policy->groups[i]),
488 if (!TAILQ_EMPTY(&(lfu_policy->groups[i]))) {
489 lfu_item = TAILQ_FIRST(&(lfu_policy->groups[
[all...]
/freebsd-current/crypto/openssh/
H A Dgroupaccess.c47 * 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.
/freebsd-current/contrib/xz/src/liblzma/common/
H A Dindex.c73 /// Every Record group is part of index_stream.groups tree.
118 /// Record groups of this Stream are stored in a tree.
123 index_tree groups; member in struct:__anon52
213 /// The latter is used to free the Record groups from each index_stream
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, &lzma_free);
465 // Number of groups. There may actually be more, but that overhead
467 const lzma_vli groups local
472 const uint64_t groups_mem = groups * group_bas
[all...]

Completed in 323 milliseconds

123456