minix/lib/libc/posix/_setuid.c
2010-06-08 13:58:01 +00:00

20 lines
305 B
C

#include <lib.h>
#define setuid _setuid
#define seteuid _seteuid
#include <unistd.h>
PUBLIC int setuid(uid_t usr)
{
message m;
m.m1_i1 = usr;
return(_syscall(PM_PROC_NR, SETUID, &m));
}
PUBLIC int seteuid(uid_t usr)
{
message m;
m.m1_i1 = usr;
return(_syscall(PM_PROC_NR, SETEUID, &m));
}