aboutsummaryrefslogtreecommitdiffstats
path: root/arch/mips/kernel/linux32.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/mips/kernel/linux32.c')
-rw-r--r--arch/mips/kernel/linux32.c22
1 files changed, 22 insertions, 0 deletions
diff --git a/arch/mips/kernel/linux32.c b/arch/mips/kernel/linux32.c
index dfb448c015e1..120dd897162e 100644
--- a/arch/mips/kernel/linux32.c
+++ b/arch/mips/kernel/linux32.c
@@ -221,6 +221,28 @@ sys32_waitpid(compat_pid_t pid, unsigned int *stat_addr, int options)
221 return compat_sys_wait4(pid, stat_addr, options, NULL); 221 return compat_sys_wait4(pid, stat_addr, options, NULL);
222} 222}
223 223
224asmlinkage long
225sysn32_waitid(int which, compat_pid_t pid,
226 siginfo_t __user *uinfo, int options,
227 struct compat_rusage __user *uru)
228{
229 struct rusage ru;
230 long ret;
231 mm_segment_t old_fs = get_fs();
232
233 set_fs (KERNEL_DS);
234 ret = sys_waitid(which, pid, uinfo, options,
235 uru ? (struct rusage __user *) &ru : NULL);
236 set_fs (old_fs);
237
238 if (ret < 0 || uinfo->si_signo == 0)
239 return ret;
240
241 if (uru)
242 ret = put_compat_rusage(&ru, uru);
243 return ret;
244}
245
224struct sysinfo32 { 246struct sysinfo32 {
225 s32 uptime; 247 s32 uptime;
226 u32 loads[3]; 248 u32 loads[3];