summaryrefslogtreecommitdiff
path: root/lib/libc/unistd/setegid.c
blob: 50fa2a5264fd4991ec65e9b748aa5a4dd1b92a05 (plain)
1
2
3
4
5
6
7
8
9
#include "asm/unistd_64.h" // for __NR_setresgid

#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);
}