From 0a18b6589de2b9c9e3a6dbaf852d2931af6b34a4 Mon Sep 17 00:00:00 2001 From: "Peter S. Mazinger" Date: Sat, 16 Apr 2011 02:33:16 +0200 Subject: setgroups.c: move around some headers, always_inline syscall Signed-off-by: Peter S. Mazinger Signed-off-by: Bernhard Reutner-Fischer --- libc/sysdeps/linux/common/setgroups.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'libc/sysdeps') diff --git a/libc/sysdeps/linux/common/setgroups.c b/libc/sysdeps/linux/common/setgroups.c index 72c987837..d97859f0d 100644 --- a/libc/sysdeps/linux/common/setgroups.c +++ b/libc/sysdeps/linux/common/setgroups.c @@ -8,12 +8,9 @@ */ #include -#include -#include -#include #ifdef __USE_BSD - +#include #if defined(__NR_setgroups32) # undef __NR_setgroups @@ -24,11 +21,14 @@ _syscall2(int, setgroups, size_t, size, const gid_t *, list) _syscall2(int, setgroups, size_t, size, const gid_t *, list) #else +# include +# include +# include +# include - -#define __NR___syscall_setgroups __NR_setgroups -static __inline__ _syscall2(int, __syscall_setgroups, - size_t, size, const __kernel_gid_t *, list) +# define __NR___syscall_setgroups __NR_setgroups +static __always_inline _syscall2(int, __syscall_setgroups, + size_t, size, const __kernel_gid_t *, list) int setgroups(size_t size, const gid_t *groups) { -- cgit v1.2.3