about summary refs log tree commit diff
path: root/src/misc/personality.c
diff options
context:
space:
mode:
authorrofl0r <retnyg@gmx.net>2012-12-06 21:01:06 +0100
committerrofl0r <retnyg@gmx.net>2012-12-06 21:01:06 +0100
commit6fb88a955a112223d3304bdaedc067771024725b (patch)
tree32c15ea3a11bbd8306cfc8a8ba579468d36c4bb9 /src/misc/personality.c
parenta1990e1e833624b26b0ca55aa7fce56bb594f814 (diff)
downloadmusl-6fb88a955a112223d3304bdaedc067771024725b.tar.gz
musl-6fb88a955a112223d3304bdaedc067771024725b.tar.xz
musl-6fb88a955a112223d3304bdaedc067771024725b.zip
add personality syscall
Diffstat (limited to 'src/misc/personality.c')
-rw-r--r--src/misc/personality.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/misc/personality.c b/src/misc/personality.c
new file mode 100644
index 00000000..6e13a77d
--- /dev/null
+++ b/src/misc/personality.c
@@ -0,0 +1,7 @@
+#include "syscall.h"
+#ifdef SYS_personality
+int personality(unsigned long persona)
+{
+	return syscall(SYS_personality, persona);	
+}
+#endif