projects
/
oweals
/
musl.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
yet another ugly legacy syscall rename...
[oweals/musl.git]
/
src
/
misc
/
getgrouplist.c
1
#include <grp.h>
2
3
/* FIXME */
4
5
int getgrouplist(const char *user, gid_t gid, gid_t *groups, int *ngroups)
6
{
7
if (*ngroups<1) return -1;
8
*groups = gid;
9
*ngroups = 1;
10
return 0;
11
}