2005-04-21 16:53:53 +02:00
|
|
|
#include <lib.h>
|
|
|
|
#define setgid _setgid
|
2005-12-13 10:48:29 +01:00
|
|
|
#define setegid _setegid
|
2005-04-21 16:53:53 +02:00
|
|
|
#include <unistd.h>
|
|
|
|
|
2010-04-13 12:58:41 +02:00
|
|
|
PUBLIC int setgid(gid_t grp)
|
2005-04-21 16:53:53 +02:00
|
|
|
{
|
|
|
|
message m;
|
|
|
|
|
|
|
|
m.m1_i1 = (int) grp;
|
2010-06-08 15:58:01 +02:00
|
|
|
return(_syscall(PM_PROC_NR, SETGID, &m));
|
2005-04-21 16:53:53 +02:00
|
|
|
}
|
2005-12-13 10:48:29 +01:00
|
|
|
|
2010-04-13 12:58:41 +02:00
|
|
|
PUBLIC int setegid(gid_t grp)
|
2005-12-13 10:48:29 +01:00
|
|
|
{
|
|
|
|
message m;
|
|
|
|
|
|
|
|
m.m1_i1 = (int) grp;
|
2010-06-08 15:58:01 +02:00
|
|
|
return(_syscall(PM_PROC_NR, SETEGID, &m));
|
2005-12-13 10:48:29 +01:00
|
|
|
}
|