diff options
Diffstat (limited to 'arch/mips/kernel/signal32.c')
-rw-r--r-- | arch/mips/kernel/signal32.c | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/arch/mips/kernel/signal32.c b/arch/mips/kernel/signal32.c index c51e5df4297b..bb3ec6f0863e 100644 --- a/arch/mips/kernel/signal32.c +++ b/arch/mips/kernel/signal32.c | |||
@@ -686,32 +686,6 @@ SYSCALL_DEFINE3(32_rt_sigqueueinfo, int, pid, int, sig, | |||
686 | return ret; | 686 | return ret; |
687 | } | 687 | } |
688 | 688 | ||
689 | SYSCALL_DEFINE5(32_waitid, int, which, compat_pid_t, pid, | ||
690 | compat_siginfo_t __user *, uinfo, int, options, | ||
691 | struct compat_rusage __user *, uru) | ||
692 | { | ||
693 | siginfo_t info; | ||
694 | struct rusage ru; | ||
695 | long ret; | ||
696 | mm_segment_t old_fs = get_fs(); | ||
697 | |||
698 | info.si_signo = 0; | ||
699 | set_fs(KERNEL_DS); | ||
700 | ret = sys_waitid(which, pid, (siginfo_t __user *) &info, options, | ||
701 | uru ? (struct rusage __user *) &ru : NULL); | ||
702 | set_fs(old_fs); | ||
703 | |||
704 | if (ret < 0 || info.si_signo == 0) | ||
705 | return ret; | ||
706 | |||
707 | if (uru && (ret = put_compat_rusage(&ru, uru))) | ||
708 | return ret; | ||
709 | |||
710 | BUG_ON(info.si_code & __SI_MASK); | ||
711 | info.si_code |= __SI_CHLD; | ||
712 | return copy_siginfo_to_user32(uinfo, &info); | ||
713 | } | ||
714 | |||
715 | static int signal32_init(void) | 689 | static int signal32_init(void) |
716 | { | 690 | { |
717 | if (cpu_has_fpu) { | 691 | if (cpu_has_fpu) { |