Searched refs:ngrp (Results 1 – 5 of 5) sorted by relevance
/freebsd/sys/compat/linux/ |
H A D | linux_uid16.c | 91 int ngrp, error; in linux_setgroups16() local 94 ngrp = args->gidsetsize; in linux_setgroups16() 95 if (ngrp < 0 || ngrp >= ngroups_max + 1) in linux_setgroups16() 97 linux_gidset = malloc(ngrp * sizeof(*linux_gidset), M_LINUX, M_WAITOK); in linux_setgroups16() 98 error = copyin(args->gidset, linux_gidset, ngrp * sizeof(l_gid16_t)); in linux_setgroups16() 124 if (ngrp > 0) { in linux_setgroups16() 125 newcred->cr_ngroups = ngrp + 1; in linux_setgroups16() 128 ngrp--; in linux_setgroups16() 129 while (ngrp >= 0) { in linux_setgroups16() 130 bsd_gidset[ngrp + 1] = linux_gidset[ngrp]; in linux_setgroups16() [all …]
|
H A D | linux_misc.c | 1034 int ngrp, error; in linux_setgroups() local 1037 ngrp = args->gidsetsize; in linux_setgroups() 1038 if (ngrp < 0 || ngrp >= ngroups_max + 1) in linux_setgroups() 1040 linux_gidset = malloc(ngrp * sizeof(*linux_gidset), M_LINUX, M_WAITOK); in linux_setgroups() 1041 error = copyin(args->grouplist, linux_gidset, ngrp * sizeof(l_gid_t)); in linux_setgroups() 1045 crextend(newcred, ngrp + 1); in linux_setgroups() 1063 if (ngrp > 0) { in linux_setgroups() 1064 newcred->cr_ngroups = ngrp + 1; in linux_setgroups() 1067 ngrp--; in linux_setgroups() 1068 while (ngrp >= 0) { in linux_setgroups() [all …]
|
/freebsd/sys/kern/ |
H A D | kern_prot.c | 99 groups_check_positive_len(int ngrp) in groups_check_positive_len() argument 101 MPASS2(ngrp >= 0, "negative number of groups"); in groups_check_positive_len() 102 MPASS2(ngrp != 0, "at least one group expected (effective GID)"); in groups_check_positive_len() 105 groups_check_max_len(int ngrp) in groups_check_max_len() argument 107 MPASS2(ngrp <= ngroups_max + 1, "too many groups"); in groups_check_max_len() 110 static void groups_normalize(int *ngrp, gid_t *groups); 111 static void crsetgroups_internal(struct ucred *cr, int ngrp, 324 int ngrp, error; in sys_getgroups() local 327 ngrp = cred->cr_ngroups; in sys_getgroups() 333 if (uap->gidsetsize < ngrp) in sys_getgroups() [all …]
|
/freebsd/lib/libc/stdio/ |
H A D | xprintf_int.c | 262 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/sys/sys/ |
H A D | ucred.h | 237 void crsetgroups(struct ucred *cr, int ngrp, const gid_t *groups); 238 void crsetgroups_fallback(struct ucred *cr, int ngrp, const gid_t *groups,
|