summaryrefslogblamecommitdiff
path: root/src/unistd/setgid.c
blob: 00c7a03a4a8ff92e7b529b3b30a20a5939b9099e (plain) (tree)
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_setgid32, gid, 0, 0, 0, 0, 0);
	return syscall1(__NR_setgid32, gid);
}