Searched refs:ngrp (Results 1 – 9 of 9) sorted by relevance
/illumos-gate/usr/src/cmd/ptools/pcred/ |
H A D | pcred.c | 57 static int ngrp = -1; variable 145 if (ngrp >= 0) { in credupdate() 147 pcr->pr_ngroups = ngrp; in credupdate() 149 (void) memcpy(pcr->pr_groups, groups, ngrp * sizeof (gid_t)); in credupdate() 312 ngrp = _getgroupsbymember(login, groups, (int)ngroups_max, 1); in initcred() 336 ngrp = 0; in initcred() 340 if (ngrp >= ngroups_max) { in initcred() 345 groups[ngrp++] = str2gid(cgrp); in initcred()
|
/illumos-gate/usr/src/lib/libproc/common/ |
H A D | proc_set.c | 39 int ngrp; in Psetcred() local 49 ngrp = credp->pr_ngroups; in Psetcred() 50 ctlsize = sizeof (prcred_t) + (ngrp - 1) * sizeof (gid_t); in Psetcred()
|
/illumos-gate/usr/src/uts/common/os/ |
H A D | sid.c | 514 kcrsid_gidstosids(zone_t *zone, int ngrp, gid_t *grp) in kcrsid_gidstosids() argument 520 if (ngrp == 0) in kcrsid_gidstosids() 524 list = kmem_zalloc(KSIDLIST_MEM(ngrp), KM_SLEEP); in kcrsid_gidstosids() 526 list->ksl_nsid = ngrp; in kcrsid_gidstosids() 529 for (i = 0; i < ngrp; i++) { in kcrsid_gidstosids() 547 kmem_free(list, KSIDLIST_MEM(ngrp)); in kcrsid_gidstosids()
|
H A D | cred.c | 84 #define CREDGRPSZ(ngrp) (sizeof (credgrp_t) + ((ngrp - 1) * sizeof (gid_t))) argument
|
/illumos-gate/usr/src/lib/libeti/form/common/ |
H A D | regcmp.c | 83 int nbra, ngrp; in libform_regcmp() local 92 i = nbra = ngrp = 0; in libform_regcmp() 140 *ep++ = ngrp++; in libform_regcmp()
|
/illumos-gate/usr/src/uts/common/io/mac/ |
H A D | mac_client.c | 1734 mac_group_t *ngrp; in mac_client_set_rings_prop() local 1832 ngrp = mac_reserve_rx_group(mcip, mac_addr, in mac_client_set_rings_prop() 1835 if (ngrp == NULL) in mac_client_set_rings_prop() 1838 if (mac_rx_switch_group(mcip, defgrp, ngrp) != in mac_client_set_rings_prop() 1840 mac_stop_group(ngrp); in mac_client_set_rings_prop() 1864 ngrp = mac_reserve_rx_group(mcip, mac_addr, B_TRUE); in mac_client_set_rings_prop() 1865 if (ngrp == NULL) in mac_client_set_rings_prop() 1869 if (mac_rx_switch_group(mcip, defgrp, ngrp) != 0) { in mac_client_set_rings_prop() 1870 mac_release_rx_group(mcip, ngrp); in mac_client_set_rings_prop() 1875 MAC_RX_RING_RESERVED(mip, ngrp->mrg_cur_count); in mac_client_set_rings_prop() [all …]
|
H A D | mac.c | 8673 mac_group_t *ngrp; in mac_check_primary_relocation() local 8700 ngrp = mac_reserve_rx_group(mcip, mac_addr, B_TRUE); in mac_check_primary_relocation() 8701 if (ngrp == NULL) in mac_check_primary_relocation() 8703 if (mac_rx_switch_group(mcip, defgrp, ngrp) != 0) { in mac_check_primary_relocation() 8704 mac_stop_group(ngrp); in mac_check_primary_relocation()
|
/illumos-gate/usr/src/uts/common/fs/proc/ |
H A D | prcontrol.c | 2303 int ngrp = prcred->pr_ngroups; in pr_scred() local 2306 if (ngrp < 0 || ngrp > ngroups_max) in pr_scred() 2309 for (i = 0; i < ngrp; i++) { in pr_scred()
|
/illumos-gate/usr/src/lib/smbsrv/libsmb/common/ |
H A D | smb_lgrp.c | 1082 int ngrp = sizeof (builtin) / sizeof (builtin[0]); in smb_lgrp_start() local 1112 for (i = 0; i < ngrp; i++) { in smb_lgrp_start()
|