about summary refs log tree commit diff
path: root/src/linux
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2012-12-07 16:17:16 -0500
committerRich Felker <dalias@aerifal.cx>2012-12-07 16:17:16 -0500
commit55aef73f4789a97dc99f30e72776e55924255e1b (patch)
treedc20c965027bcc0d1471496784b2237897234d33 /src/linux
parent03b0f13e908eb61c1218db5e4478f0162fa98f5a (diff)
downloadmusl-55aef73f4789a97dc99f30e72776e55924255e1b.tar.gz
musl-55aef73f4789a97dc99f30e72776e55924255e1b.tar.xz
musl-55aef73f4789a97dc99f30e72776e55924255e1b.zip
move new linux syscall wrapper functions to proper source dir
Diffstat (limited to 'src/linux')
-rw-r--r--src/linux/arch_prctl.c9
-rw-r--r--src/linux/personality.c7
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