summaryrefslogtreecommitdiff
path: root/libc/sysdeps/linux/common/setegid.c
diff options
context:
space:
mode:
Diffstat (limited to 'libc/sysdeps/linux/common/setegid.c')
-rw-r--r--libc/sysdeps/linux/common/setegid.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/libc/sysdeps/linux/common/setegid.c b/libc/sysdeps/linux/common/setegid.c
new file mode 100644
index 000000000..3eebf60fb
--- /dev/null
+++ b/libc/sysdeps/linux/common/setegid.c
@@ -0,0 +1,6 @@
+#include <unistd.h>
+
+int setegid(gid_t gid)
+{
+ return __setregid(-1, gid);
+}