/freebsd-9.3-release/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_TEMP, 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 | 1104 int ngrp, error; local 1107 ngrp = args->gidsetsize; 1108 if (ngrp < 0 || ngrp >= ngroups_max + 1) 1110 linux_gidset = malloc(ngrp * sizeof(*linux_gidset), M_TEMP, M_WAITOK); 1111 error = copyin(args->grouplist, linux_gidset, ngrp * sizeof(l_gid_t)); 1115 crextend(newcred, ngrp + 1); 1133 if (ngrp > 0) { 1134 newcred->cr_ngroups = ngrp + 1; 1137 ngrp 1161 int bsd_gidsetsz, ngrp, error; local [all...] |
/freebsd-9.3-release/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 2020 crsetgroups_locked(struct ucred *cr, int ngrp, gid_t *groups) argument 2052 crsetgroups(struct ucred *cr, int ngrp, gid_t *groups) argument [all...] |
/freebsd-9.3-release/lib/libc/stdio/ |
H A D | xprintf_int.c | 262 int rdx, sign, zext, ngrp; 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-9.3-release/sys/contrib/octeon-sdk/ |
H A D | cvmx-srio.h | 213 uint64_t ngrp : 1; /**< WORD1[NGRP] must not be set when WORD1[R] member in struct:__anon6617::__anon6620::__anon6621 292 uint64_t ngrp : 1;
|
H A D | cvmx-pip.h | 225 uint64_t ngrp : 1; /**< Must be 0 when PKT_INST_HDR[R] = 0. member in struct:__anon6553::__anon6554
|
H A D | cvmx-sriox-defs.h | 911 uint64_t ngrp : 1; /**< Port/Controller X NGRP */ member in struct:cvmx_sriox_imsg_inst_hdrx::cvmx_sriox_imsg_inst_hdrx_s 925 uint64_t ngrp : 1;
|
H A D | cvmx-sli-defs.h | 2827 uint64_t ngrp : 1; /**< NGRP. Used when packet is raw and PBP==0. */ member in struct:cvmx_sli_pktx_instr_header::cvmx_sli_pktx_instr_header_s 2833 uint64_t ngrp : 1;
|
/freebsd-9.3-release/sys/i386/ibcs2/ |
H A D | ibcs2_misc.c | 666 u_int i, ngrp; local 671 ngrp = 0; 675 ngrp = td->td_ucred->cr_ngroups; 676 gp = malloc(ngrp * sizeof(*gp), M_TEMP, M_WAITOK); 677 error = kern_getgroups(td, &ngrp, gp); 681 iset = malloc(ngrp * sizeof(*iset), M_TEMP, M_WAITOK); 682 for (i = 0; i < ngrp; i++) 684 error = copyout(iset, uap->gidset, ngrp * sizeof(ibcs2_gid_t)); 688 td->td_retval[0] = ngrp;
|
/freebsd-9.3-release/sys/sys/ |
H A D | syscallsubr.h | 106 int kern_getgroups(struct thread *td, u_int *ngrp, gid_t *groups); 196 int kern_setgroups(struct thread *td, u_int ngrp, gid_t *groups);
|