Skip to content
Snippets Groups Projects
Commit 96116b73 authored by Basile Desloges's avatar Basile Desloges Committed by Andre Maroneze
Browse files

[libc] Add getgrouplist

parent 0343b44e
No related branches found
No related tags found
No related merge requests found
...@@ -47,6 +47,14 @@ extern void setgrent(void); ...@@ -47,6 +47,14 @@ extern void setgrent(void);
/* BSD function */ /* BSD function */
extern int initgroups (const char *user, gid_t group); extern int initgroups (const char *user, gid_t group);
/*@
// missing: ... \from groups database
assigns \result \from indirect:user[0..], indirect:group, indirect:*ngroups;
assigns groups[0 .. \old(*ngroups) - 1], *ngroups
\from indirect:user[0..], group, *ngroups;
*/
extern int getgrouplist(const char *user, gid_t group,
gid_t *groups, int *ngroups);
__END_DECLS __END_DECLS
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment