From: Rich Felker Date: Fri, 7 Dec 2012 21:17:16 +0000 (-0500) Subject: move new linux syscall wrapper functions to proper source dir X-Git-Tag: v0.9.9~68 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=55aef73f4789a97dc99f30e72776e55924255e1b;p=oweals%2Fmusl.git move new linux syscall wrapper functions to proper source dir --- diff --git a/src/linux/arch_prctl.c b/src/linux/arch_prctl.c new file mode 100644 index 00000000..a6ab2644 --- /dev/null +++ b/src/linux/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 diff --git a/src/linux/personality.c b/src/linux/personality.c new file mode 100644 index 00000000..06851f58 --- /dev/null +++ b/src/linux/personality.c @@ -0,0 +1,7 @@ +#include "syscall.h" +#ifdef SYS_personality +int personality(unsigned long persona) +{ + return syscall(SYS_personality, persona); +} +#endif diff --git a/src/misc/arch_prctl.c b/src/misc/arch_prctl.c deleted file mode 100644 index a6ab2644..00000000 --- a/src/misc/arch_prctl.c +++ /dev/null @@ -1,9 +0,0 @@ -#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 diff --git a/src/misc/personality.c b/src/misc/personality.c deleted file mode 100644 index 06851f58..00000000 --- a/src/misc/personality.c +++ /dev/null @@ -1,7 +0,0 @@ -#include "syscall.h" -#ifdef SYS_personality -int personality(unsigned long persona) -{ - return syscall(SYS_personality, persona); -} -#endif