minix/lib/libc/posix/_setuid.c
Kees van Reeuwijk bc314bda91 Remove the types Dev_t, _mnx_Gui, _mnx_Uid, and similar.
Use ANSI-style function declarations where necessary.
2010-04-13 10:58:41 +00:00

20 lines
289 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(MM, SETUID, &m));
}
PUBLIC int seteuid(uid_t usr)
{
message m;
m.m1_i1 = usr;
return(_syscall(MM, SETEUID, &m));
}