summaryrefslogtreecommitdiff
path: root/LibC/unistd.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/unistd.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/unistd.h')
-rw-r--r--LibC/unistd.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/LibC/unistd.h b/LibC/unistd.h
index d16663140c..81e9146ae8 100644
--- a/LibC/unistd.h
+++ b/LibC/unistd.h
@@ -21,6 +21,8 @@ gid_t getegid();
uid_t getuid();
gid_t getgid();
pid_t getpid();
+int getgroups(int size, gid_t list[]);
+int setgroups(size_t, const gid_t*);
pid_t tcgetpgrp(int fd);
int tcsetpgrp(int fd, pid_t pgid);
int open(const char* path, int options, ...);