about summary refs log tree commit diff
path: root/src/unistd/setgid.c
blob: 42976d9510c2b97832d9d2585861174c230c2838 (plain) (blame)
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);
}