Searched defs:groups (Results 1 - 20 of 20) sorted by relevance

/osnet-11/usr/src/lib/libast/common/features/
H A Dbotch.c48 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...]
/osnet-11/usr/src/lib/libc/port/gen/
H A Dinitgroups.c42 /* 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...]
/osnet-11/usr/src/lib/libslp/javalib/com/sun/slp/
H A DListener.java61 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);
H A DSLPConfig.java648 // interface. If groups is not null, then join all
649 // the groups. Otherwise, this is send only.
653 Vector groups) {
661 (groups == null ? true:false));
663 if ((groups != null) && (dss instanceof MulticastSocket)) {
664 int i, n = groups.size();
668 InetAddress maddr = (InetAddress)groups.elementAt(i);
652 refreshMulticastSocketOnInterface(InetAddress interfac, Vector groups) argument
/osnet-11/usr/src/lib/libresolv2/common/irs/
H A Dutil.c67 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
/osnet-11/usr/src/lib/nsswitch/ldap/common/
H A Dgetprojent.c76 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]);
/osnet-11/usr/src/lib/libproject/common/
H A Dgetprojent.c182 * Check if user is a member of one of project's groups.
379 char *users, *groups; local
440 if ((groups = gettok(&next, ':')) == NULL) {
442 * groups field should not be last field
474 p = gettok(&groups, ',');
/osnet-11/usr/src/lib/libshell/common/sh/
H A Dsuid_exec.c310 /* 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)
/osnet-11/usr/src/lib/libnsl/rpc/
H A Dnetnamer.c316 gid_t *groups = alloca(maxgrp * sizeof (gid_t)); local
346 /* search through all groups for membership */
348 groups[0] = pw.pw_gid;
350 ngroups = _getgroupsbymember(pw.pw_name, groups, maxgrp,
361 (argp->gidlist[count]) = groups[count];
H A Dsvcauth_des.c607 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
/osnet-11/usr/src/lib/libntsvcs/common/
H A Dsamr_clnt.c842 * Query the groups for a specific user. The handle must be a valid
843 * user handle obtained via samr_open_user. The list of groups is
844 * returned in group_info. Note that group_info->groups is allocated
853 struct samr_UserGroups **groups)
877 if ((*groups = malloc(nbytes)) == NULL) {
882 bcopy(arg.info->groups, *groups, nbytes);
852 samr_query_user_groups(mlsvc_handle_t *user_handle, int *n_groups, struct samr_UserGroups **groups) argument
/osnet-11/usr/src/lib/libcmd/common/
H A Did.c38 "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...]
/osnet-11/usr/src/lib/libshell/common/bltins/
H A Dtest.c605 /* on some systems you can be in several groups */
609 gid_t *groups; local
620 groups = (gid_t*)stakalloc((maxgroups+1)*sizeof(gid_t));
621 n = getgroups(maxgroups,groups);
624 if(groups[n] == statb.st_gid)
/osnet-11/usr/src/lib/librestart/common/
H A Dlibrestart.h278 gid_t groups[NGROUPS_MAX]; member in struct:method_context
/osnet-11/usr/src/lib/libipmp/common/
H A Dipmp_query.c503 char (*groups)[LIFGRNAMSIZ])
515 (void) strlcpy(grlistp->gl_groups[i], groups[i], LIFGRNAMSIZ);
502 ipmp_grouplist_create(uint64_t sig, unsigned int ngroup, char (*groups)[LIFGRNAMSIZ]) argument
/osnet-11/usr/src/grub/grub2/grub-core/gnulib/
H A Dargp-parse.c250 groups of options. */
253 all the groups of options. */
258 /* States of the various parsing groups. */
259 struct group *groups;
262 /* An vector containing storage for the CHILD_INPUTS field in all groups. */
349 + (((group - cvt->parser->groups) + 1) << USER_BITS);
416 parser->egroup = convert_options (argp, 0, 0, parser->groups, &cvt);
418 parser->egroup = parser->groups; /* No parsers at all! */
506 parser->groups = parser->storage;
529 if (parser->groups < parse
254 struct group *groups; member in struct:parser
[all...]
/osnet-11/usr/src/lib/nsswitch/nis/common/
H A Dgetnetgrent.c336 top_down(struct nis_netgr_be *be, const char **groups, int ngroups, argument
355 ngt_insert(ngt, *groups, strlen(*groups));
356 groups++;
496 /* ==== ? Should only do this if all the top-level groups */
780 if (inlist(ia->groups.argc, ia->groups.argv, val)) {
843 res = top_down(be, (const char **)ia->groups.argv, ia->groups.argc,
/osnet-11/usr/src/lib/libbsm/common/
H A Dadt_token.c345 gid_t *groups; local
357 groups = ((union convert *)p_data)->tgidstar;
359 (void) au_write(event->ae_event_handle, au_to_newgroups(n, groups));
605 * In a session model, the groups list is undefined and label
H A Dau_to.c1027 au_to_groups(int *groups) argument
1038 adr_int32(&adr, (int32_t *)groups, NGROUPS);
1049 au_to_newgroups(int n, gid_t *groups) argument
1056 if (n < 0 || n > SHRT_MAX || groups == NULL)
1065 adr_int32(&adr, (int32_t *)groups, n_groups);
/osnet-11/usr/src/lib/libzfs/common/
H A Dlibzfs_diff.c1347 static struct cachenode *names, *groups; variable in typeref:struct:
1419 c = findincache(&groups, gid);

Completed in 61 milliseconds