/illumos-gate/usr/src/lib/libast/common/features/ |
H A D | botch.c | 48 gid_t groups[32 * sizeof(int) / sizeof(gid_t)]; local 51 if ((n = getgroups((sizeof(groups) / sizeof(groups[0])) / r, groups)) > 0) 54 groups[i] = ((gid_t)0); 55 if (getgroups(i, groups) != i) 57 if (groups[i] != ((gid_t)0)) 59 groups[i] = ((gid_t)-1); 60 if (getgroups(i, groups) != i) 62 if (groups[ [all...] |
/illumos-gate/usr/src/lib/libc/port/gen/ |
H A D | initgroups.c | 42 /* Private interface to the groups code in getgrnam.c */ 48 gid_t *groups; local 58 * ngroups_max is the maximum number of supplemental groups per 59 * process. if no supplemental groups are allowed, we're done. 64 if ((groups = (gid_t *)calloc(ngroups_max, sizeof (gid_t))) == 0) { 68 groups[0] = agroup; 70 ngroups = _getgroupsbymember(uname, groups, (int)ngroups_max, 75 free(groups); 79 retsave = setgroups(ngroups, groups); 82 free(groups); [all...] |
/illumos-gate/usr/src/lib/libslp/javalib/com/sun/slp/ |
H A D | Listener.java | 61 private Vector groups = new Vector(); // Multicast groups monitored. field in class:Listener 148 // Record the groups monitored. 150 listener.groups.addElement(maddr); 179 listener.groups); 268 groups);
|
/illumos-gate/usr/src/cmd/groups/ |
H A D | groups.c | 43 * groups - show group memberships 71 "groups: could not get configuration info\n"); 81 (void) fprintf(stderr, "groups: No passwd entry\n"); 90 "groups: %s : No such user\n", *argv); 107 static gid_t *groups = NULL; local 111 if (groups == NULL) { 112 if ((groups = (gid_t *)calloc((uint_t)ngroups_max, 120 groups[0] = pw->pw_gid; 122 ngroups = _getgroupsbymember(pw->pw_name, groups, ngroups_max, 1); 124 if (gr = getgrgid(groups[ [all...] |
/illumos-gate/usr/src/ucbcmd/groups/ |
H A D | groups.c | 17 * groups 38 gid_t *groups; local 41 groups = alloca(maxgrp * sizeof (gid_t)); 49 ngroups = getgroups(maxgrp, groups); 51 (void) fprintf(stderr, "groups: could not find passwd entry\n"); 56 gr = getgrgid(groups[i]); 58 (void) printf("%s%u", sep, groups[i]); 80 (void) fprintf(stderr, "groups: %s : No such user\n", user);
|
/illumos-gate/usr/src/uts/common/rpc/sec/ |
H A D | authu_prot.c | 118 caddr_t groups; local 134 groups = (caddr_t)crgetgroups(cr); 140 xdr_array(xdrs, &groups, &len, NGRPS, sizeof (int), 156 caddr_t groups; local 168 groups = (caddr_t)crgetgroups(cr); 174 xdr_array(xdrs, &groups, (uint_t *)&len, NGRPS_LOOPBACK,
|
H A D | key_call.c | 202 netname2user(char *name, uid_t *uid, gid_t *gid, int *len, gid_t *groups) argument 207 res.getcredres_u.cred.gids.gids_val = (uint_t *)groups;
|
/illumos-gate/usr/src/uts/common/syscall/ |
H A D | groups.c | 59 const gid_t *groups; local 66 groups = crgetggroups(grps); 69 if (!VALID_GID(groups[i], zone)) { 73 if (groups[i] > MAXUID) 77 ksl = kcrsid_gidstosids(zone, n, (gid_t *)groups);
|
/illumos-gate/usr/src/lib/libresolv2/common/irs/ |
H A D | util.c | 67 gid_t basegid, gid_t *groups, int *ngroups) 78 * the first element of groups is the effective gid 83 groups[ng++] = basegid; 86 groups[ng++] = basegid; 88 * Scan the group file to find additional groups. 98 groups[ng++] = grp->gr_gid; 66 make_group_list(struct irs_gr *this, const char *name, gid_t basegid, gid_t *groups, int *ngroups) argument
|
/illumos-gate/usr/src/cmd/fs.d/nfs/mountd/ |
H A D | exportlist.c | 74 struct groupnode *groups; local 97 groups = NULL; 98 grtail = &groups; 108 * If export_to_everyone is 1, then groups should be NULL to 135 * Just concatenate all the hostnames/groups 156 tail = newexport(sh->sh_path, groups, tail); 172 struct groupnode *groups, *tmpgroups; local 176 groups = ex->ex_groups; 177 while (groups) { 178 tmpgroups = groups [all...] |
/illumos-gate/usr/src/lib/nsswitch/ldap/common/ |
H A D | getprojent.c | 76 ns_ldap_attr_t *users, *groups; local 136 groups = __ns_ldap_getAttrStruct(result->entry, _PROJ_GROUPS); 137 if (!(groups == NULL || groups->attrvalue == NULL)) { 139 for (i = 0; i < groups->value_count; i++) { 140 if (groups->attrvalue[i] == NULL) { 146 groups->attrvalue[i]); 150 groups->attrvalue[i]);
|
/illumos-gate/usr/src/lib/print/libipp-core/common/ |
H A D | write.c | 338 papi_attribute_t **groups) 350 for (status = papiAttributeListGetCollection(groups, &iter, 353 status = papiAttributeListGetCollection(groups, &iter, 337 ipp_write_attribute_groups(ipp_writer_t iwrite, void *fd, papi_attribute_t **groups) argument
|
/illumos-gate/usr/src/cmd/ypcmd/revnetgroup/ |
H A D | revnetgroup.c | 49 * comma-separated, newline-terminated list of groups to which the 52 * Exception: Groups to which everyone belongs (universal groups) will 53 * not be included in the list. The universal groups will be listed under 56 * Thus to find out all the groups that user "foo" of domain "bar" is in, 57 * lookup the groups under foo.bar, foo.*, *.bar and *.*. 73 /* Stores a list of (name,list-of-groups) */ 77 stringlist groups; member in struct:groupentrynode 154 stringlist groups; local 161 for (groups = entry->groups; group [all...] |
/illumos-gate/usr/src/cmd/ptools/pcred/ |
H A D | pcred.c | 60 static gid_t *groups; variable 151 (void) memcpy(pcr->pr_groups, groups, ngrp * sizeof (gid_t)); 249 "\t%s [-u user] [-g group] [-G groups] pid ...\n" 296 if ((groups = malloc(ngroups_max * sizeof (gid_t))) == NULL) { 312 groups[0] = gid; 314 ngrp = _getgroupsbymember(login, groups, (int)ngroups_max, 1); 343 (void) fprintf(stderr, "%s: Too many groups\n", 347 groups[ngrp++] = str2gid(cgrp);
|
/illumos-gate/usr/src/lib/libshell/common/sh/ |
H A D | suid_exec.c | 310 /* on some systems you can be in several groups */ 314 gid_t *groups=0; local 319 if((maxgroups=getgroups(0,groups)) < 0) 325 groups = (gid_t*)malloc((maxgroups+1)*sizeof(gid_t)); 326 n = getgroups(maxgroups,groups); 329 if(groups[n] == statb.st_gid)
|
/illumos-gate/usr/src/lib/libnsl/rpc/ |
H A D | netnamer.c | 318 gid_t *groups = alloca(maxgrp * sizeof (gid_t)); local 348 /* search through all groups for membership */ 350 groups[0] = pw.pw_gid; 352 ngroups = _getgroupsbymember(pw.pw_name, groups, maxgrp, 363 (argp->gidlist[count]) = groups[count];
|
H A D | svcauth_des.c | 607 short grouplen; /* length of cached groups */ 608 gid_t groups[1]; /* cached groups allocate _SC_NGROUPS_MAX */ member in struct:bsdcred 628 short *grouplen, gid_t *groups) 666 (gid_t *)&i_gid, &i_grouplen, (gid_t *)groups)) { 678 cred->groups[i] = groups[i]; 698 groups[i] = cred->groups[i]; 627 authdes_getucred(const struct authdes_cred *adc, uid_t *uid, gid_t *gid, short *grouplen, gid_t *groups) argument
|
/illumos-gate/usr/src/lib/libproject/common/ |
H A D | getprojent.c | 185 * Check if user is a member of one of project's groups. 382 char *users, *groups; local 443 if ((groups = gettok(&next, ':')) == NULL) { 445 * groups field should not be last field 477 p = gettok(&groups, ',');
|
/illumos-gate/usr/src/lib/libc/port/locale/ |
H A D | strfmon.c | 96 groups++; \ 545 int groups = 0; local 588 * decimal and thousands seperators, and groups can be a small as two 640 padded -= groups;
|
/illumos-gate/usr/src/lib/libcmd/common/ |
H A D | id.c | 38 "groups the current process belongs to will also be written.]" 49 "[G:groups?Writes only the supplementary group IDs.]" 50 "[s:fair-share?Writes fair share scheduler IDs and groups on systems that " 216 static gid_t* groups; local 223 * get supplemental groups if required 232 if ((maxgroups = getgroups(0, groups)) <= 0) 234 if (!(groups = newof(0, gid_t, maxgroups + 1, 0))) 237 ngroups = getgroups(maxgroups, groups); 240 for (k = 0; k < j && groups[k] != groups[ [all...] |
/illumos-gate/usr/src/cmd/grpck/ |
H A D | grpck.c | 54 #define NGROUPS "Maximum groups exceeded for logname " 81 struct group *groups; member in struct:node 143 t->groups = NULL; 145 t->groups = (struct group *) 147 t->groups->grp = pwp->pw_gid; 148 t->groups->cnt = 1; 149 t->groups->nxt = NULL; 215 ngroups++; /* Increment number of groups found */ 325 t->groups = NULL; 327 t->groups [all...] |
/illumos-gate/usr/src/lib/libscf/common/ |
H A D | highlevel.c | 380 struct group_desc groups[] = { local 392 groups[0].delta = &flags->ss_default; 393 groups[1].delta = &flags->ss_lower; 394 groups[2].delta = &flags->ss_upper; 396 for (g = groups; g->delta != NULL; g++) {
|
/illumos-gate/usr/src/lib/libshell/common/bltins/ |
H A D | test.c | 602 /* on some systems you can be in several groups */ 606 gid_t *groups; local 617 groups = (gid_t*)stakalloc((maxgroups+1)*sizeof(gid_t)); 618 n = getgroups(maxgroups,groups); 621 if(groups[n] == statb.st_gid)
|
/illumos-gate/usr/src/cmd/ypcmd/mknetid/ |
H A D | mknetid.c | 62 * Store username and groups to which he/she belongs 67 int groups[NUMGIDS]; member in struct:group_list 88 static struct group_list *groups[GRPTABSIZE]; /* group table */ variable in typeref:struct:group_list 204 * Parse the groups file 427 * Add gid to the list of a user's groups 439 for (g = groups[val]; g != NULL && strcmp(g->user, user); g = g->next) 446 g->groups[0] = gid; 447 g->next = groups[val]; 448 groups[val] = g; 451 if (g->groups[ [all...] |
/illumos-gate/usr/src/cmd/ipf/tools/ |
H A D | ipfcomp.c | 154 static frgroup_t *groups = NULL; variable 184 for (g = groups; g != NULL; g = g->fg_next) 195 g->fg_next = groups; 196 groups = g; 228 for (g = groups; g != NULL; g = g->fg_next) 239 g->fg_next = groups; 240 groups = g; 310 for (g = groups; g != NULL; g = g->fg_next) { 330 for (g = groups; g != NULL; g = g->fg_next) { 377 for (g = groups; [all...] |