diff options
author | rofl0r <retnyg@gmx.net> | 2012-12-06 21:07:19 +0100 |
---|---|---|
committer | rofl0r <retnyg@gmx.net> | 2012-12-06 21:12:24 +0100 |
commit | b6f75ab07f56a6ed3701231bd48601f3bc45dce5 (patch) | |
tree | 0529f20c68d77c6caac81f1d78a039e67d07e810 /src | |
parent | 6fb88a955a112223d3304bdaedc067771024725b (diff) | |
download | musl-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.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 |