| /onnv/onnv-gate/usr/src/lib/libast/common/features/ |
| 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[i] != ((gid_t)-1) [all...] |
| /onnv/onnv-gate/usr/src/lib/libc/port/gen/ |
| 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...] |
| /onnv/onnv-gate/usr/src/cmd/groups/ |
| 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[0]) [all...] |
| /onnv/onnv-gate/usr/src/ucbcmd/groups/ |
| 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);
|
| /onnv/onnv-gate/usr/src/uts/common/rpc/sec/ |
| 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,
|
| /onnv/onnv-gate/usr/src/uts/common/syscall/ |
| 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);
|
| /onnv/onnv-gate/usr/src/cmd/fs.d/nfs/mountd/ |
| 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->gr_next [all...] |
| /onnv/onnv-gate/usr/src/cmd/man/src/util/nsgmls.src/lib/ |
| ParserApp.cxx | 147 unsigned char groups; member in struct:SP_NAMESPACE::__anon853 232 if (table[j].groups & groupTable[i].flag) {
|
| /onnv/onnv-gate/usr/src/cmd/pools/poold/com/sun/solaris/service/locality/ |
| LocalityGroup.java | 63 * The child groups of this instance. 109 * Return the set of child locality groups for this instance. 146 * Return the number of Latency Groups to which these cpus 156 Set groups = new HashSet(); local 167 groups.contains(other) == false) 168 groups.add(other); 172 return (groups.size());
|
| LocalityDomain.java | 37 * A representation of the Locality Groups for a single Solaris 158 * Return the groups in this domain to which the supplied cpus 159 * belong, excluding the supplied set of groups. 161 * @param exclude Set of groups to be excluded. 224 * Return the maximum latency between the groups in this 232 Set groups = getGroups(); local 233 Iterator outer = groups.iterator(); 235 Iterator inner = groups.iterator(); 249 * groups in this domain. 261 Set groups = new HashSet() local [all...] |
| /onnv/onnv-gate/usr/src/cmd/ptools/pcred/ |
| 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);
|
| /onnv/onnv-gate/usr/src/cmd/ypcmd/revnetgroup/ |
| revnetgroup.c | 53 * comma-separated, newline-terminated list of groups to which the 56 * Exception: Groups to which everyone belongs (universal groups) will 57 * not be included in the list. The universal groups will be listed under 60 * Thus to find out all the groups that user "foo" of domain "bar" is in, 61 * lookup the groups under foo.bar, foo.*, *.bar and *.*. 77 /* Stores a list of (name,list-of-groups) */ 81 stringlist groups; member in struct:groupentrynode 158 stringlist groups; local 165 for (groups = entry->groups; groups [all...] |
| /onnv/onnv-gate/usr/src/lib/libslp/javalib/com/sun/slp/ |
| 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);
|
| /onnv/onnv-gate/usr/src/lib/nsswitch/ldap/common/ |
| 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]);
|
| /onnv/onnv-gate/usr/src/cmd/grpck/ |
| 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 = (struct group * [all...] |
| /onnv/onnv-gate/usr/src/lib/libproject/common/ |
| 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, ',');
|
| /onnv/onnv-gate/usr/src/lib/libcmd/common/ |
| 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[i]; k++) [all...] |
| /onnv/onnv-gate/usr/src/lib/libshell/common/bltins/ |
| 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)
|
| /onnv/onnv-gate/usr/src/lib/libshell/common/sh/ |
| 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)
|
| /onnv/onnv-gate/usr/src/lib/libnsl/rpc/ |
| netnamer.c | 505 gid_t *groups = alloca(maxgrp * sizeof (gid_t)); local 535 /* search through all groups for membership */ 537 groups[0] = pw.pw_gid; 539 ngroups = _getgroupsbymember(pw.pw_name, groups, maxgrp, 550 (argp->gidlist[count]) = groups[count];
|
| 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];
|
| /onnv/onnv-gate/usr/src/cmd/ipf/tools/ |
| 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; g != grp; g = g->fg_next [all...] |
| /onnv/onnv-gate/usr/src/cmd/ypcmd/mknetid/ |
| mknetid.c | 66 * Store username and groups to which he/she belongs 71 int groups[NUMGIDS]; member in struct:group_list 92 static struct group_list *groups[GRPTABSIZE]; /* group table */ variable in typeref:struct:group_list 208 * Parse the groups file 431 * Add gid to the list of a user's groups 443 for (g = groups[val]; g != NULL && strcmp(g->user, user); g = g->next) 450 g->groups[0] = gid; 451 g->next = groups[val]; 452 groups[val] = g; 455 if (g->groups[i] == gid) [all...] |
| /onnv/onnv-gate/usr/src/uts/common/sys/fs/ |
| ufs_acl.h | 83 ufs_ic_acl_t *groups; /* list of groups */ member in struct:ic_acl 111 #define agroups s_a.groups 118 #define dgroups s_d.groups
|
| /onnv/onnv-gate/usr/src/lib/librestart/common/ |
| librestart.h | 228 gid_t groups[NGROUPS_MAX]; member in struct:method_context
|