summaryrefslogtreecommitdiff
path: root/src/unistd/setgid.c
blob: bae4616adb3b9432095aa35f35aeeed36b6e17b3 (plain) (blame)
1
2
3
4
5
6
7
8
#include <unistd.h>
#include "syscall.h"
#include "libc.h"

int setgid(gid_t gid)
{
	return __setxid(SYS_setgid, gid, 0, 0);
}