Searched refs:ngroups_max (Results 1 - 17 of 17) sorted by relevance

/freebsd-9.3-release/lib/libc/gen/
H A Dinitgroups.c52 long ngroups_max; local
59 ngroups_max = sysconf(_SC_NGROUPS_MAX) + 2;
60 if ((groups = malloc(sizeof(*groups) * ngroups_max)) == NULL)
63 ngroups = (int)ngroups_max;
/freebsd-9.3-release/usr.sbin/chroot/
H A Dchroot.c73 long ngroups_max; local
119 ngroups_max = sysconf(_SC_NGROUPS_MAX) + 1;
120 if ((gidlist = malloc(sizeof(gid_t) * ngroups_max)) == NULL)
123 (p = strsep(&grouplist, ",")) != NULL && gids < ngroups_max; ) {
140 if (p != NULL && gids == ngroups_max)
/freebsd-9.3-release/sys/rpc/
H A Dauthunix_prot.c112 if (i + 1 < ngroups_max + 1) {
122 if (ngroups + 1 > ngroups_max + 1)
123 cred->cr_ngroups = ngroups_max + 1;
/freebsd-9.3-release/usr.sbin/jexec/
H A Djexec.c62 ngroups = ngroups_max; \
75 long ngroups_max; local
80 ngroups_max = sysconf(_SC_NGROUPS_MAX) + 1;
81 if ((groups = malloc(sizeof(gid_t) * ngroups_max)) == NULL)
/freebsd-9.3-release/usr.bin/id/
H A Did.c270 long ngroups_max; local
283 ngroups_max = sysconf(_SC_NGROUPS_MAX) + 1;
284 if ((groups = malloc(sizeof(gid_t) * ngroups_max)) == NULL)
288 ngroups = ngroups_max;
292 ngroups = getgroups(ngroups_max, groups);
379 long ngroups_max; local
383 ngroups_max = sysconf(_SC_NGROUPS_MAX) + 1;
384 if ((groups = malloc(sizeof(gid_t) * (ngroups_max))) == NULL)
388 ngroups = ngroups_max;
391 ngroups = getgroups(ngroups_max, group
[all...]
/freebsd-9.3-release/sys/kern/
H A Dsubr_param.c95 int ngroups_max; /* max # groups per process */ variable
258 ngroups_max = NGROUPS_MAX;
259 TUNABLE_INT_FETCH("kern.ngroups", &ngroups_max);
260 if (ngroups_max < NGROUPS_MAX)
261 ngroups_max = NGROUPS_MAX;
H A Dkern_prot.c814 if (uap->gidsetsize > ngroups_max + 1)
833 if (ngrp > ngroups_max + 1)
2049 * Truncate the list to (ngroups_max + 1) if it is too large.
2055 if (ngrp > ngroups_max + 1)
2056 ngrp = ngroups_max + 1;
H A Dkern_mib.c131 &ngroups_max, 0,
/freebsd-9.3-release/usr.sbin/chown/
H A Dchown.c275 static long ngroups_max; local
288 ngroups_max = sysconf(_SC_NGROUPS_MAX) + 1;
289 if ((groups = malloc(sizeof(gid_t) * ngroups_max)) == NULL)
291 ngroups = getgroups(ngroups_max, groups);
/freebsd-9.3-release/usr.sbin/lpr/lpc/
H A Dlpc.c355 static long ngroups_max; local
365 ngroups_max = sysconf(_SC_NGROUPS_MAX);
366 if ((groups = malloc(sizeof(gid_t) * ngroups_max)) == NULL)
368 ngroups = getgroups(ngroups_max, groups);
/freebsd-9.3-release/sys/cddl/contrib/opensolaris/uts/common/sys/
H A Dcred.h63 extern int ngroups_max;
/freebsd-9.3-release/sys/compat/linux/
H A Dlinux_uid16.c171 if (ngrp < 0 || ngrp >= ngroups_max + 1) {
H A Dlinux_misc.c1108 if (ngrp < 0 || ngrp >= ngroups_max + 1)
/freebsd-9.3-release/sys/sys/
H A Dsystm.h66 extern int ngroups_max; /* max # of supplemental groups */
/freebsd-9.3-release/sys/security/audit/
H A Daudit_arg.c265 KASSERT(gidset_size <= ngroups_max + 1,
/freebsd-9.3-release/sys/i386/ibcs2/
H A Dibcs2_misc.c703 if (uap->gidsetsize < 0 || uap->gidsetsize > ngroups_max + 1)
/freebsd-9.3-release/sys/compat/svr4/
H A Dsvr4_misc.c715 *retval = ngroups_max;

Completed in 198 milliseconds