Home
last modified time | relevance | path

Searched refs:ngroups (Results 1 – 25 of 39) sorted by relevance

12

/illumos-gate/usr/src/lib/libc/port/gen/
H A Dinitgroups.c51 int ngroups; in initgroups() local
73 if (ngroups < 0) { in initgroups()
80 retsave = setgroups(ngroups, groups); in initgroups()
142 if ((ngroups == NULL) || (*ngroups <= 0) || (groups == NULL)) { in getgrouplist()
143 *ngroups = ngroups_max; in getgrouplist()
148 if (*ngroups < ngroups_max) { in getgrouplist()
162 sz = *ngroups; in getgrouplist()
190 *ngroups = ret; in getgrouplist()
195 if (ret < *ngroups) { in getgrouplist()
199 *ngroups = ret; in getgrouplist()
[all …]
/illumos-gate/usr/src/contrib/ast/src/lib/libast/comp/
H A Deaccess.c106 static int ngroups = -2;
109 if (ngroups == -2)
111 if ((ngroups = getgroups(0, (gid_t*)0)) <= 0)
112 ngroups = NGROUPS_MAX;
113 if (!(groups = newof(0, gid_t, ngroups + 1, 0)))
114 ngroups = -1;
116 ngroups = getgroups(ngroups, groups);
118 n = ngroups;
/illumos-gate/usr/src/cmd/grpck/
H A Dgrpck.c77 int ngroups; member
102 int ngroups = 0; in main() local
138 t->ngroups = 1; in main()
212 ngroups++; /* Increment number of groups found */ in main()
320 t->ngroups = 1; in main()
335 t->ngroups++; in main()
365 if (ngroups == 0) { in main()
372 if (t->ngroups > ngroups_max) { in main()
374 NGROUPS, t->user, t->ngroups); in main()
/illumos-gate/usr/src/contrib/ast/src/lib/libcmd/
H A Did.c209 int ngroups = 0; in getids() local
237 ngroups = getgroups(maxgroups, groups); in getids()
238 for (i = j = 0; i < ngroups; i++) in getids()
243 ngroups = j; in getids()
286 if (ngroups == 1 && groups[0] == group) in getids()
287 ngroups = 0; in getids()
335 if (ngroups > 0) in getids()
339 for (i = 0; i < ngroups; i++) in getids()
393 else if (ngroups > 0) in getids()
401 if (++i >= ngroups) break; in getids()
/illumos-gate/usr/src/cmd/id/
H A Did.c386 int ngroups = 0; local
389 while ((ngroups < gidsetsize) && ((group = getgrent()) != NULL))
393 grouplist[ngroups] = group->gr_gid;
394 ngroups++;
397 if (gidsetsize && !ngroups)
398 grouplist[ngroups++] = prgid;
399 return (ngroups);
/illumos-gate/usr/src/lib/libresolv2/common/irs/
H A Dutil.c63 gid_t basegid, gid_t *groups, int *ngroups) in make_group_list() argument
71 maxgroups = *ngroups; in make_group_list()
101 *ngroups = ng; in make_group_list()
/illumos-gate/usr/src/ucbcmd/groups/
H A Dgroups.c35 int ngroups, i; in main() local
49 ngroups = getgroups(maxgrp, groups); in main()
55 for (i = 0; i < ngroups; i++) { in main()
/illumos-gate/usr/src/cmd/groups/
H A Dgroups.c106 int ngroups; in showgroups() local
120 ngroups = _getgroupsbymember(pw->pw_name, groups, ngroups_max, 1); in showgroups()
127 for (i = 1; i < ngroups; i++) { in showgroups()
/illumos-gate/usr/src/cmd/fs.d/ufs/fsck/
H A Dpass3b.c296 int ngroups; in bufchk() member
389 tcp->ngroups++; in bufchk()
457 tcp->ngroups != 0)) { in bufchk()
501 tcp_all->ngroups = tcp_def->ngroups + tcp_norm->ngroups; in bufchk()
515 if (tcp_all->ngroups && !tcp_all->nclass_objs) { in bufchk()
/illumos-gate/usr/src/lib/libnsl/rpc/
H A Dnetnamer.c314 int ngroups = 0; in netname2user_ldap() local
352 ngroups = _getgroupsbymember(pw.pw_name, groups, maxgrp, in netname2user_ldap()
355 if (ngroups < 0) { in netname2user_ldap()
360 *(argp->gidlenp) = ngroups; in netname2user_ldap()
362 for (count = 0; count < ngroups; count++) { in netname2user_ldap()
/illumos-gate/usr/src/lib/libsocket/inet/
H A Drcmd.c569 int ngroups; in ruserok() local
608 if ((ngroups = getgroups(maxgrp, grouplist)) == -1) in ruserok()
619 setgroups(ngroups, grouplist); in ruserok()
629 setgroups(ngroups, grouplist); in ruserok()
639 setgroups(ngroups, grouplist); in ruserok()
648 setgroups(ngroups, grouplist); in ruserok()
/illumos-gate/usr/src/lib/libproc/common/
H A Dproc_get_info.c55 proc_get_cred(pid_t pid, prcred_t *credp, int ngroups) in proc_get_cred() argument
61 size_t size = minsize + ngroups * sizeof (gid_t); in proc_get_cred()
H A DPcore.c141 Pcred_core(struct ps_prochandle *P, prcred_t *pcrp, int ngroups, void *data) in Pcred_core() argument
151 ngroups = MIN(ngroups, core->core_cred->pr_ngroups); in Pcred_core()
154 sizeof (prcred_t) + (ngroups - 1) * sizeof (gid_t)); in Pcred_core()
886 int ngroups; in note_cred() local
898 ngroups = (nbytes - min_size) / sizeof (gid_t); in note_cred()
899 nbytes = sizeof (prcred_t) + (ngroups - 1) * sizeof (gid_t); in note_cred()
910 if (pcrp->pr_ngroups > ngroups) { in note_cred()
912 pcrp->pr_ngroups, ngroups); in note_cred()
913 pcrp->pr_ngroups = ngroups; in note_cred()
/illumos-gate/usr/src/lib/lib9p/common/
H A Dutils.c205 int ngroups; in l9p_getgrlist() local
211 ngroups = NGROUPS_MAX; in l9p_getgrlist()
212 groups = calloc((size_t)ngroups, sizeof(*groups)); in l9p_getgrlist()
214 int_groups = groups ? calloc((size_t)ngroups, sizeof(*int_groups)) : in l9p_getgrlist()
226 if (getgrouplist(name, (int)basegid, int_groups, &ngroups) < 0) { in l9p_getgrlist()
231 for (i = 0; i < ngroups; i++) in l9p_getgrlist()
235 if (getgrouplist(name, basegid, groups, &ngroups) < 0) { in l9p_getgrlist()
240 *angroups = ngroups; in l9p_getgrlist()
/illumos-gate/usr/src/psm/stand/cpr/sparcv9/sun4u/
H A Dpages.c309 if ((sfile.ngroups++ & 0x1f) == 0) in cb_restore_kpages()
321 sfile.ngroups, sfile.recycle); in cb_restore_kpages()
H A Dcprboot.h99 int ngroups; /* number of page groups restored */ member
/illumos-gate/usr/src/uts/common/io/mlxcx/
H A Dmlxcx.c2703 size_t ngroups = mlxp->mlx_props.mldp_rx_ngroups_large + in mlxcx_calc_rx_ngroups() local
2708 if (tirlim < ngroups) { in mlxcx_calc_rx_ngroups()
2711 ngroups = tirlim; in mlxcx_calc_rx_ngroups()
2715 if (flowlim < ngroups) { in mlxcx_calc_rx_ngroups()
2718 ngroups = flowlim; in mlxcx_calc_rx_ngroups()
2728 if (flowlim < ngroups) { in mlxcx_calc_rx_ngroups()
2732 ngroups = flowlim; in mlxcx_calc_rx_ngroups()
2737 if (gflowlim < ngroups) { in mlxcx_calc_rx_ngroups()
2740 --ngroups; in mlxcx_calc_rx_ngroups()
2742 } while (gflowlim < ngroups); in mlxcx_calc_rx_ngroups()
[all …]
/illumos-gate/usr/src/lib/nsswitch/files/common/
H A Dgetnetgrent.c490 top_down(struct files_backend *be, const char **groups, int ngroups, in top_down() argument
508 while (ngroups > 0) { in top_down()
511 ngroups--; in top_down()
/illumos-gate/usr/src/lib/nsswitch/nis/common/
H A Dgetnetgrent.c336 top_down(struct nis_netgr_be *be, const char **groups, int ngroups, in top_down() argument
354 while (ngroups > 0) { in top_down()
357 ngroups--; in top_down()
/illumos-gate/usr/src/lib/librestart/common/
H A Dlibrestart.h275 int ngroups; /* -1 means use initgroups(). */ member
H A Dlibrestart.c2325 ci->ngroups = 0; in get_groups()
2346 ci->ngroups = 0; in get_groups()
2352 ci->ngroups = 0; in get_groups()
2359 ci->ngroups = i; in get_groups()
2615 ci->ngroups = -1; in get_ids()
3547 if (cip->ngroups == -1) { in restarter_set_method_context()
3576 } else if (cip->ngroups > 0 && in restarter_set_method_context()
3577 setgroups(cip->ngroups, cip->groups) != 0) { in restarter_set_method_context()
/illumos-gate/usr/src/uts/common/io/iwn/
H A Dif_iwnreg.h1095 uint8_t ngroups; member
1102 uint8_t ngroups; member
1112 uint8_t ngroups; member
1123 uint8_t ngroups; member
1134 uint8_t ngroups; member
/illumos-gate/usr/src/lib/libresolv2/include/
H A Dport_before.h68 #define GETGROUPLIST_ARGS const char *name, gid_t basegid, gid_t *groups, int *ngroups
/illumos-gate/usr/src/lib/lib9p/common/backend/
H A Dfs.c927 int ngroups; in fs_attach() local
1001 gids = l9p_getgrlist(pwd->pw_name, pwd->pw_gid, &ngroups); in fs_attach()
1004 ngroups = 0; in fs_attach()
1013 ai = malloc(sizeof(*ai) + (size_t)ngroups * sizeof(gid_t)); in fs_attach()
1031 ai->ai_ngids = ngroups; in fs_attach()
1032 memcpy(ai->ai_gids, gids, (size_t)ngroups * sizeof(gid_t)); in fs_attach()
/illumos-gate/usr/src/uts/common/fs/ufs/
H A Dufs_acl.c846 int ngroups = 0; in acl_validate() local
900 ngroups++; in acl_validate()
927 if (ngroups && !nclass_objs) { in acl_validate()
931 ngroups + nusers > MAX_ACL_ENTRIES) in acl_validate()

12