summaryrefslogtreecommitdiff
path: root/src/unistd/setregid.c
blob: 158753bea0e3d0a14d69db95f79c51c7c912c952 (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 syscall2(__NR_setregid, rgid, egid);
}