about summary refs log tree commit diff
path: root/src/misc/arch_prctl.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/misc/arch_prctl.c')
-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