projects
/
musl
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
make fork properly initialize the main thread in the child process
[musl]
/
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
}