source:
trunk/minix/lib/posix/_setuid.c@
20
Last change on this file since 20 was 9, checked in by , 14 years ago | |
---|---|
File size: 309 bytes |
Line | |
---|---|
1 | #include <lib.h> |
2 | #define setuid _setuid |
3 | #define seteuid _seteuid |
4 | #include <unistd.h> |
5 | |
6 | PUBLIC 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 | |
15 | PUBLIC 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.