summaryrefslogtreecommitdiff
path: root/lib/libc/unistd/setegid.c
blob: c5159de709dbd1111a298abd1c5b865b980b4de6 (plain)
1
2
3
4
5
6
7
8
9
10



#include <syscall.h> // for __syscall_3, syscall
#include <unistd.h>  // for gid_t, setegid

int setegid(gid_t gid)
{
	return syscall(setresgid, -1, gid, -1);
}