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
__aeabi_ldivmod: fix sign logic
[minix.git]
/
lib
/
libc
/
sys-minix
/
getgroups.c
blob
87f83502a83de762f27bcebc7c3c6c2b6fdb5a45
1
/*
2
getgroups.c
3
*/
4
5
#include <sys/cdefs.h>
6
#include
"namespace.h"
7
#include <lib.h>
8
9
#include <unistd.h>
10
11
#ifdef __weak_alias
12
__weak_alias
(
getgroups
,
_getgroups
)
13
#endif
14
15
16
int
getgroups
(
int
ngroups
,
gid_t
*
arr
)
17
{
18
message m
;
19
m
.
m1_i1
=
ngroups
;
20
m
.
m1_p1
= (
char
*)
arr
;
21
22
return
(
_syscall
(
PM_PROC_NR
,
GETGROUPS
, &
m
));
23
}
24