projects
/
oweals
/
musl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6fb88a9
)
add arch_prctl syscall (amd64/x32 only)
author
rofl0r
<retnyg@gmx.net>
Thu, 6 Dec 2012 20:07:19 +0000
(21:07 +0100)
committer
rofl0r
<retnyg@gmx.net>
Thu, 6 Dec 2012 20:12:24 +0000
(21:12 +0100)
src/misc/arch_prctl.c
[new file with mode: 0644]
patch
|
blob
diff --git a/src/misc/arch_prctl.c
b/src/misc/arch_prctl.c
new file mode 100644
(file)
index 0000000..
2868d66
--- /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