about summary refs log tree commit diff
path: root/src/unistd/getgroups.c
blob: 6f19870e6f9160999f7365a022a820163ae9c1f9 (plain) (blame)
1
2
3
4
5
6
7
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);
}