Browse Source

add personality syscall

rofl0r 12 years ago
parent
commit
6fb88a955a
2 changed files with 13 additions and 0 deletions
  1. 6 0
      include/sys/personality.h
  2. 7 0
      src/misc/personality.c

+ 6 - 0
include/sys/personality.h

@@ -0,0 +1,6 @@
+#ifndef _PERSONALITY_H
+#define _PERSONALITY_H
+
+int personality(unsigned long);
+
+#endif

+ 7 - 0
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