Home
last modified time | relevance | path

Searched refs:groups (Results 1 – 25 of 725) sorted by relevance

12345678910>>...29

/netbsd/src/usr.bin/newgrp/
Dgrutil.c59 free_groups(void *groups) in free_groups() argument
64 free(groups); in free_groups()
69 alloc_groups(int *ngroups, gid_t **groups, int *ngroupsmax) in alloc_groups() argument
75 *groups = malloc(*ngroupsmax * sizeof(**groups)); in alloc_groups()
76 if (*groups == NULL) in alloc_groups()
79 *ngroups = getgroups(*ngroupsmax, *groups); in alloc_groups()
81 free_groups(*groups); in alloc_groups()
88 addgid(gid_t *groups, int ngroups, int ngroupsmax, gid_t gid, int makespace) in addgid() argument
93 for (i = 0; i < ngroups && groups[i] != gid; i++) in addgid()
99 groups[ngroups++] = gid; in addgid()
[all …]
/netbsd/src/lib/libc/gen/
Dgetgroupmembership.c75 __gr_addgid(gid_t gid, gid_t *groups, int maxgrp, int *groupc) in __weak_alias()
80 _DIAGASSERT(groups != NULL); in __weak_alias()
84 if (groups[dupc] == gid) in __weak_alias()
90 groups[*groupc] = gid; in __weak_alias()
105 gid_t *groups = va_arg(ap, gid_t *); in _files_getgroupmembership() local
120 (void) __gr_addgid(agroup, groups, maxgrp, groupc); in _files_getgroupmembership()
129 if (! __gr_addgid(grp.gr_gid, groups, maxgrp, groupc)) in _files_getgroupmembership()
148 gid_t *groups = va_arg(ap, gid_t *); in _dns_getgroupmembership() local
166 (void) __gr_addgid(agroup, groups, maxgrp, groupc); in _dns_getgroupmembership()
188 if (! __gr_addgid(grp.gr_gid, groups, maxgrp, in _dns_getgroupmembership()
[all …]
Dinitgroups.c59 gid_t *groups = groups_list; in __weak_alias() local
65 if (getgrouplist(uname, agroup, groups, &ngroups) == -1) { in __weak_alias()
67 groups = calloc((size_t)maxgroups, sizeof *groups); in __weak_alias()
68 if (groups == NULL) in __weak_alias()
70 if (getgrouplist(uname, agroup, groups, &ngroups) == -1) in __weak_alias()
73 rval = setgroups(ngroups, groups); in __weak_alias()
77 rval = setgroups(ng, groups); in __weak_alias()
79 if (groups != groups_list) in __weak_alias()
80 free(groups); in __weak_alias()
/netbsd/src/external/gpl2/xcvs/dist/diff/
Difdef.c98 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) in format_group() argument
120 struct group const *groups;
[all …]
/netbsd/src/external/gpl3/gdb/dist/gdb/
Dreggroups.c95 groups () const in groups() function
114 struct reggroups *groups = reggroups_data.get (gdbarch); in get_reggroups() local
115 if (groups == nullptr) in get_reggroups()
116 groups = reggroups_data.emplace (gdbarch); in get_reggroups()
117 return groups; in get_reggroups()
125 struct reggroups *groups = get_reggroups (gdbarch); in reggroup_add() local
127 gdb_assert (groups != nullptr); in reggroup_add()
130 groups->add (group); in reggroup_add()
137 struct reggroups *groups = get_reggroups (gdbarch); in gdbarch_reggroups() local
138 gdb_assert (groups != nullptr); in gdbarch_reggroups()
[all …]
Dxml-syscall.c145 std::vector<syscall_group_desc_up> groups; member
173 syscalls_info->groups.emplace_back (groupdesc); in syscall_group_create_syscall_group_desc()
187 = syscalls_info->groups.begin (); in syscall_group_add_syscall()
189 for (; it != syscalls_info->groups.end (); it++) in syscall_group_add_syscall()
197 if (it != syscalls_info->groups.end ()) in syscall_group_add_syscall()
213 char *groups) in syscall_create_syscall_desc() argument
221 if (groups != NULL) in syscall_create_syscall_desc()
224 for (char *group = strtok_r (groups, ",", &saveptr); in syscall_create_syscall_desc()
243 char *groups = NULL; in syscall_start_syscall() local
254 groups = (char *) attr.value.get (); in syscall_start_syscall()
[all …]
/netbsd/src/external/bsd/libevent/dist/test/
Dtinytest.c86 static void usage(struct testgroup_t *groups, int list_groups)
88 static int process_test_option(struct testgroup_t *groups, const char *test);
365 tinytest_set_flag_(struct testgroup_t *groups, const char *arg, int set, unsigned long flag) argument
373 for (i=0; groups[i].prefix; ++i) {
374 for (j=0; groups[i].cases[j].name; ++j) {
375 struct testcase_t *testcase = &groups[i].cases[j];
377 groups[i].prefix, testcase->name);
400 usage(struct testgroup_t *groups, int list_groups) argument
409 tinytest_set_flag_(groups, "..", 1, 0);
415 process_test_alias(struct testgroup_t *groups, const char *test) argument
[all …]
/netbsd/src/external/bsd/ntp/dist/sntp/libevent/test/
Dtinytest.c87 static void usage(struct testgroup_t *groups, int list_groups)
89 static int process_test_option(struct testgroup_t *groups, const char *test);
366 tinytest_set_flag_(struct testgroup_t *groups, const char *arg, int set, unsigned long flag) argument
374 for (i=0; groups[i].prefix; ++i) {
375 for (j=0; groups[i].cases[j].name; ++j) {
376 struct testcase_t *testcase = &groups[i].cases[j];
378 groups[i].prefix, testcase->name);
401 usage(struct testgroup_t *groups, int list_groups) argument
410 tinytest_set_flag_(groups, "..", 1, 0);
416 process_test_alias(struct testgroup_t *groups, const char *test) argument
[all …]
/netbsd/src/external/gpl3/gcc/dist/gcc/
Dtree-ssa-loop-prefetch.cc313 find_or_create_group (struct mem_ref_group **groups, tree base, tree step) in find_or_create_group() argument
320 for (; *groups; groups = &(*groups)->next) in find_or_create_group()
322 if (operand_equal_p ((*groups)->step, step, 0) in find_or_create_group()
323 && operand_equal_p ((*groups)->base, base, 0)) in find_or_create_group()
324 return *groups; in find_or_create_group()
328 if (cst_and_fits_in_hwi ((*groups)->step) && cst_and_fits_in_hwi (step) in find_or_create_group()
329 && int_cst_value ((*groups)->step) < int_cst_value (step)) in find_or_create_group()
338 group->next = *groups; in find_or_create_group()
339 *groups = group; in find_or_create_group()
402 release_mem_refs (struct mem_ref_group *groups) in release_mem_refs() argument
[all …]
/netbsd/src/external/gpl3/gdb/dist/gdb/testsuite/gdb.python/
Dpy-arch-reg-groups.exp32 set groups {}
39 lappend groups $expect_out(1,string)
45 gdb_assert {[llength $groups] > 0} \
76 gdb_assert {[llength $py_groups] == [llength $groups]} \
80 for { set i 0 } { $i < [llength $groups] } { incr i } {
81 if {[lindex $groups $i] != [lindex $py_groups $i]} {
/netbsd/src/external/public-domain/xz/dist/src/liblzma/common/
Dindex.c122 index_tree groups; member
357 index_tree_init(&s->groups); in index_stream_init()
373 index_tree_end(&s->groups, allocator, &lzma_free); in index_stream_end()
466 const lzma_vli groups in lzma_index_memusage() local
471 const uint64_t groups_mem = groups * group_base; in lzma_index_memusage()
482 || groups > limit / group_base in lzma_index_memusage()
563 const index_group *g = (const index_group *)(s->groups.rightmost); in lzma_index_file_size()
650 index_group *g = (index_group *)(s->groups.rightmost); in lzma_index_append()
697 index_tree_append(&s->groups, &g->node); in lzma_index_append()
797 index_group *g = (index_group *)(s->groups.rightmost); in lzma_index_cat()
[all …]
/netbsd/src/external/gpl3/gdb/dist/gdb/tui/
Dtui-regs.c466 const std::vector<const reggroup *> &groups = gdbarch_reggroups (gdbarch); in tui_reg_next() local
467 auto it = std::find (groups.begin (), groups.end (), current_group); in tui_reg_next()
468 if (it != groups.end ()) in tui_reg_next()
470 if (it == groups.end ()) in tui_reg_next()
471 return groups.front (); in tui_reg_next()
488 const std::vector<const reggroup *> &groups = gdbarch_reggroups (gdbarch); in tui_reg_prev() local
489 auto it = std::find (groups.rbegin (), groups.rend (), current_group); in tui_reg_prev()
490 if (it != groups.rend ()) in tui_reg_prev()
492 if (it == groups.rend ()) in tui_reg_prev()
493 return groups.back (); in tui_reg_prev()
/netbsd/src/tests/ipf/expected/
Dn421 List of groups configured (set 0)
22 List of groups configured (set 1)
52 List of groups configured (set 0)
53 List of groups configured (set 1)
84 List of groups configured (set 0)
85 List of groups configured (set 1)
115 List of groups configured (set 0)
116 List of groups configured (set 1)
147 List of groups configured (set 0)
148 List of groups configured (set 1)
[all …]
Dn4_621 List of groups configured (set 0)
22 List of groups configured (set 1)
52 List of groups configured (set 0)
53 List of groups configured (set 1)
84 List of groups configured (set 0)
85 List of groups configured (set 1)
115 List of groups configured (set 0)
116 List of groups configured (set 1)
147 List of groups configured (set 0)
148 List of groups configured (set 1)
[all …]
Dn6_625 List of groups configured (set 0)
26 List of groups configured (set 1)
60 List of groups configured (set 0)
61 List of groups configured (set 1)
94 List of groups configured (set 0)
95 List of groups configured (set 1)
129 List of groups configured (set 0)
130 List of groups configured (set 1)
163 List of groups configured (set 0)
164 List of groups configured (set 1)
Dn625 List of groups configured (set 0)
26 List of groups configured (set 1)
60 List of groups configured (set 0)
61 List of groups configured (set 1)
94 List of groups configured (set 0)
95 List of groups configured (set 1)
129 List of groups configured (set 0)
130 List of groups configured (set 1)
163 List of groups configured (set 0)
164 List of groups configured (set 1)
Df1125 List of groups configured (set 0)
26 List of groups configured (set 1)
61 List of groups configured (set 0)
62 List of groups configured (set 1)
97 List of groups configured (set 0)
98 List of groups configured (set 1)
133 List of groups configured (set 0)
134 List of groups configured (set 1)
181 List of groups configured (set 0)
182 List of groups configured (set 1)
[all …]
Dn1014 List of groups configured (set 0)
15 List of groups configured (set 1)
38 List of groups configured (set 0)
39 List of groups configured (set 1)
62 List of groups configured (set 0)
63 List of groups configured (set 1)
Dn233 List of groups configured (set 0)
34 List of groups configured (set 1)
74 List of groups configured (set 0)
75 List of groups configured (set 1)
128 List of groups configured (set 0)
129 List of groups configured (set 1)
181 List of groups configured (set 0)
182 List of groups configured (set 1)
Dn722 List of groups configured (set 0)
23 List of groups configured (set 1)
54 List of groups configured (set 0)
55 List of groups configured (set 1)
88 List of groups configured (set 0)
89 List of groups configured (set 1)
Dn1827 List of groups configured (set 0)
28 List of groups configured (set 1)
64 List of groups configured (set 0)
65 List of groups configured (set 1)
101 List of groups configured (set 0)
102 List of groups configured (set 1)
Dn7_622 List of groups configured (set 0)
23 List of groups configured (set 1)
54 List of groups configured (set 0)
55 List of groups configured (set 1)
88 List of groups configured (set 0)
89 List of groups configured (set 1)
/netbsd/src/sys/miscfs/umapfs/
Dumap_subr.c140 gid_t groups[NGROUPS]; in umap_mapids() local
179 groups[i] = kauth_cred_group(credp, i); in umap_mapids()
180 gid = (gid_t) umap_findid(groups[i], in umap_mapids()
183 groups[i] = gid; in umap_mapids()
185 groups[i] = NULLGROUP; in umap_mapids()
188 kauth_cred_setgroups(credp, groups, ngroups, -1, UIO_SYSSPACE); in umap_mapids()
/netbsd/src/regress/sys/kern/ipf/expected/
Dn1827 List of groups configured (set 0)
28 List of groups configured (set 1)
56 List of groups configured (set 0)
57 List of groups configured (set 1)
85 List of groups configured (set 0)
86 List of groups configured (set 1)
/netbsd/src/usr.bin/id/
Did.c63 static gid_t *groups; variable
135 if ((groups = malloc((maxgroups + 1) * sizeof(gid_t))) == NULL) in main()
171 free(groups); in main()
244 if ((ngroups = getgroups(maxgroups, groups)) != 0) { in current()
247 gid = groups[cnt]; in current()
264 gid_t *glist = groups; in user()
286 if (glist != groups) in user()
297 gid_t *glist = groups; in group()
329 if (glist != groups) in group()

12345678910>>...29