summaryrefslogtreecommitdiff
path: root/LibC/grp.h
diff options
context:
space:
mode:
authorAndreas Kling <awesomekling@gmail.com>2018-11-07 01:38:51 +0100
committerAndreas Kling <awesomekling@gmail.com>2018-11-07 01:38:51 +0100
commita7f1d892a956041a74f93ec70afb477a1d161d1d (patch)
tree7435b65cb3700f8d50b09f992b8974e68f93e886 /LibC/grp.h
parentd3bd3791cb353966957ced0d208aa51107fe9ffc (diff)
downloadserenity-a7f1d892a956041a74f93ec70afb477a1d161d1d.zip
Add some basic setgroups(), getgroups() and initgroups().
Also teach /bin/id to print the user's supplemental groups.
Diffstat (limited to 'LibC/grp.h')
-rw-r--r--LibC/grp.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/LibC/grp.h b/LibC/grp.h
index e29d4b9545..176907baa4 100644
--- a/LibC/grp.h
+++ b/LibC/grp.h
@@ -18,4 +18,6 @@ void endgrent();
struct group* getgrnam(const char* name);
struct group* getgrgid(gid_t);
+int initgroups(const char* user, gid_t);
+
__END_DECLS