minix/lib/other/_setgroups.c

20 lines
244 B
C
Raw Normal View History

/*
setgroups.c
*/
#include <lib.h>
#define setgroups _setgroups
#include <unistd.h>
int setgroups(int ngroups, const gid_t *gidset)
{
message m;
2009-12-22 00:39:08 +01:00
m.m1_p1 = (char *) gidset;
m.m1_i1 = ngroups;
return(_syscall(MM, SETGROUPS, &m));
}