summaryrefslogtreecommitdiff
path: root/05/musl-0.6.0/src/unistd/setgid.c
blob: 42976d9510c2b97832d9d2585861174c230c2838 (plain)
1
2
3
4
5
6
7
8
9
#include <unistd.h>
#include "syscall.h"
#include "libc.h"

int setgid(gid_t gid)
{
	if (libc.rsyscall) return libc.rsyscall(__NR_setgid, gid, 0, 0, 0, 0, 0);
	return syscall1(__NR_setgid, gid);
}