2005-04-21 16:53:53 +02:00
|
|
|
#include <lib.h>
|
|
|
|
#define setuid _setuid
|
2005-12-13 10:48:29 +01:00
|
|
|
#define seteuid _seteuid
|
2005-04-21 16:53:53 +02:00
|
|
|
#include <unistd.h>
|
|
|
|
|
|
|
|
PUBLIC int setuid(usr)
|
2005-06-23 13:07:31 +02:00
|
|
|
_mnx_Uid_t usr;
|
2005-04-21 16:53:53 +02:00
|
|
|
{
|
|
|
|
message m;
|
|
|
|
|
|
|
|
m.m1_i1 = usr;
|
|
|
|
return(_syscall(MM, SETUID, &m));
|
|
|
|
}
|
2005-12-13 10:48:29 +01:00
|
|
|
|
|
|
|
PUBLIC int seteuid(usr)
|
|
|
|
_mnx_Uid_t usr;
|
|
|
|
{
|
|
|
|
message m;
|
|
|
|
|
|
|
|
m.m1_i1 = usr;
|
|
|
|
return(_syscall(MM, SETEUID, &m));
|
|
|
|
}
|