Home
last modified time | relevance | path

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

12345

/illumos-gate/usr/src/lib/libc/port/gen/
H A Dinitgroups.c49 gid_t *groups; in initgroups() local
69 groups[0] = agroup; in initgroups()
71 ngroups = _getgroupsbymember(uname, groups, (int)ngroups_max, in initgroups()
76 free(groups); in initgroups()
80 retsave = setgroups(ngroups, groups); in initgroups()
83 free(groups); in initgroups()
142 if ((ngroups == NULL) || (*ngroups <= 0) || (groups == NULL)) { in getgrouplist()
161 grpptr = groups; in getgrouplist()
188 if (grpptr == groups) { in getgrouplist()
197 (void) memcpy(groups, grpptr, *ngroups * sizeof (gid_t)); in getgrouplist()
[all …]
/illumos-gate/usr/src/contrib/ast/src/lib/libast/features/
H A Dbotch.c48 gid_t groups[32 * sizeof(int) / sizeof(gid_t)]; in main() local
51 if ((n = getgroups((sizeof(groups) / sizeof(groups[0])) / r, groups)) > 0) in main()
54 groups[i] = ((gid_t)0); in main()
55 if (getgroups(i, groups) != i) in main()
57 if (groups[i] != ((gid_t)0)) in main()
59 groups[i] = ((gid_t)-1); in main()
60 if (getgroups(i, groups) != i) in main()
62 if (groups[i] != ((gid_t)-1)) in main()
/illumos-gate/usr/src/cmd/fs.d/nfs/mountd/
H A Dexportlist.c72 struct groupnode *groups; in export() local
95 groups = NULL; in export()
96 grtail = &groups; in export()
154 tail = newexport(sh->sh_path, groups, tail); in export()
170 struct groupnode *groups, *tmpgroups; in freeexports() local
174 groups = ex->ex_groups; in freeexports()
175 while (groups) { in freeexports()
176 tmpgroups = groups->gr_next; in freeexports()
177 free(groups->gr_name); in freeexports()
178 free(groups); in freeexports()
[all …]
/illumos-gate/usr/src/cmd/ypcmd/revnetgroup/
H A Drevnetgroup.c77 stringlist groups; member
152 stringlist groups; in dumptable() local
159 for (groups = entry->groups; groups; in dumptable()
160 groups = groups->next) { in dumptable()
161 fputs(groups->str, stdout); in dumptable()
162 if (groups->next) { in dumptable()
215 new->groups = MALLOC(stringnode); in newentry()
216 new->groups->str = group; in newentry()
217 new->groups->next = NULL; in newentry()
229 for (cur = grlist->groups; cur; prev = cur, cur = cur->next) { in appendgroup()
/illumos-gate/usr/src/cmd/groups/
H A Dgroups.c105 static gid_t *groups = NULL; in showgroups() local
109 if (groups == NULL) { in showgroups()
110 if ((groups = (gid_t *)calloc((uint_t)ngroups_max, in showgroups()
118 groups[0] = pw->pw_gid; in showgroups()
120 ngroups = _getgroupsbymember(pw->pw_name, groups, ngroups_max, 1); in showgroups()
122 if (gr = getgrgid(groups[0])) in showgroups()
128 if ((gr = getgrgid(groups[i]))) in showgroups()
131 (void) printf(" %d", (int)groups[i]); in showgroups()
/illumos-gate/usr/src/cmd/grpck/
H A Dgrpck.c78 struct group *groups; member
140 t->groups = NULL; in main()
142 t->groups = (struct group *) in main()
144 t->groups->grp = pwp->pw_gid; in main()
145 t->groups->cnt = 1; in main()
146 t->groups->nxt = NULL; in main()
322 t->groups = NULL; in main()
327 t->groups->cnt = 1; in main()
328 t->groups->nxt = NULL; in main()
357 gp->nxt = t->groups; in main()
[all …]
/illumos-gate/usr/src/ucbcmd/groups/
H A Dgroups.c38 gid_t *groups; in main() local
41 groups = alloca(maxgrp * sizeof (gid_t)); in main()
49 ngroups = getgroups(maxgrp, groups); in main()
56 gr = getgrgid(groups[i]); in main()
58 (void) printf("%s%u", sep, groups[i]); in main()
/illumos-gate/usr/src/lib/nsswitch/ldap/common/
H A Dgetprojent.c74 ns_ldap_attr_t *users, *groups; in _nss_ldap_proj2str() local
134 groups = __ns_ldap_getAttrStruct(result->entry, _PROJ_GROUPS); in _nss_ldap_proj2str()
135 if (!(groups == NULL || groups->attrvalue == NULL)) { in _nss_ldap_proj2str()
137 for (i = 0; i < groups->value_count; i++) { in _nss_ldap_proj2str()
138 if (groups->attrvalue[i] == NULL) { in _nss_ldap_proj2str()
144 groups->attrvalue[i]); in _nss_ldap_proj2str()
148 groups->attrvalue[i]); in _nss_ldap_proj2str()
/illumos-gate/usr/src/uts/common/rpc/sec/
H A Dauthu_prot.c118 caddr_t groups; in xdr_authkern() local
132 groups = (caddr_t)crgetgroups(cr); in xdr_authkern()
138 xdr_array(xdrs, &groups, &len, NGRPS, sizeof (gid_t), xdr_gid_t)) in xdr_authkern()
153 caddr_t groups; in xdr_authloopback() local
163 groups = (caddr_t)crgetgroups(cr); in xdr_authloopback()
169 xdr_array(xdrs, &groups, &len, NGROUPS_UMAX, sizeof (gid_t), in xdr_authloopback()
/illumos-gate/usr/src/cmd/pools/poold/com/sun/solaris/service/locality/
H A DLocalityDomain.java232 Set groups = getGroups(); in calcMaxLatency() local
233 Iterator outer = groups.iterator(); in calcMaxLatency()
235 Iterator inner = groups.iterator(); in calcMaxLatency()
261 Set groups = new HashSet(); in getGroups() local
262 groups.add(root); in getGroups()
263 getGroups(root, groups); in getGroups()
264 return (groups); in getGroups()
H A DLocalityGroup.java156 Set groups = new HashSet(); in countForeignGroups() local
167 groups.contains(other) == false) in countForeignGroups()
168 groups.add(other); in countForeignGroups()
172 return (groups.size()); in countForeignGroups()
/illumos-gate/usr/src/pkg/manifests/
H A Dsystem-test-elftest.p5m33 dir path=opt/elf-tests/tests/groups
34 file path=opt/elf-tests/tests/groups/common.sh mode=0444
35 dir path=opt/elf-tests/tests/groups/no-relobj-group-merge
41 dir path=opt/elf-tests/tests/groups/strip-groups
42 file path=opt/elf-tests/tests/groups/strip-groups/README.md mode=0444
43 file path=opt/elf-tests/tests/groups/strip-groups/strip-all-sections mode=0555
44 file path=opt/elf-tests/tests/groups/strip-groups/strip-all-sections.s mode=0444
45 file path=opt/elf-tests/tests/groups/strip-groups/strip-one-section mode=0555
46 file path=opt/elf-tests/tests/groups/strip-groups/strip-one-section.s mode=0444
47 file path=opt/elf-tests/tests/groups/strip-groups/strip-two-sections mode=0555
[all …]
/illumos-gate/usr/src/contrib/ast/src/lib/libcmd/
H A Did.c216 static gid_t* groups; in getids() local
232 if ((maxgroups = getgroups(0, groups)) <= 0) in getids()
234 if (!(groups = newof(0, gid_t, maxgroups + 1, 0))) in getids()
237 ngroups = getgroups(maxgroups, groups); in getids()
240 for (k = 0; k < j && groups[k] != groups[i]; k++); in getids()
241 if (k >= j) groups[j++] = groups[i]; in getids()
286 if (ngroups == 1 && groups[0] == group) in getids()
341 group = groups[i]; in getids()
397 group = groups[i]; in getids()
/illumos-gate/usr/src/uts/common/syscall/
H A Dgroups.c59 const gid_t *groups; in setgroups() local
66 groups = crgetggroups(grps); in setgroups()
69 if (!VALID_GID(groups[i], zone)) { in setgroups()
73 if (groups[i] > MAXUID) in setgroups()
77 ksl = kcrsid_gidstosids(zone, n, (gid_t *)groups); in setgroups()
/illumos-gate/usr/src/cmd/ypcmd/mknetid/
H A Dmknetid.c68 int groups[NUMGIDS]; member
89 static struct group_list *groups[GRPTABSIZE]; /* group table */ variable
440 for (g = groups[val]; g != NULL && strcmp(g->user, user); g = g->next)
447 g->groups[0] = gid;
448 g->next = groups[val];
449 groups[val] = g;
452 if (g->groups[i] == gid) {
461 g->groups[g->group_len++] = gid;
478 for (g = groups[val]; g != NULL && strcmp(g->user, user); g = g->next)
483 if (gid != g->groups[i]) {
[all …]
/illumos-gate/usr/src/lib/libresolv2/common/irs/
H A Dutil.c63 gid_t basegid, gid_t *groups, int *ngroups) in make_group_list() argument
79 groups[ng++] = basegid; in make_group_list()
82 groups[ng++] = basegid; in make_group_list()
94 groups[ng++] = grp->gr_gid; in make_group_list()
/illumos-gate/usr/src/contrib/ast/src/lib/libast/astsa/
H A Dstrmatch.c77 short groups; member
208 if (g < MAXGROUP && (!r || g > mp->current.groups)) in onematch()
218 mp->current.groups = oldg; in onematch()
254 mp->current.groups = oldg; in onematch()
285 mp->current.groups = g; in onematch()
332 mp->current.groups = g; in onematch()
338 mp->best.groups = g; in onematch()
559 match.current.groups = 0; in strgrpmatch()
564 match.current.groups++; in strgrpmatch()
578 if (n > match.current.groups) in strgrpmatch()
[all …]
/illumos-gate/usr/src/contrib/ast/src/lib/libast/comp/
H A Deaccess.c107 static gid_t* groups;
113 if (!(groups = newof(0, gid_t, ngroups + 1, 0)))
116 ngroups = getgroups(ngroups, groups);
120 if (groups[n] == st.st_gid)
/illumos-gate/usr/src/cmd/ptools/pcred/
H A Dpcred.c58 static gid_t *groups; variable
149 (void) memcpy(pcr->pr_groups, groups, ngrp * sizeof (gid_t)); in credupdate()
294 if ((groups = malloc(ngroups_max * sizeof (gid_t))) == NULL) { in initcred()
310 groups[0] = gid; in initcred()
312 ngrp = _getgroupsbymember(login, groups, (int)ngroups_max, 1); in initcred()
345 groups[ngrp++] = str2gid(cgrp); in initcred()
/illumos-gate/usr/src/lib/libslp/javalib/com/sun/slp/
H A DListener.java61 private Vector groups = new Vector(); // Multicast groups monitored. field in Listener
150 listener.groups.addElement(maddr); in addListenerToMulticastGroup()
179 listener.groups); in refreshSocketOnInterface()
268 groups); in run()
/illumos-gate/usr/src/test/elf-tests/tests/groups/no-relobj-group-merge/
H A DREADME.md1 This is a test that sections which are members of groups are not merged when
9 2. If the other input section _was_ a member of a group we now have two groups
16 We test this by defining 3 sections in two groups in two input objects:
28 - the ungrouped `.test_data_conflict` remains in no groups, and the two input
/illumos-gate/usr/src/head/rpcsvc/
H A Dmount.x159 typedef struct groupnode *groups; typedef
162 groups gr_next;
171 groups ex_groups;
/illumos-gate/usr/src/lib/libscf/common/
H A Dhighlevel.c380 struct group_desc groups[] = { in scf_default_secflags() local
392 groups[0].delta = &flags->ss_default; in scf_default_secflags()
393 groups[1].delta = &flags->ss_lower; in scf_default_secflags()
394 groups[2].delta = &flags->ss_upper; in scf_default_secflags()
396 for (g = groups; g->delta != NULL; g++) { in scf_default_secflags()
/illumos-gate/usr/src/cmd/perl/contrib/Sun/Solaris/Project/
H A DProject.pm157 my ($projname, $projid, $comment, $users, $groups, $attributes);
285 ($projname, $projid, $comment, $users, $groups, $attributes) =
295 ($projname, $projid, $comment, $users, $groups, $attributes) =
329 if (defined($groups)) {
330 $projent->{'groups'} = $groups;
331 ($ret, $ref) = projent_parse_groups($groups, $flags);
474 my ($groups, $flags) = @_;
486 @grouplist = split(/$pattern/, $groups);
1286 my ($groups, $flags) = @_;
1292 foreach $group (@$groups) {
[all …]
/illumos-gate/usr/src/test/elf-tests/tests/groups/
H A DMakefile19 SUBDIRS = no-relobj-group-merge strip-groups
24 TESTDIR = $(ROOTOPTPKG)/tests/groups/

12345