summaryrefslogtreecommitdiff
path: root/include/sys/fsuid.h
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2012-01-28 21:09:50 -0500
committerRich Felker <dalias@aerifal.cx>2012-01-28 21:09:50 -0500
commit4619901ec4b82d233a24e26ef3df01ddadc2d013 (patch)
tree837c6280bcbf1a92214a1b52ff73eca97eedd46b /include/sys/fsuid.h
parentc3db56c4cb2b5eb06cbf46b8fe526f4fe7e10321 (diff)
downloadmusl-4619901ec4b82d233a24e26ef3df01ddadc2d013.tar.gz
musl-4619901ec4b82d233a24e26ef3df01ddadc2d013.tar.bz2
musl-4619901ec4b82d233a24e26ef3df01ddadc2d013.tar.xz
musl-4619901ec4b82d233a24e26ef3df01ddadc2d013.zip
add linux setfs[ug]id syscall wrappers
patch by Jeremy Huntwork
Diffstat (limited to 'include/sys/fsuid.h')
-rw-r--r--include/sys/fsuid.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/include/sys/fsuid.h b/include/sys/fsuid.h
new file mode 100644
index 00000000..f62184c5
--- /dev/null
+++ b/include/sys/fsuid.h
@@ -0,0 +1,20 @@
+#ifndef _FSUID_H
+#define _FSUID_H
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+#define __NEED_uid_t
+#define __NEED_gid_t
+
+#include <bits/alltypes.h>
+
+int setfsuid(uid_t);
+int setfsgid(gid_t);
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif