[PATCH] consolidate sys_shmat
Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
This commit is contained in:
@@ -26,7 +26,6 @@ extern syscall_handler_t *ia32_sys_call_table[];
|
||||
extern long old_mmap(unsigned long addr, unsigned long len,
|
||||
unsigned long prot, unsigned long flags,
|
||||
unsigned long fd, unsigned long pgoff);
|
||||
extern syscall_handler_t wrap_sys_shmat;
|
||||
extern syscall_handler_t sys_modify_ldt;
|
||||
extern syscall_handler_t sys_arch_prctl;
|
||||
|
||||
|
@@ -14,14 +14,6 @@
|
||||
#include "asm/prctl.h" /* XXX This should get the constants from libc */
|
||||
#include "choose-mode.h"
|
||||
|
||||
/* XXX: copied from x86-64: arch/x86_64/kernel/sys_x86_64.c */
|
||||
asmlinkage long wrap_sys_shmat(int shmid, char __user *shmaddr, int shmflg)
|
||||
{
|
||||
unsigned long raddr;
|
||||
|
||||
return do_shmat(shmid, shmaddr, shmflg, &raddr) ?: (long) raddr;
|
||||
}
|
||||
|
||||
asmlinkage long sys_uname64(struct new_utsname __user * name)
|
||||
{
|
||||
int err;
|
||||
|
Reference in New Issue
Block a user