summaryrefslogtreecommitdiffstats
path: root/include/linux/resource.h
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2017-05-14 20:25:02 -0400
committerAl Viro <viro@zeniv.linux.org.uk>2017-05-21 13:11:00 -0400
commitce72a16fa705f960ca2352e95a7c5f4801475e75 (patch)
tree6dcdf27d851b4c9e50f689611a26f1dfc10ebef0 /include/linux/resource.h
parent7e95a225901a5d2fd140f14b4302805cecc22da7 (diff)
downloadtalos-obmc-linux-ce72a16fa705f960ca2352e95a7c5f4801475e75.tar.gz
talos-obmc-linux-ce72a16fa705f960ca2352e95a7c5f4801475e75.zip
wait4(2)/waitid(2): separate copying rusage to userland
New helpers: kernel_waitid() and kernel_wait4(). sys_waitid(), sys_wait4() and their compat variants switched to those. Copying struct rusage to userland is left to syscall itself. For compat_sys_wait4() that eliminates the use of set_fs() completely. For compat_sys_waitid() it's still needed (for siginfo handling); that will change shortly. Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'include/linux/resource.h')
-rw-r--r--include/linux/resource.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/resource.h b/include/linux/resource.h
index 5bc3116e649c..277afdad6589 100644
--- a/include/linux/resource.h
+++ b/include/linux/resource.h
@@ -6,7 +6,7 @@
struct task_struct;
-int getrusage(struct task_struct *p, int who, struct rusage __user *ru);
+void getrusage(struct task_struct *p, int who, struct rusage *ru);
int do_prlimit(struct task_struct *tsk, unsigned int resource,
struct rlimit *new_rlim, struct rlimit *old_rlim);
OpenPOWER on IntegriCloud