summaryrefslogtreecommitdiff
path: root/src/unistd/setresgid.c
blob: 3c85a82885cd35d9a260153a33138c1106ae72c9 (plain)
1
2
3
4
5
6
7
8
9
10
#define _GNU_SOURCE
#include <unistd.h>
#include "syscall.h"
#include "libc.h"

int setresgid(gid_t rgid, gid_t egid, gid_t sgid)
{
	if (libc.rsyscall) return libc.rsyscall(__NR_setresgid, rgid, egid, sgid, 0, 0, 0);
	return syscall(SYS_setresgid, rgid, egid, sgid);
}