aboutsummaryrefslogtreecommitdiff
path: root/src/unistd/setregid.c
blob: d25dab76ac96d7c61786f7ffb22f20f876124d8c (plain)
1
2
3
4
5
6
7
8
9
#include <unistd.h>
#include "syscall.h"
#include "libc.h"

int setregid(gid_t rgid, gid_t egid)
{
	if (libc.rsyscall) return libc.rsyscall(__NR_setregid32, rgid, egid, 0, 0, 0, 0);
	return syscall2(__NR_setregid32, rgid, egid);
}