add arch_prctl syscall (amd64/x32 only)
authorrofl0r <retnyg@gmx.net>
Thu, 6 Dec 2012 20:07:19 +0000 (21:07 +0100)
committerrofl0r <retnyg@gmx.net>
Thu, 6 Dec 2012 20:12:24 +0000 (21:12 +0100)
src/misc/arch_prctl.c [new file with mode: 0644]

diff --git a/src/misc/arch_prctl.c b/src/misc/arch_prctl.c
new file mode 100644 (file)
index 0000000..2868d66
--- /dev/null
@@ -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