minix/lib/nbsd_libc/sys-minix/setgroups.c
Thomas Veerman 92b61c816d Fix many more comiler warnings
Most warnings were harmless, some real bugs. Test set should now compile
cleanly with ack, gcc, and clang.
2011-11-28 10:07:55 +00:00

21 lines
326 B
C

#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;
m.m1_p1 = (char *) __UNCONST(gidset);
m.m1_i1 = ngroups;
return(_syscall(PM_PROC_NR, SETGROUPS, &m));
}