]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
take sys_fork/sys_vfork/sys_clone prototypes to linux/syscalls.h
authorAl Viro <viro@zeniv.linux.org.uk>
Thu, 29 Nov 2012 04:04:26 +0000 (23:04 -0500)
committerAl Viro <viro@zeniv.linux.org.uk>
Thu, 29 Nov 2012 04:43:27 +0000 (23:43 -0500)
now it can be done...

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
12 files changed:
arch/arm64/include/asm/syscalls.h
arch/hexagon/include/asm/syscall.h
arch/microblaze/include/asm/Kbuild
arch/microblaze/include/asm/syscalls.h [deleted file]
arch/s390/kernel/entry.h
arch/tile/include/asm/syscalls.h
arch/tile/kernel/compat.c
arch/tile/kernel/sys.c
arch/x86/include/asm/syscalls.h
arch/x86/um/shared/sysdep/syscalls.h
include/asm-generic/syscalls.h
include/linux/syscalls.h

index 010ec127dc5b7cbc93ea7e7a210676dd1b8376c5..20d63b290665498c738f47d30209d335b05a2d43 100644 (file)
@@ -27,14 +27,6 @@ asmlinkage long sys_rt_sigreturn_wrapper(void);
 asmlinkage long sys_sigaltstack_wrapper(const stack_t __user *uss,
                                        stack_t __user *uoss);
 
-/*
- * AArch64 sys_clone implementation has a different prototype than the generic
- * one (additional TLS value argument).
- */
-asmlinkage long sys_clone(unsigned long, unsigned long, void __user *, int,
-              void __user *);
-#define sys_clone      sys_clone
-
 #include <asm-generic/syscalls.h>
 
 #endif /* __ASM_SYSCALLS_H */
index ec2ce6792cd6dd9d1a16ae391ebb2cb044e3bd88..4af9c7b6f13af9490e4bee7b9f608c7d467cecb3 100644 (file)
@@ -25,11 +25,6 @@ typedef long (*syscall_fn)(unsigned long, unsigned long,
        unsigned long, unsigned long,
        unsigned long, unsigned long);
 
-asmlinkage int sys_clone(unsigned long clone_flags, unsigned long newsp,
-                        unsigned long parent_tidp, unsigned long child_tidp);
-
-#define sys_clone      sys_clone
-
 #include <asm-generic/syscalls.h>
 
 extern void *sys_call_table[];
index 8653072d7e9f061479c5b11c5de056337cfdac7a..88a758a679227ccd237aad7e35818361dc59b701 100644 (file)
@@ -3,3 +3,4 @@ include include/asm-generic/Kbuild.asm
 header-y  += elf.h
 generic-y += clkdev.h
 generic-y += exec.h
+generic-y += syscalls.h
diff --git a/arch/microblaze/include/asm/syscalls.h b/arch/microblaze/include/asm/syscalls.h
deleted file mode 100644 (file)
index 27f2f4c..0000000
+++ /dev/null
@@ -1,16 +0,0 @@
-#ifndef __ASM_MICROBLAZE_SYSCALLS_H
-
-asmlinkage long microblaze_vfork(struct pt_regs *regs);
-asmlinkage long microblaze_clone(int flags, unsigned long stack,
-                                                       struct pt_regs *regs);
-asmlinkage long microblaze_execve(const char __user *filenamei,
-                                 const char __user *const __user *argv,
-                                 const char __user *const __user *envp,
-                                 struct pt_regs *regs);
-
-asmlinkage long sys_clone(int flags, unsigned long stack, struct pt_regs *regs);
-#define sys_clone sys_clone
-
-#include <asm-generic/syscalls.h>
-
-#endif /* __ASM_MICROBLAZE_SYSCALLS_H */
index d0d3f69a73463744edc3d3ec53fdd37dddd0adca..d8251b98f17a4ef3d925e0eb6bd8495be4d24eac 100644 (file)
@@ -54,10 +54,6 @@ long sys_s390_fadvise64(int fd, u32 offset_high, u32 offset_low,
 long sys_s390_fadvise64_64(struct fadvise64_64_args __user *args);
 long sys_s390_fallocate(int fd, int mode, loff_t offset, u32 len_high,
                        u32 len_low);
-long sys_fork(void);
-long sys_clone(unsigned long newsp, unsigned long clone_flags,
-              int __user *parent_tidptr, int __user *child_tidptr);
-long sys_vfork(void);
 long sys_sigsuspend(int history0, int history1, old_sigset_t mask);
 long sys_sigaction(int sig, const struct old_sigaction __user *act,
                   struct old_sigaction __user *oact);
index 394c76f2dc766ee3a04e99b2aa9a70effab2d231..4c8462a62cb6e6dc07b5c6280b4fe944d69098ae 100644 (file)
@@ -63,11 +63,8 @@ long sys_ftruncate64(unsigned int fd, loff_t length);
 #endif
 
 /* Provide versions of standard syscalls that use current_pt_regs(). */
-long sys_clone(unsigned long clone_flags, unsigned long newsp,
-               void __user *parent_tid, void __user *child_tid);
 long sys_rt_sigreturn(void);
 long sys_sigaltstack(const stack_t __user *, stack_t __user *);
-#define sys_clone sys_clone
 #define sys_rt_sigreturn sys_rt_sigreturn
 #define sys_sigaltstack sys_sigaltstack
 
index a2e805569d5d4cbad881b12faa620a2c5578ce23..9cd7cb6041c0ab84700a7bdc05d2a2431ef6c204 100644 (file)
@@ -104,7 +104,6 @@ long compat_sys_sched_rr_get_interval(compat_pid_t pid,
 
 /* Call the assembly trampolines where necessary. */
 #define compat_sys_rt_sigreturn _compat_sys_rt_sigreturn
-#undef sys_clone
 #define sys_clone _sys_clone
 
 /*
index 02ff5c0ef775091f43589361faa00d7760abe675..b881a7be24bdff566a89adacb8e2760d63ea120b 100644 (file)
@@ -109,7 +109,6 @@ SYSCALL_DEFINE6(mmap, unsigned long, addr, unsigned long, len,
 /* Call the assembly trampolines where necessary. */
 #undef sys_rt_sigreturn
 #define sys_rt_sigreturn _sys_rt_sigreturn
-#undef sys_clone
 #define sys_clone _sys_clone
 
 /*
index f7252d11416b28f2ed851a5ccabd49be863a22a5..2f8374718aa301b4244a51f4c1bd9ad6bd37fc25 100644 (file)
 asmlinkage long sys_ioperm(unsigned long, unsigned long, int);
 long sys_iopl(unsigned int, struct pt_regs *);
 
-/* kernel/process.c */
-asmlinkage long sys_fork(void);
-asmlinkage long sys_vfork(void);
-#ifdef CONFIG_CLONE_BACKWARDS
-asmlinkage long sys_clone(unsigned long, unsigned long, void __user *, int,
-              void __user *);
-#else
-asmlinkage long sys_clone(unsigned long, unsigned long, void __user *,
-              void __user *, int);
-#endif
-
 /* kernel/ldt.c */
 asmlinkage int sys_modify_ldt(int, void __user *, unsigned long);
 
index ca255a805ed936ea059312b0990e884bb2b07e1b..bd9a89b67e41f20bdd17b2f38f5c9543ef28c7b1 100644 (file)
@@ -1,5 +1,3 @@
-extern long sys_clone(unsigned long clone_flags, unsigned long newsp,
-              void __user *parent_tid, void __user *child_tid);
 #ifdef __i386__
 #include "syscalls_32.h"
 #else
index 77960333b1a1d78262570519c4c12e309fa29183..58f466ff00d363701155427cb7968515ef60c935 100644 (file)
@@ -8,18 +8,6 @@
  * Calling conventions for these system calls can differ, so
  * it's possible to override them.
  */
-#ifndef sys_clone
-asmlinkage long sys_clone(unsigned long clone_flags, unsigned long newsp,
-                       void __user *parent_tid, void __user *child_tid);
-#endif
-
-#ifndef sys_fork
-asmlinkage long sys_fork(void);
-#endif
-
-#ifndef sys_vfork
-asmlinkage long sys_vfork(void);
-#endif
 
 #ifndef sys_mmap2
 asmlinkage long sys_mmap2(unsigned long addr, unsigned long len,
index 526deb333b9103504783401667246a90441c0bb2..91835e7f364d5523919735e2901492e634e85f7d 100644 (file)
@@ -836,6 +836,16 @@ int kernel_execve(const char *filename, const char *const argv[], const char *co
                (const char __user *const __user *)envp)
 #endif
 
+asmlinkage long sys_fork(void);
+asmlinkage long sys_vfork(void);
+#ifdef CONFIG_CLONE_BACKWARDS
+asmlinkage long sys_clone(unsigned long, unsigned long, int __user *, int,
+              int __user *);
+#else
+asmlinkage long sys_clone(unsigned long, unsigned long, int __user *,
+              int __user *, int);
+#endif
+
 asmlinkage long sys_execve(const char __user *filename,
                const char __user *const __user *argv,
                const char __user *const __user *envp);