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