2011-02-17 18:11:09 +01:00
|
|
|
#include <sys/cdefs.h>
|
|
|
|
#include <lib.h>
|
|
|
|
#include "namespace.h"
|
|
|
|
|
|
|
|
#ifdef __weak_alias
|
|
|
|
__weak_alias(setgroups, _setgroups)
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#include <unistd.h>
|
|
|
|
|
|
|
|
int setgroups(int ngroups, const gid_t *gidset)
|
|
|
|
{
|
|
|
|
message m;
|
|
|
|
|
2011-11-28 11:07:55 +01:00
|
|
|
m.m1_p1 = (char *) __UNCONST(gidset);
|
2011-02-17 18:11:09 +01:00
|
|
|
m.m1_i1 = ngroups;
|
|
|
|
|
|
|
|
return(_syscall(PM_PROC_NR, SETGROUPS, &m));
|
|
|
|
}
|
|
|
|
|
|
|
|
|