add personality syscall
authorrofl0r <retnyg@gmx.net>
Thu, 6 Dec 2012 20:01:06 +0000 (21:01 +0100)
committerrofl0r <retnyg@gmx.net>
Thu, 6 Dec 2012 20:01:06 +0000 (21:01 +0100)
include/sys/personality.h [new file with mode: 0644]
src/misc/personality.c [new file with mode: 0644]

diff --git a/include/sys/personality.h b/include/sys/personality.h
new file mode 100644 (file)
index 0000000..852c024
--- /dev/null
@@ -0,0 +1,6 @@
+#ifndef _PERSONALITY_H
+#define _PERSONALITY_H
+
+int personality(unsigned long);
+
+#endif
diff --git a/src/misc/personality.c b/src/misc/personality.c
new file mode 100644 (file)
index 0000000..6e13a77
--- /dev/null
@@ -0,0 +1,7 @@
+#include "syscall.h"
+#ifdef SYS_personality
+int personality(unsigned long persona)
+{
+       return syscall(SYS_personality, persona);       
+}
+#endif