__aeabi_ldivmod: fix sign logic
[minix.git] / lib / libc / sys-minix / setgroups.c
blob6080596ec93eda2fdfe2c85ffdcd8a6d29563840
1 #include <sys/cdefs.h>
2 #include <lib.h>
3 #include "namespace.h"
5 #ifdef __weak_alias
6 __weak_alias(setgroups, _setgroups)
7 #endif
9 #include <unistd.h>
11 int setgroups(int ngroups, const gid_t *gidset)
13 message m;
15 m.m1_p1 = (char *) __UNCONST(gidset);
16 m.m1_i1 = ngroups;
18 return(_syscall(PM_PROC_NR, SETGROUPS, &m));