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

int setuid(uid_t uid)
{
	return __rsyscall(SYS_setuid, uid, 0, 0, 0, 0, 0);
}