source: trunk/minix/lib/posix/_setuid.c@ 10

Last change on this file since 10 was 9, checked in by Mattia Monga, 13 years ago

Minix 3.1.2a

File size: 309 bytes
Line 
1#include <lib.h>
2#define setuid _setuid
3#define seteuid _seteuid
4#include <unistd.h>
5
6PUBLIC int setuid(usr)
7_mnx_Uid_t usr;
8{
9 message m;
10
11 m.m1_i1 = usr;
12 return(_syscall(MM, SETUID, &m));
13}
14
15PUBLIC int seteuid(usr)
16_mnx_Uid_t usr;
17{
18 message m;
19
20 m.m1_i1 = usr;
21 return(_syscall(MM, SETEUID, &m));
22}
Note: See TracBrowser for help on using the repository browser.