diff options
Diffstat (limited to 'src/unistd/getgroups.c')
-rw-r--r-- | src/unistd/getgroups.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/unistd/getgroups.c b/src/unistd/getgroups.c new file mode 100644 index 00000000..6f19870e --- /dev/null +++ b/src/unistd/getgroups.c @@ -0,0 +1,8 @@ +#include <unistd.h> +#include "syscall.h" + +int getgroups(int count, gid_t list[]) +{ + /* this depends on our gid_t being 32bit */ + return syscall2(__NR_getgroups32, count, (long)list); +} |