summaryrefslogtreecommitdiff
path: root/src/unistd/setresuid.c
blob: 497f759246e583f753799f97d3b11932f9c1acac (plain)
1
2
3
4
5
6
7
8
9
#define _GNU_SOURCE
#include <unistd.h>
#include "syscall.h"
#include "libc.h"

int setresuid(uid_t ruid, uid_t euid, uid_t suid)
{
	return __rsyscall(SYS_setresuid, ruid, euid, suid, 0, 0, 0);
}