diff options
| -rw-r--r-- | arch/cris/kernel/sys_cris.c | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/arch/cris/kernel/sys_cris.c b/arch/cris/kernel/sys_cris.c index d124066e1728..a79fbd87021b 100644 --- a/arch/cris/kernel/sys_cris.c +++ b/arch/cris/kernel/sys_cris.c | |||
| @@ -27,28 +27,6 @@ | |||
| 27 | #include <asm/uaccess.h> | 27 | #include <asm/uaccess.h> |
| 28 | #include <asm/segment.h> | 28 | #include <asm/segment.h> |
| 29 | 29 | ||
| 30 | /* | ||
| 31 | * sys_pipe() is the normal C calling standard for creating | ||
| 32 | * a pipe. It's not the way Unix traditionally does this, though. | ||
| 33 | */ | ||
| 34 | asmlinkage int sys_pipe(unsigned long __user * fildes) | ||
| 35 | { | ||
| 36 | int fd[2]; | ||
| 37 | int error; | ||
| 38 | |||
| 39 | lock_kernel(); | ||
| 40 | error = do_pipe(fd); | ||
| 41 | unlock_kernel(); | ||
| 42 | if (!error) { | ||
| 43 | if (copy_to_user(fildes, fd, 2*sizeof(int))) { | ||
| 44 | sys_close(fd[0]); | ||
| 45 | sys_close(fd[1]); | ||
| 46 | error = -EFAULT; | ||
| 47 | } | ||
| 48 | } | ||
| 49 | return error; | ||
| 50 | } | ||
| 51 | |||
| 52 | /* common code for old and new mmaps */ | 30 | /* common code for old and new mmaps */ |
| 53 | static inline long | 31 | static inline long |
| 54 | do_mmap2(unsigned long addr, unsigned long len, unsigned long prot, | 32 | do_mmap2(unsigned long addr, unsigned long len, unsigned long prot, |
