/freebsd-10-stable/sys/compat/linux/ |
H A D | linux_uid16.c | 164 int ngrp, error; local 170 ngrp = args->gidsetsize; 171 if (ngrp < 0 || ngrp >= ngroups_max + 1) { 175 linux_gidset = malloc(ngrp * sizeof(*linux_gidset), M_LINUX, M_WAITOK); 176 error = copyin(args->gidset, linux_gidset, ngrp * sizeof(l_gid16_t)); 203 if (ngrp > 0) { 204 newcred->cr_ngroups = ngrp + 1; 207 ngrp--; 208 while (ngrp > 234 int bsd_gidsetsz, ngrp, error; local [all...] |
H A D | linux_misc.c | 1307 int ngrp, error; local 1310 ngrp = args->gidsetsize; 1311 if (ngrp < 0 || ngrp >= ngroups_max + 1) 1313 linux_gidset = malloc(ngrp * sizeof(*linux_gidset), M_LINUX, M_WAITOK); 1314 error = copyin(args->grouplist, linux_gidset, ngrp * sizeof(l_gid_t)); 1318 crextend(newcred, ngrp + 1); 1336 if (ngrp > 0) { 1337 newcred->cr_ngroups = ngrp + 1; 1340 ngrp 1364 int bsd_gidsetsz, ngrp, error; local [all...] |
/freebsd-10-stable/sys/kern/ |
H A D | kern_prot.c | 91 static void crsetgroups_locked(struct ucred *cr, int ngrp, 289 u_int ngrp; local 294 ngrp = 0; 298 ngrp = td->td_ucred->cr_ngroups; 299 groups = malloc(ngrp * sizeof(*groups), M_TEMP, M_WAITOK); 300 error = kern_getgroups(td, &ngrp, groups); 304 error = copyout(groups, uap->gidset, ngrp * sizeof(gid_t)); 306 td->td_retval[0] = ngrp; 313 kern_getgroups(struct thread *td, u_int *ngrp, gid_t *groups) argument 318 if (*ngrp 827 kern_setgroups(struct thread *td, u_int ngrp, gid_t *groups) argument 2064 crsetgroups_locked(struct ucred *cr, int ngrp, gid_t *groups) argument 2096 crsetgroups(struct ucred *cr, int ngrp, gid_t *groups) argument [all...] |
/freebsd-10-stable/lib/libc/stdio/ |
H A D | xprintf_int.c | 262 int l, ngrp, rdx, sign, zext; local 278 ngrp = 1; 282 ngrp = 0; 350 p = __ultoa(uu, pe, rdx, digit, ngrp, thousands_sep, grouping); 352 p = __ujtoa(uu, pe, rdx, digit, ngrp, thousands_sep, grouping);
|
/freebsd-10-stable/sys/contrib/octeon-sdk/ |
H A D | cvmx-srio.h | 214 uint64_t ngrp : 1; /**< WORD1[NGRP] must not be set when WORD1[R] member in struct:__anon7441::__anon7444::__anon7445 293 uint64_t ngrp : 1;
|
H A D | cvmx-pip.h | 264 uint64_t ngrp : 1; /**< Must be 0 when PKT_INST_HDR[R] = 0. member in struct:__anon7354::__anon7355
|
H A D | cvmx-sli-defs.h | 4493 uint64_t ngrp : 1; /**< Becomes PKT_INST_HDR[NGRP] member in struct:cvmx_sli_pktx_instr_header::cvmx_sli_pktx_instr_header_s 4502 uint64_t ngrp : 1; 4559 uint64_t ngrp : 1; /**< Becomes PKT_INST_HDR[NGRP] member in struct:cvmx_sli_pktx_instr_header::cvmx_sli_pktx_instr_header_cn61xx 4568 uint64_t ngrp : 1;
|
H A D | cvmx-sriox-defs.h | 1031 uint64_t ngrp : 1; /**< Port/Controller X NGRP */ member in struct:cvmx_sriox_imsg_inst_hdrx::cvmx_sriox_imsg_inst_hdrx_s 1045 uint64_t ngrp : 1;
|
/freebsd-10-stable/sys/i386/ibcs2/ |
H A D | ibcs2_misc.c | 679 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/sys/ |
H A D | syscallsubr.h | 116 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);
|