Searched refs:grps (Results 1 – 8 of 8) sorted by relevance
/illumos-gate/usr/src/uts/common/syscall/ |
H A D | groups.c | 51 struct credgrp *grps = NULL; in setgroups() local 61 grps = crgrpcopyin(n, gidset); in setgroups() 63 if (grps == NULL) in setgroups() 66 groups = crgetggroups(grps); in setgroups() 70 crgrprele(grps); in setgroups() 79 crgrprele(grps); in setgroups() 99 if (grps != NULL) in setgroups() 100 crgrprele(grps); in setgroups() 114 crsetcredgrp(newcr, grps); in setgroups()
|
/illumos-gate/usr/src/cmd/pools/poold/com/sun/solaris/service/locality/ |
H A D | LocalityDomain.java | 196 Map grps = new HashMap(); in getRepresentativeGroup() local 201 Integer score = (Integer) grps.get(group); in getRepresentativeGroup() 204 grps.put(group, new Integer(iscore)); in getRepresentativeGroup() 206 grps.put(group, new Integer(1)); in getRepresentativeGroup() 209 Iterator groupIt = grps.keySet().iterator(); in getRepresentativeGroup() 214 Integer value = (Integer) grps.get(cand); in getRepresentativeGroup()
|
/illumos-gate/usr/src/cmd/mdb/common/modules/genunix/ |
H A D | cred.c | 111 credgrp_t grps; in cmd_credgrp() local 124 if (mdb_vread(&grps, sizeof (grps), addr) == -1) { in cmd_credgrp() 130 mdb_printf("crg_ref = 0x%x\n", grps.crg_ref); in cmd_credgrp() 131 mdb_printf("crg_ngroups = 0x%x\n", grps.crg_ngroups); in cmd_credgrp() 137 for (i = 0; i < grps.crg_ngroups; i++, addr += sizeof (gid_t)) { in cmd_credgrp()
|
/illumos-gate/usr/src/uts/common/os/ |
H A D | cred.c | 545 credgrp_t *grps = cr->cr_grps; in supgroupmember() local 548 if (grps == NULL) in supgroupmember() 553 endgp = &grps->crg_groups[grps->crg_ngroups]; in supgroupmember() 562 hi = grps->crg_ngroups - 1; in supgroupmember() 563 gp = grps->crg_groups; in supgroupmember() 1456 return (grps->crg_groups); in crgetggroups() 1467 cr->cr_grps = grps; in crsetcredgrp() 1471 crgrprele(credgrp_t *grps) in crgrprele() argument 1474 kmem_free(grps, CREDGRPSZ(grps->crg_ngroups)); in crgrprele() 1478 crgrphold(credgrp_t *grps) in crgrphold() argument [all …]
|
/illumos-gate/usr/src/cmd/oamuser/user/ |
H A D | useradd.c | 115 static char *grps = NULL; /* multi groups from command line */ variable 196 grps = optarg; 289 if (uidstr != NULL || oflag || grps != NULL || 489 if (grps != NULL) { 490 if (!*grps) 492 grps = (char *)0; 493 else if (!(gidlist = valid_lgroup(grps, gid))) 696 if ((grps != NULL) && edit_group(logname, (char *)0, gidlist, 0)) {
|
H A D | usermod.c | 96 static char *grps = NULL; /* multi groups from command line */ variable 200 grps = optarg; 477 if (grps && *grps) { 478 if (!(gidlist = valid_lgroup(grps, gid))) 582 if (grps) {
|
/illumos-gate/usr/src/lib/libc/port/gen/ |
H A D | ucred.c | 195 ucred_getgroups(const ucred_t *uc, const gid_t **grps) in ucred_getgroups() argument 206 *grps = &cr->pr_groups[0]; in ucred_getgroups() 208 *grps = NULL; in ucred_getgroups()
|
/illumos-gate/usr/src/cmd/fs.d/nfs/mountd/ |
H A D | mountd.c | 2319 getusergroups(uid_t uid, uint_t *ngrps, gid_t **grps) in getusergroups() argument 2340 *grps = malloc(tmpngrps * sizeof (gid_t)); in getusergroups() 2341 if (*grps == NULL) { in getusergroups() 2349 (void) memcpy(*grps, tmpgrps, tmpngrps * sizeof (gid_t)); in getusergroups()
|