about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorrofl0r <retnyg@gmx.net>2012-12-06 21:07:19 +0100
committerrofl0r <retnyg@gmx.net>2012-12-06 21:12:24 +0100
commitb6f75ab07f56a6ed3701231bd48601f3bc45dce5 (patch)
tree0529f20c68d77c6caac81f1d78a039e67d07e810 /src
parent6fb88a955a112223d3304bdaedc067771024725b (diff)
downloadmusl-b6f75ab07f56a6ed3701231bd48601f3bc45dce5.tar.gz
musl-b6f75ab07f56a6ed3701231bd48601f3bc45dce5.tar.xz
musl-b6f75ab07f56a6ed3701231bd48601f3bc45dce5.zip
add arch_prctl syscall (amd64/x32 only)
Diffstat (limited to 'src')
-rw-r--r--src/misc/arch_prctl.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/misc/arch_prctl.c b/src/misc/arch_prctl.c
new file mode 100644
index 00000000..2868d668
--- /dev/null
+++ b/src/misc/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