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

/ast/src/lib/libast/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...]
/ast/src/lib/libast/astsa/
H A Dstrmatch.c77 short groups; member in struct:__anon246
208 if (g < MAXGROUP && (!r || g > mp->current.groups))
218 mp->current.groups = oldg;
254 mp->current.groups = oldg;
285 mp->current.groups = g;
332 mp->current.groups = g;
338 mp->best.groups = g;
559 match.current.groups = 0;
564 match.current.groups++;
578 if (n > match.current.groups)
[all...]
/ast/src/lib/libcmd/
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...]
/ast/src/cmd/ksh93/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)
/ast/src/lib/libcs/
H A Dcsopen.c630 gid_t groups[NGROUPS_MAX + 1]; local
901 for (n = getgroups(elementsof(groups), groups); n >= 0; n--)
902 if (gid == groups[n])
/ast/src/cmd/ksh93/bltins/
H A Dtest.c608 /* on some systems you can be in several groups */
612 gid_t *groups; local
623 groups = (gid_t*)stakalloc((maxgroups+1)*sizeof(gid_t));
624 n = getgroups(maxgroups,groups);
627 if(groups[n] == statb.st_gid)
/ast/src/cmd/3d/
H A Dstrmatch.c153 short groups; member in struct:Group_s
306 if (g < MAXGROUP && (!r || g > mp->current.groups))
316 mp->current.groups = oldg;
358 mp->current.groups = oldg;
389 mp->current.groups = g;
394 error(-3, "best#%d groups=%d next=\"%s\"", __LINE__, mp->best.groups, mp->best.next_s);
444 mp->current.groups = g;
450 mp->best.groups = g;
452 error(-3, "best#%d groups
[all...]
/ast/src/cmd/dsslib/stats/
H A Dstats.c28 " groups are counted. If any of \b--average\b, \b--count\b,"
125 int groups; member in struct:State_s
379 state->groups++;
538 if (!state->key && !(state->key = vmnewof(state->vm, 0, Cxoperand_t, state->groups, 0)))

Completed in 22 milliseconds