blob: 9e9da61fac39a1870c22d5c8e3065aaee815097f (
plain) (
tree)
|
|
#include <unistd.h>
#include "syscall.h"
#include "libc.h"
int setuid(uid_t uid)
{
if (libc.rsyscall) return libc.rsyscall(__NR_setuid, uid, 0, 0, 0, 0, 0);
return syscall1(__NR_setuid, uid);
}
|