diff options
Diffstat (limited to 'src/linux')
-rw-r--r-- | src/linux/arch_prctl.c | 9 | ||||
-rw-r--r-- | src/linux/personality.c | 7 |
2 files changed, 16 insertions, 0 deletions
diff --git a/src/linux/arch_prctl.c b/src/linux/arch_prctl.c new file mode 100644 index 00000000..a6ab2644 --- /dev/null +++ b/src/linux/arch_prctl.c @@ -0,0 +1,9 @@ +#include "syscall.h" +#ifdef SYS_arch_prctl +#include "libc.h" +int __arch_prctl(int code, unsigned long addr) +{ + return syscall(SYS_arch_prctl, code, addr); +} +weak_alias(__arch_prctl, arch_prctl); +#endif diff --git a/src/linux/personality.c b/src/linux/personality.c new file mode 100644 index 00000000..06851f58 --- /dev/null +++ b/src/linux/personality.c @@ -0,0 +1,7 @@ +#include "syscall.h" +#ifdef SYS_personality +int personality(unsigned long persona) +{ + return syscall(SYS_personality, persona); +} +#endif |