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

int setegid(gid_t egid)
{
	return __setxid(SYS_setresgid, -1, egid, -1);
}