Searched defs:ngroups (Results 1 - 23 of 23) sorted by relevance

/illumos-gate/usr/src/lib/libbc/libc/sys/sys5/
H A Dsetgroups.c41 setgroups(int ngroups, gid_t grouplist[]) argument
46 if (ngroups > NGROUPS) {
50 for (i = 0; i < ngroups; i++)
52 return (_syscall(SYS_setgroups, ngroups, glist));
/illumos-gate/usr/src/lib/libc/port/gen/
H A Dinitgroups.c50 int ngroups; local
70 ngroups = _getgroupsbymember(uname, groups, (int)ngroups_max,
72 if (ngroups < 0) {
79 retsave = setgroups(ngroups, groups);
/illumos-gate/usr/src/cmd/groups/
H A Dgroups.c108 int ngroups; local
122 ngroups = _getgroupsbymember(pw->pw_name, groups, ngroups_max, 1);
129 for (i = 1; i < ngroups; i++) {
/illumos-gate/usr/src/ucbcmd/groups/
H A Dgroups.c35 int ngroups, i; local
49 ngroups = getgroups(maxgrp, groups);
55 for (i = 0; i < ngroups; i++) {
/illumos-gate/usr/src/lib/libresolv2/common/irs/
H A Dutil.c67 gid_t basegid, gid_t *groups, int *ngroups)
75 maxgroups = *ngroups;
105 *ngroups = ng;
66 make_group_list(struct irs_gr *this, const char *name, gid_t basegid, gid_t *groups, int *ngroups) argument
/illumos-gate/usr/src/lib/libproc/common/
H A Dproc_get_info.c48 * 'ngroups' is the number of supplementary group entries allocated in
51 * credp = malloc(sizeof (prcred_t) + (ngroups - 1) * sizeof (gid_t));
54 proc_get_cred(pid_t pid, prcred_t *credp, int ngroups) argument
60 size_t size = minsize + ngroups * sizeof (gid_t);
H A DPcore.c138 Pcred_core(struct ps_prochandle *P, prcred_t *pcrp, int ngroups, void *data) argument
148 ngroups = MIN(ngroups, core->core_cred->pr_ngroups);
151 sizeof (prcred_t) + (ngroups - 1) * sizeof (gid_t));
853 int ngroups; local
865 ngroups = (nbytes - min_size) / sizeof (gid_t);
866 nbytes = sizeof (prcred_t) + (ngroups - 1) * sizeof (gid_t);
877 if (pcrp->pr_ngroups > ngroups) {
879 pcrp->pr_ngroups, ngroups);
880 pcrp->pr_ngroups = ngroups;
[all...]
H A DPcontrol.c175 Pcred_live(struct ps_prochandle *P, prcred_t *pcrp, int ngroups, void *data) argument
177 return (proc_get_cred(P->pid, pcrp, ngroups));
1294 * Fill in a pointer to a process credentials structure. The ngroups parameter
1300 Pcred(struct ps_prochandle *P, prcred_t *pcrp, int ngroups) argument
1302 return (P->ops.pop_cred(P, pcrp, ngroups, P->data));
/illumos-gate/usr/src/lib/libnsl/rpc/
H A Dnetnamer.c314 int ngroups = 0; local
352 ngroups = _getgroupsbymember(pw.pw_name, groups, maxgrp,
355 if (ngroups < 0) {
360 *(argp->gidlenp) = ngroups;
362 for (count = 0; count < ngroups; count++) {
/illumos-gate/usr/src/lib/libcmd/common/
H A Did.c209 int ngroups = 0; local
237 ngroups = getgroups(maxgroups, groups);
238 for (i = j = 0; i < ngroups; i++)
243 ngroups = j;
286 if (ngroups == 1 && groups[0] == group)
287 ngroups = 0;
335 if (ngroups > 0)
339 for (i = 0; i < ngroups; i++)
393 else if (ngroups > 0)
401 if (++i >= ngroups) brea
[all...]
/illumos-gate/usr/src/cmd/fs.d/ufs/fsck/
H A Dpass3b.c298 int ngroups; member in struct:type_counts_s
391 tcp->ngroups++;
459 tcp->ngroups != 0)) {
503 tcp_all->ngroups = tcp_def->ngroups + tcp_norm->ngroups;
517 if (tcp_all->ngroups && !tcp_all->nclass_objs) {
/illumos-gate/usr/src/cmd/grpck/
H A Dgrpck.c80 int ngroups; member in struct:node
105 int ngroups = 0; local
141 t->ngroups = 1;
215 ngroups++; /* Increment number of groups found */
323 t->ngroups = 1;
338 t->ngroups++;
368 if (ngroups == 0) {
375 if (t->ngroups > ngroups_max) {
377 NGROUPS, t->user, t->ngroups);
/illumos-gate/usr/src/cmd/id/
H A Did.c388 int ngroups = 0; local
391 while ((ngroups < gidsetsize) && ((group = getgrent()) != NULL))
395 grouplist[ngroups] = group->gr_gid;
396 ngroups++;
399 if (gidsetsize && !ngroups)
400 grouplist[ngroups++] = prgid;
401 return (ngroups);
/illumos-gate/usr/src/psm/stand/cpr/sparcv9/sun4u/
H A Dcprboot.h99 int ngroups; /* number of page groups restored */ member in struct:statefile
/illumos-gate/usr/src/lib/nsswitch/nis/common/
H A Dgetnetgrent.c336 top_down(struct nis_netgr_be *be, const char **groups, int ngroups, argument
354 while (ngroups > 0) {
357 ngroups--;
/illumos-gate/usr/src/lib/libsocket/inet/
H A Drcmd.c569 int ngroups; local
608 if ((ngroups = getgroups(maxgrp, grouplist)) == -1)
619 setgroups(ngroups, grouplist);
629 setgroups(ngroups, grouplist);
639 setgroups(ngroups, grouplist);
648 setgroups(ngroups, grouplist);
/illumos-gate/usr/src/lib/librestart/common/
H A Dlibrestart.h275 int ngroups; /* -1 means use initgroups(). */ member in struct:method_context
/illumos-gate/usr/src/uts/common/fs/ufs/
H A Dufs_acl.c852 int ngroups = 0; local
906 ngroups++;
933 if (ngroups && !nclass_objs) {
937 ngroups + nusers > MAX_ACL_ENTRIES)
/illumos-gate/usr/src/cmd/cmd-inet/usr.bin/pppd/
H A Dmain.c183 int ngroups; /* How many groups valid in groups */ variable
341 ngroups = getgroups(NGROUPS_MAX, groups);
/illumos-gate/usr/src/cmd/mdb/common/modules/genunix/
H A Dgcore.c1600 Pcred_gcore(struct ps_prochandle *P, prcred_t *prcp, int ngroups, void *data) argument
1630 prcp->pr_ngroups = MIN(ngroups, crgrp.crg_ngroups);
/illumos-gate/usr/src/cmd/sgs/elfdump/common/
H A Dcorenote.c1571 Word ngroups; local
1584 ngroups = extract_as_word(state, &layout->pr_ngroups);
1585 print_array(state, &layout->pr_groups, SL_FMT_NUM_DEC, ngroups,
/illumos-gate/usr/src/uts/common/fs/proc/
H A Dprvnops.c2809 int ngroups; local
3057 ngroups = crgetngroups(p->p_cred);
3058 if (ngroups > 1)
3059 vap->va_size += (ngroups - 1) * sizeof (gid_t);
/illumos-gate/usr/src/uts/common/io/iwn/
H A Dif_iwnreg.h1095 uint8_t ngroups; member in struct:iwn_phy_calib
1102 uint8_t ngroups; member in struct:iwn5000_phy_calib_crystal
1112 uint8_t ngroups; member in struct:iwn6000_phy_calib_temp_offset
1123 uint8_t ngroups; member in struct:iwn2000_phy_calib_temp_offset
1134 uint8_t ngroups; member in struct:iwn_phy_calib_gain

Completed in 117 milliseconds