diff options
author | Rich Felker <dalias@aerifal.cx> | 2012-12-07 16:17:16 -0500 |
---|---|---|
committer | Rich Felker <dalias@aerifal.cx> | 2012-12-07 16:17:16 -0500 |
commit | 55aef73f4789a97dc99f30e72776e55924255e1b (patch) | |
tree | dc20c965027bcc0d1471496784b2237897234d33 /src/linux | |
parent | 03b0f13e908eb61c1218db5e4478f0162fa98f5a (diff) | |
download | musl-55aef73f4789a97dc99f30e72776e55924255e1b.zip musl-55aef73f4789a97dc99f30e72776e55924255e1b.tar.gz musl-55aef73f4789a97dc99f30e72776e55924255e1b.tar.bz2 |
move new linux syscall wrapper functions to proper source dir
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 0000000..a6ab264 --- /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 0000000..06851f5 --- /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 |