summaryrefslogtreecommitdiff
path: root/src/unistd/setregid.c
blob: ff2607dc2459130eb4ac8af951a84b06c5d083a1 (plain) (blame)
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_setregid, rgid, egid, 0, 0, 0, 0);
	return syscall(SYS_setregid, rgid, egid);
}