Searched defs:ngroups_max (Results 1 - 9 of 9) sorted by relevance

/illumos-gate/usr/src/lib/libc/port/gen/
H A Dinitgroups.c49 long ngroups_max; local
53 if ((ngroups_max = sysconf(_SC_NGROUPS_MAX)) < 0) {
58 * ngroups_max is the maximum number of supplemental groups per
61 if (ngroups_max == 0)
64 if ((groups = (gid_t *)calloc(ngroups_max, sizeof (gid_t))) == 0) {
70 ngroups = _getgroupsbymember(uname, groups, (int)ngroups_max,
/illumos-gate/usr/src/cmd/oamuser/user/
H A Dval_lgrp.c47 static int ngroups_max = 0; variable
62 if (ngroups_max == 0) {
63 ngroups_max = sysconf(_SC_NGROUPS_MAX);
64 grplist = malloc((ngroups_max + 1) * sizeof (gid_t));
108 if( i >= ngroups_max ) {
109 errmsg( M_MAXGROUPS, ngroups_max );
/illumos-gate/usr/src/cmd/groups/
H A Dgroups.c59 static int ngroups_max; variable
67 ngroups_max = sysconf(_SC_NGROUPS_MAX);
69 if (ngroups_max < 0) {
75 if (ngroups_max == 0)
112 if ((groups = (gid_t *)calloc((uint_t)ngroups_max,
116 ngroups_max * sizeof (gid_t));
122 ngroups = _getgroupsbymember(pw->pw_name, groups, ngroups_max, 1);
/illumos-gate/usr/src/cmd/ptools/pcred/
H A Dpcred.c61 static long ngroups_max; variable
78 if ((ngroups_max = sysconf(_SC_NGROUPS_MAX)) < 0)
166 (ngroups_max - 1) * sizeof (gid_t));
181 if (Pcred(Pr, prcred, ngroups_max) == -1) {
296 if ((groups = malloc(ngroups_max * sizeof (gid_t))) == NULL) {
314 ngrp = _getgroupsbymember(login, groups, (int)ngroups_max, 1);
342 if (ngrp >= ngroups_max) {
/illumos-gate/usr/src/cmd/grpck/
H A Dgrpck.c104 int ngroups_max; local
120 ngroups_max = sysconf(_SC_NGROUPS_MAX);
142 if (!ngroups_max)
324 if (!ngroups_max)
335 if (!ngroups_max)
373 if (ngroups_max) {
375 if (t->ngroups > ngroups_max) {
/illumos-gate/usr/src/lib/smbsrv/libmlsvc/common/
H A Dsmb_logon.c180 int ngroups_max, num; local
183 if ((ngroups_max = sysconf(_SC_NGROUPS_MAX)) < 0) {
208 gids = (gid_t *)malloc(ngroups_max * sizeof (gid_t));
212 bzero(gids, ngroups_max * sizeof (gid_t));
220 num = _getgroupsbymember(pwd->pw_name, gids, ngroups_max, 1);
/illumos-gate/usr/src/lib/libshell/common/include/
H A Ddefs.h108 int ngroups_max; /* maximum number of process groups */ member in struct:limits
/illumos-gate/usr/src/uts/common/conf/
H A Dparam.c432 int ngroups_max = NGROUPS_MAX_DEFAULT; variable
710 if (ngroups_max < NGROUPS_UMIN)
711 ngroups_max = NGROUPS_UMIN;
712 if (ngroups_max > NGROUPS_UMAX)
713 ngroups_max = NGROUPS_UMAX;
716 if (ngroups_max > NGROUPS_OLDMAX &&
717 strctlsz < (ngroups_max - NGROUPS_OLDMAX) * sizeof (gid_t) + 1024) {
718 strctlsz = (ngroups_max - NGROUPS_OLDMAX) * sizeof (gid_t) +
/illumos-gate/usr/src/cmd/fs.d/nfs/mountd/
H A Dmountd.c147 static long ngroups_max; /* _SC_NGROUPS_MAX */ variable
544 if ((ngroups_max = sysconf(_SC_NGROUPS_MAX)) == -1) {
2192 gid_t *tmpgrps = alloca(ngroups_max * sizeof (gid_t));
2200 tmpngrps = _getgroupsbymember(pwd.pw_name, tmpgrps, ngroups_max, 1);
2325 if (flavor == AUTH_SYS && clnt_ngids == NGRPS && ngroups_max > NGRPS)
2684 if (flavor == AUTH_SYS && clnt_ngids == NGRPS && ngroups_max > NGRPS)

Completed in 73 milliseconds