Home
last modified time | relevance | path

Searched refs:ngrp (Results 1 – 9 of 9) sorted by relevance

/illumos-gate/usr/src/cmd/ptools/pcred/
H A Dpcred.c57 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 Dproc_set.c39 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 Dsid.c514 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 Dcred.c84 #define CREDGRPSZ(ngrp) (sizeof (credgrp_t) + ((ngrp - 1) * sizeof (gid_t))) argument
/illumos-gate/usr/src/lib/libeti/form/common/
H A Dregcmp.c83 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 Dmac_client.c1734 mac_group_t *ngrp; in mac_client_set_rings_prop() local
1835 if (ngrp == NULL) in mac_client_set_rings_prop()
1840 mac_stop_group(ngrp); in mac_client_set_rings_prop()
1865 if (ngrp == NULL) in mac_client_set_rings_prop()
1870 mac_release_rx_group(mcip, ngrp); in mac_client_set_rings_prop()
1987 ngrp = mac_reserve_tx_group(mcip, B_TRUE); in mac_client_set_rings_prop()
1988 if (ngrp == NULL) in mac_client_set_rings_prop()
1992 mac_tx_switch_group(mcip, defgrp, ngrp); in mac_client_set_rings_prop()
2007 ngrp = mac_reserve_tx_group(mcip, B_TRUE); in mac_client_set_rings_prop()
2008 if (ngrp == NULL) in mac_client_set_rings_prop()
[all …]
H A Dmac.c8632 mac_group_t *ngrp; in mac_check_primary_relocation() local
8659 ngrp = mac_reserve_rx_group(mcip, mac_addr, B_TRUE); in mac_check_primary_relocation()
8660 if (ngrp == NULL) in mac_check_primary_relocation()
8662 if (mac_rx_switch_group(mcip, defgrp, ngrp) != 0) { in mac_check_primary_relocation()
8663 mac_stop_group(ngrp); in mac_check_primary_relocation()
/illumos-gate/usr/src/uts/common/fs/proc/
H A Dprcontrol.c2303 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 Dsmb_lgrp.c1082 int ngrp = sizeof (builtin) / sizeof (builtin[0]); in smb_lgrp_start() local
1112 for (i = 0; i < ngrp; i++) { in smb_lgrp_start()