Home
last modified time | relevance | path

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

/freebsd-10-stable/sys/compat/linux/
Dlinux_uid16.c164 int ngrp, error; in linux_setgroups16() local
170 ngrp = args->gidsetsize; in linux_setgroups16()
171 if (ngrp < 0 || ngrp >= ngroups_max + 1) { in linux_setgroups16()
175 linux_gidset = malloc(ngrp * sizeof(*linux_gidset), M_LINUX, M_WAITOK); in linux_setgroups16()
176 error = copyin(args->gidset, linux_gidset, ngrp * sizeof(l_gid16_t)); in linux_setgroups16()
203 if (ngrp > 0) { in linux_setgroups16()
204 newcred->cr_ngroups = ngrp + 1; in linux_setgroups16()
207 ngrp--; in linux_setgroups16()
208 while (ngrp >= 0) { in linux_setgroups16()
209 bsd_gidset[ngrp + 1] = linux_gidset[ngrp]; in linux_setgroups16()
[all …]
Dlinux_misc.c1307 int ngrp, error; in linux_setgroups() local
1310 ngrp = args->gidsetsize; in linux_setgroups()
1311 if (ngrp < 0 || ngrp >= ngroups_max + 1) in linux_setgroups()
1313 linux_gidset = malloc(ngrp * sizeof(*linux_gidset), M_LINUX, M_WAITOK); in linux_setgroups()
1314 error = copyin(args->grouplist, linux_gidset, ngrp * sizeof(l_gid_t)); in linux_setgroups()
1318 crextend(newcred, ngrp + 1); in linux_setgroups()
1336 if (ngrp > 0) { in linux_setgroups()
1337 newcred->cr_ngroups = ngrp + 1; in linux_setgroups()
1340 ngrp--; in linux_setgroups()
1341 while (ngrp >= 0) { in linux_setgroups()
[all …]
/freebsd-10-stable/sys/kern/
Dkern_prot.c91 static void crsetgroups_locked(struct ucred *cr, int ngrp,
289 u_int ngrp; in sys_getgroups() local
294 ngrp = 0; in sys_getgroups()
298 ngrp = td->td_ucred->cr_ngroups; in sys_getgroups()
299 groups = malloc(ngrp * sizeof(*groups), M_TEMP, M_WAITOK); in sys_getgroups()
300 error = kern_getgroups(td, &ngrp, groups); in sys_getgroups()
304 error = copyout(groups, uap->gidset, ngrp * sizeof(gid_t)); in sys_getgroups()
306 td->td_retval[0] = ngrp; in sys_getgroups()
313 kern_getgroups(struct thread *td, u_int *ngrp, gid_t *groups) in kern_getgroups() argument
318 if (*ngrp == 0) { in kern_getgroups()
[all …]
/freebsd-10-stable/lib/libc/stdio/
Dxprintf_int.c262 int l, ngrp, rdx, sign, zext; in __printf_render_int() local
278 ngrp = 1; in __printf_render_int()
282 ngrp = 0; in __printf_render_int()
350 p = __ultoa(uu, pe, rdx, digit, ngrp, thousands_sep, grouping); in __printf_render_int()
352 p = __ujtoa(uu, pe, rdx, digit, ngrp, thousands_sep, grouping); in __printf_render_int()
/freebsd-10-stable/sys/i386/ibcs2/
Dibcs2_misc.c679 u_int i, ngrp; local
684 ngrp = 0;
688 ngrp = td->td_ucred->cr_ngroups;
689 gp = malloc(ngrp * sizeof(*gp), M_TEMP, M_WAITOK);
690 error = kern_getgroups(td, &ngrp, gp);
694 iset = malloc(ngrp * sizeof(*iset), M_TEMP, M_WAITOK);
695 for (i = 0; i < ngrp; i++)
697 error = copyout(iset, uap->gidset, ngrp * sizeof(ibcs2_gid_t));
701 td->td_retval[0] = ngrp;
/freebsd-10-stable/sys/contrib/octeon-sdk/
Dcvmx-srio.h214 uint64_t ngrp : 1; /**< WORD1[NGRP] must not be set when WORD1[R] member
293 uint64_t ngrp : 1;
Dcvmx-pip.h264 uint64_t ngrp : 1; /**< Must be 0 when PKT_INST_HDR[R] = 0. member
Dcvmx-sli-defs.h4493 uint64_t ngrp : 1; /**< Becomes PKT_INST_HDR[NGRP] member
4502 uint64_t ngrp : 1;
4559 uint64_t ngrp : 1; /**< Becomes PKT_INST_HDR[NGRP] member
4568 uint64_t ngrp : 1;
Dcvmx-sriox-defs.h1031 uint64_t ngrp : 1; /**< Port/Controller X NGRP */ member
1045 uint64_t ngrp : 1;
/freebsd-10-stable/sys/sys/
Dsyscallsubr.h116 int kern_getgroups(struct thread *td, u_int *ngrp, gid_t *groups);
223 int kern_setgroups(struct thread *td, u_int ngrp, gid_t *groups);