repo.or.cz
/
minix.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
some coverity fixes.
[minix.git]
/
lib
/
libc
/
sys-minix
/
setgroups.c
blob
6080596ec93eda2fdfe2c85ffdcd8a6d29563840
1
#include <sys/cdefs.h>
2
#include <lib.h>
3
#include
"namespace.h"
4
5
#ifdef __weak_alias
6
__weak_alias
(
setgroups
,
_setgroups
)
7
#endif
8
9
#include <unistd.h>
10
11
int
setgroups
(
int
ngroups
,
const
gid_t
*
gidset
)
12
{
13
message m
;
14
15
m
.
m1_p1
= (
char
*)
__UNCONST
(
gidset
);
16
m
.
m1_i1
=
ngroups
;
17
18
return
(
_syscall
(
PM_PROC_NR
,
SETGROUPS
, &
m
));
19
}
20
21