__aeabi_ldivmod: fix sign logic
[minix.git] / lib / libc / sys-minix / getgroups.c
blob87f83502a83de762f27bcebc7c3c6c2b6fdb5a45
1 /*
2 getgroups.c
3 */
5 #include <sys/cdefs.h>
6 #include "namespace.h"
7 #include <lib.h>
9 #include <unistd.h>
11 #ifdef __weak_alias
12 __weak_alias(getgroups, _getgroups)
13 #endif
16 int getgroups(int ngroups, gid_t *arr)
18 message m;
19 m.m1_i1 = ngroups;
20 m.m1_p1 = (char *) arr;
22 return(_syscall(PM_PROC_NR, GETGROUPS, &m));