summaryrefslogtreecommitdiffstats
path: root/libc-top-half/musl/src/unistd/setreuid.c
blob: 3fcc59e292a7e5bef05a6af8ffad91ffacfc9ebe (plain)
1
2
3
4
5
6
7
8
#include <unistd.h>
#include "syscall.h"
#include "libc.h"

int setreuid(uid_t ruid, uid_t euid)
{
	return __setxid(SYS_setreuid, ruid, euid, 0);
}