mirror of
git://git.musl-libc.org/musl
synced 2025-03-06 20:48:29 +01:00
add arch_prctl syscall (amd64/x32 only)
This commit is contained in:
parent
6fb88a955a
commit
b6f75ab07f
1 changed files with 9 additions and 0 deletions
9
src/misc/arch_prctl.c
Normal file
9
src/misc/arch_prctl.c
Normal file
|
@ -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
|
Loading…
Add table
Reference in a new issue