move new linux syscall wrapper functions to proper source dir
authorRich Felker <dalias@aerifal.cx>
Fri, 7 Dec 2012 21:17:16 +0000 (16:17 -0500)
committerRich Felker <dalias@aerifal.cx>
Fri, 7 Dec 2012 21:17:16 +0000 (16:17 -0500)
src/linux/arch_prctl.c [new file with mode: 0644]
src/linux/personality.c [new file with mode: 0644]
src/misc/arch_prctl.c [deleted file]
src/misc/personality.c [deleted file]

diff --git a/src/linux/arch_prctl.c b/src/linux/arch_prctl.c
new file mode 100644 (file)
index 0000000..a6ab264
--- /dev/null
@@ -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 (file)
index 0000000..06851f5
--- /dev/null
@@ -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 (file)
index a6ab264..0000000
+++ /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 (file)
index 06851f5..0000000
+++ /dev/null
@@ -1,7 +0,0 @@
-#include "syscall.h"
-#ifdef SYS_personality
-int personality(unsigned long persona)
-{
-       return syscall(SYS_personality, persona);
-}
-#endif