aboutsummaryrefslogtreecommitdiff
path: root/src/unistd/setegid.c
blob: 7a9ea3952b8528f0f9faf165126f5f5d49a35f89 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#include <unistd.h>
#include "libc.h"
#include "syscall.h"

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


#ifdef TEST
int
main(void) {
	return 0;
}
#endif