source: trunk/minix/lib/posix/_setgid.c@ 20

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

Minix 3.1.2a

File size: 311 bytes
Line 
1#include <lib.h>
2#define setgid _setgid
3#define setegid _setegid
4#include <unistd.h>
5
6PUBLIC int setgid(grp)
7gid_t grp;
8{
9 message m;
10
11 m.m1_i1 = (int) grp;
12 return(_syscall(MM, SETGID, &m));
13}
14
15PUBLIC int setegid(grp)
16gid_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.