summaryrefslogtreecommitdiffstats
path: root/include/linux/sched/task.h
diff options
context:
space:
mode:
authorAl Viro2017-05-15 05:54:33 +0200
committerAl Viro2017-05-21 19:16:26 +0200
commit92ebce5ac55dba258c608248dddf59eca3f7f514 (patch)
treeb795de1179e0055275b6e6b5cd1e09d0c31010f6 /include/linux/sched/task.h
parentwaitid(): switch copyout of siginfo to unsafe_put_user() (diff)
downloadkernel-qcow2-linux-92ebce5ac55dba258c608248dddf59eca3f7f514.tar.gz
kernel-qcow2-linux-92ebce5ac55dba258c608248dddf59eca3f7f514.tar.xz
kernel-qcow2-linux-92ebce5ac55dba258c608248dddf59eca3f7f514.zip
osf_wait4: switch to kernel_wait4()
... and sanitize copying rusage to userland Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'include/linux/sched/task.h')
-rw-r--r--include/linux/sched/task.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/sched/task.h b/include/linux/sched/task.h
index a978d7189cfd..6b830fd9d809 100644
--- a/include/linux/sched/task.h
+++ b/include/linux/sched/task.h
@@ -9,6 +9,7 @@
#include <linux/sched.h>
struct task_struct;
+struct rusage;
union thread_union;
/*
@@ -74,6 +75,7 @@ extern long _do_fork(unsigned long, unsigned long, unsigned long, int __user *,
extern long do_fork(unsigned long, unsigned long, unsigned long, int __user *, int __user *);
struct task_struct *fork_idle(int);
extern pid_t kernel_thread(int (*fn)(void *), void *arg, unsigned long flags);
+extern long kernel_wait4(pid_t, int *, int, struct rusage *);
extern void free_task(struct task_struct *tsk);