source:
trunk/minix/lib/posix/_setgid.c@
12
Last change on this file since 12 was 9, checked in by , 14 years ago | |
---|---|
File size: 311 bytes |
Line | |
---|---|
1 | #include <lib.h> |
2 | #define setgid _setgid |
3 | #define setegid _setegid |
4 | #include <unistd.h> |
5 | |
6 | PUBLIC int setgid(grp) |
7 | gid_t grp; |
8 | { |
9 | message m; |
10 | |
11 | m.m1_i1 = (int) grp; |
12 | return(_syscall(MM, SETGID, &m)); |
13 | } |
14 | |
15 | PUBLIC int setegid(grp) |
16 | gid_t grp; |
17 | { |
18 | message m; |
19 | |
20 | m.m1_i1 = (int) grp; |
21 | return(_syscall(MM, SETEGID, &m)); |
22 | } |
Note:
See TracBrowser
for help on using the repository browser.