musl - musl - an implementation of the standard library for Linux-based systems

index : musl
musl - an implementation of the standard library for Linux-based systems
summary refs log tree commit diff
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
parent6fb88a955a112223d3304bdaedc067771024725b (diff)
downloadmusl-b6f75ab07f56a6ed3701231bd48601f3bc45dce5.tar.gz
add arch_prctl syscall (amd64/x32 only)
Diffstat
-rw-r--r--src/misc/arch_prctl.c 9
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
generated by cgit v1.2.1 (git 2.18.0) at 2025年10月04日 01:02:09 +0000

AltStyle によって変換されたページ (->オリジナル) /