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
etc/services - sync with NetBSD-8
[minix.git]
/
minix
/
lib
/
libc
/
sys
/
setgroups.c
blob
ed5ac47d0561f8a18779742d451d197bf48c22f1
1
#include <sys/cdefs.h>
2
#include <lib.h>
3
#include
"namespace.h"
4
5
#include <string.h>
6
#include <unistd.h>
7
8
int
setgroups
(
int
ngroups
,
const
gid_t
*
gidset
)
9
{
10
message m
;
11
12
memset
(&
m
,
0
,
sizeof
(
m
));
13
m
.
m_lc_pm_groups
.
ptr
= (
vir_bytes
)
gidset
;
14
m
.
m_lc_pm_groups
.
num
=
ngroups
;
15
16
return
(
_syscall
(
PM_PROC_NR
,
PM_SETGROUPS
, &
m
));
17
}