about summary refs log tree commit diff
path: root/src/linux/setgroups.c
blob: 2368aa0d772a8a6b9c3523572deca96945dc1f91 (plain) (blame)
1
2
3
4
5
6
7
8
9
#include <unistd.h>
#define SYSCALL_STANDALONE
#include "syscall.h"

int setgroups(int count, const gid_t list[])
{
	/* this depends on our gid_t being 32bit */
	return syscall2(__NR_setgroups32, count, (long)list);
}