minix/lib/libc/posix/_setuid.c

22 lines
309 B
C

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