diff options
-rw-r--r-- | include/sys/personality.h | 6 | ||||
-rw-r--r-- | src/misc/personality.c | 7 |
2 files changed, 13 insertions, 0 deletions
diff --git a/include/sys/personality.h b/include/sys/personality.h new file mode 100644 index 00000000..852c0248 --- /dev/null +++ b/include/sys/personality.h @@ -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 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 |