debloat src/thread tree but putting lots of junk in one file
[oweals/musl.git] / src / linux / setgroups.c
index 2368aa0d772a8a6b9c3523572deca96945dc1f91..9758940af2c57eaa4a836d8e34cc34ea073bba3c 100644 (file)
@@ -1,9 +1,7 @@
 #include <unistd.h>
-#define SYSCALL_STANDALONE
 #include "syscall.h"
 
-int setgroups(int count, const gid_t list[])
+int setgroups(size_t count, const gid_t list[])
 {
-       /* this depends on our gid_t being 32bit */
-       return syscall2(__NR_setgroups32, count, (long)list);
+       return syscall(SYS_setgroups, count, list);
 }