Searched refs:ngroups (Results 26 - 41 of 41) sorted by last modified time

12

/freebsd-11-stable/contrib/pf/authpf/
H A Dauthpf.c504 int gl_init = 0, ngroups = NGROUPS + 1; local
541 pw->pw_gid, groups, &ngroups);
545 for ( cnt = 0; cnt < ngroups; cnt++) {
/freebsd-11-stable/contrib/atf/atf-c/detail/
H A Duser.c49 static int ngroups = -1; local
53 if (ngroups == -1) {
54 ngroups = getgroups(NGROUPS_MAX, groups);
55 INV(ngroups >= 0);
59 for (i = 0; !found && i < ngroups; i++)
/freebsd-11-stable/contrib/jemalloc/include/jemalloc/internal/
H A Dbitmap.h109 size_t ngroups; member in struct:bitmap_info_s
145 for (i = 0; i < binfo->ngroups; i++) {
/freebsd-11-stable/contrib/jemalloc/src/
H A Dbitmap.c81 binfo->ngroups = BITMAP_BITS2GROUPS(nbits);
89 return (binfo->ngroups);
101 bitmap[binfo->ngroups - 1] >>= extra;
/freebsd-11-stable/lib/libcasper/services/cap_grp/
H A Dcap_grp.c613 unsigned int ngroups; local
615 for (ngroups = 0; grp->gr_mem[ngroups] != NULL; ngroups++) {
617 ngroups);
619 nvlist_add_string(nvl, nvlname, grp->gr_mem[ngroups]);
621 nvlist_add_number(nvl, "gr_nmem", (uint64_t)ngroups);
/freebsd-11-stable/lib/libc/rpc/
H A Dnetnamer.c150 gid_t ngroups = 0; local
160 if (ngroups == NGRPS) {
169 for (j = 0; j < ngroups; j++)
175 groups[ngroups++] = grp->gr_gid;
180 return (ngroups);
/freebsd-11-stable/lib/libc/gen/
H A Dinitgroups.c49 int ngroups, ret; local
61 ngroups = (int)ngroups_max;
62 getgrouplist(uname, agroup, groups, &ngroups);
63 ret = setgroups(ngroups, groups);
/freebsd-11-stable/usr.bin/id/
H A Did.c272 int cnt, ngroups; local
291 ngroups = ngroups_max;
292 getgrouplist(pw->pw_name, gid, groups, &ngroups);
295 ngroups = getgroups(ngroups_max, groups);
316 for (lastgid = -1, cnt = 0; cnt < ngroups; ++cnt) {
381 int cnt, id, lastid, ngroups; local
391 ngroups = ngroups_max;
392 (void) getgrouplist(pw->pw_name, pw->pw_gid, groups, &ngroups);
394 ngroups = getgroups(ngroups_max, groups);
397 for (lastid = -1, cnt = 0; cnt < ngroups;
[all...]
/freebsd-11-stable/usr.sbin/chown/
H A Dchown.c276 static int ngroups = -1; local
288 if (gid != (gid_t)-1 && ngroups == -1 &&
293 ngroups = getgroups(ngroups_max, groups);
294 while (--ngroups >= 0 && gid != groups[ngroups]);
296 if (ngroups < 0) {
/freebsd-11-stable/sys/security/mac/
H A Dmac_cred.c270 mac_cred_check_setgroups(struct ucred *cred, int ngroups, gid_t *gidset) argument
274 MAC_POLICY_CHECK_NOSLEEP(cred_check_setgroups, cred, ngroups, gidset);
275 MAC_CHECK_PROBE3(cred_check_setgroups, error, cred, ngroups, gidset);
H A Dmac_framework.h117 int mac_cred_check_setgroups(struct ucred *cred, int ngroups,
H A Dmac_policy.h145 typedef int (*mpo_cred_check_setgroups_t)(struct ucred *cred, int ngroups,
/freebsd-11-stable/sys/security/mac_stub/
H A Dmac_stub.c247 stub_cred_check_setgroups(struct ucred *cred, int ngroups, argument
/freebsd-11-stable/sys/security/mac_test/
H A Dmac_test.c317 test_cred_check_setgroups(struct ucred *cred, int ngroups, argument
/freebsd-11-stable/sys/rpc/
H A Dauthunix_prot.c67 uint32_t ngroups, i; local
104 ngroups = cred->cr_ngroups - 1;
105 if (ngroups > NGRPS)
106 ngroups = NGRPS;
109 if (!xdr_uint32_t(xdrs, &ngroups))
111 for (i = 0; i < ngroups; i++) {
122 if (ngroups + 1 > ngroups_max + 1)
125 cred->cr_ngroups = ngroups + 1;
/freebsd-11-stable/sys/dev/iwn/
H A Dif_iwnreg.h1171 uint8_t ngroups; member in struct:iwn_phy_calib
1178 uint8_t ngroups; member in struct:iwn5000_phy_calib_crystal
1188 uint8_t ngroups; member in struct:iwn5000_phy_calib_temp_offset
1199 uint8_t ngroups; member in struct:iwn5000_phy_calib_temp_offsetv2
1210 uint8_t ngroups; member in struct:iwn_phy_calib_gain

Completed in 172 milliseconds

12