summaryrefslogtreecommitdiff
path: root/include/linux/sched
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2017-05-15 06:54:33 +0300
committerAl Viro <viro@zeniv.linux.org.uk>2017-05-21 20:16:26 +0300
commit92ebce5ac55dba258c608248dddf59eca3f7f514 (patch)
treeb795de1179e0055275b6e6b5cd1e09d0c31010f6 /include/linux/sched
parent4c48abe91be03d191d0c20cc755877da2cb35622 (diff)
downloadlinux-92ebce5ac55dba258c608248dddf59eca3f7f514.tar.xz
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')
-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);