vm: fix failed alloc condition
[minix.git] / lib / libc / sys-minix / setuid.c
blob0d066bea8cd76cd2dde54b8cca41e2193ff21cf7
1 #include <sys/cdefs.h>
2 #include <lib.h>
3 #include "namespace.h"
5 #include <unistd.h>
7 #ifdef __weak_alias
8 __weak_alias(setuid, _setuid)
9 __weak_alias(seteuid, _seteuid)
10 #endif
12 int setuid(uid_t usr)
14 message m;
16 m.m1_i1 = usr;
17 return(_syscall(PM_PROC_NR, SETUID, &m));
20 int seteuid(uid_t usr)
22 message m;
24 m.m1_i1 = usr;
25 return(_syscall(PM_PROC_NR, SETEUID, &m));