add personality syscall

This commit is contained in:
rofl0r 2012-12-06 21:01:06 +01:00
parent a1990e1e83
commit 6fb88a955a
2 changed files with 13 additions and 0 deletions

View File

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

7
src/misc/personality.c Normal file
View File

@ -0,0 +1,7 @@
#include "syscall.h"
#ifdef SYS_personality
int personality(unsigned long persona)
{
return syscall(SYS_personality, persona);
}
#endif