Home
last modified time | relevance | path

Searched refs:gidsetsize (Results 1 – 6 of 6) sorted by relevance

/linux-3.4.99/kernel/
Dgroups.c14 struct group_info *groups_alloc(int gidsetsize) in groups_alloc() argument
20 nblocks = (gidsetsize + NGROUPS_PER_BLOCK - 1) / NGROUPS_PER_BLOCK; in groups_alloc()
26 group_info->ngroups = gidsetsize; in groups_alloc()
30 if (gidsetsize <= NGROUPS_SMALL) in groups_alloc()
109 int gidsetsize = group_info->ngroups; in groups_sort() local
111 for (stride = 1; stride < gidsetsize; stride = 3 * stride + 1) in groups_sort()
116 max = gidsetsize - stride; in groups_sort()
202 SYSCALL_DEFINE2(getgroups, int, gidsetsize, gid_t __user *, grouplist) in SYSCALL_DEFINE2() argument
207 if (gidsetsize < 0) in SYSCALL_DEFINE2()
212 if (gidsetsize) { in SYSCALL_DEFINE2()
[all …]
Duid16.c164 SYSCALL_DEFINE2(getgroups16, int, gidsetsize, old_gid_t __user *, grouplist) in SYSCALL_DEFINE2() argument
169 if (gidsetsize < 0) in SYSCALL_DEFINE2()
173 if (gidsetsize) { in SYSCALL_DEFINE2()
174 if (i > gidsetsize) { in SYSCALL_DEFINE2()
187 SYSCALL_DEFINE2(setgroups16, int, gidsetsize, old_gid_t __user *, grouplist) in SYSCALL_DEFINE2() argument
194 if ((unsigned)gidsetsize > NGROUPS_MAX) in SYSCALL_DEFINE2()
197 group_info = groups_alloc(gidsetsize); in SYSCALL_DEFINE2()
/linux-3.4.99/arch/s390/kernel/
Dcompat_linux.c202 asmlinkage long sys32_getgroups16(int gidsetsize, u16 __user *grouplist) in sys32_getgroups16() argument
206 if (gidsetsize < 0) in sys32_getgroups16()
211 if (gidsetsize) { in sys32_getgroups16()
212 if (i > gidsetsize) { in sys32_getgroups16()
226 asmlinkage long sys32_setgroups16(int gidsetsize, u16 __user *grouplist) in sys32_setgroups16() argument
233 if ((unsigned)gidsetsize > NGROUPS_MAX) in sys32_setgroups16()
236 group_info = groups_alloc(gidsetsize); in sys32_setgroups16()
Dcompat_linux.h180 long sys32_getgroups16(int gidsetsize, u16 __user *grouplist);
181 long sys32_setgroups16(int gidsetsize, u16 __user *grouplist);
/linux-3.4.99/arch/powerpc/kernel/
Dsys_ppc32.c284 asmlinkage long compat_sys_getgroups(u32 gidsetsize, gid_t __user *grouplist) in compat_sys_getgroups() argument
286 return sys_getgroups((int)gidsetsize, grouplist); in compat_sys_getgroups()
450 asmlinkage long compat_sys_setgroups(u32 gidsetsize, gid_t __user *grouplist) in compat_sys_setgroups() argument
452 return sys_setgroups((int)gidsetsize, grouplist); in compat_sys_setgroups()
/linux-3.4.99/include/linux/
Dsyscalls.h278 asmlinkage long sys_getgroups(int gidsetsize, gid_t __user *grouplist);
290 asmlinkage long sys_setgroups(int gidsetsize, gid_t __user *grouplist);
550 asmlinkage long sys_getgroups16(int gidsetsize, old_gid_t __user *grouplist);
551 asmlinkage long sys_setgroups16(int gidsetsize, old_gid_t __user *grouplist);