summaryrefslogtreecommitdiffstats
path: root/sys/i386/linux/linux.h
diff options
context:
space:
mode:
authordchagin <dchagin@FreeBSD.org>2015-05-24 15:03:09 +0000
committerdchagin <dchagin@FreeBSD.org>2015-05-24 15:03:09 +0000
commite28b659be100a1b8e59d531e5347c9ffc526602c (patch)
tree1ba902a4457e06d281c70ad8f64cef362aa177c3 /sys/i386/linux/linux.h
parent3445f2f9f244d28847011b406ff49c43ae88834a (diff)
downloadFreeBSD-src-e28b659be100a1b8e59d531e5347c9ffc526602c.zip
FreeBSD-src-e28b659be100a1b8e59d531e5347c9ffc526602c.tar.gz
To reduce code duplication introduce linux_copyout_rusage() method.
Use it in linux_wait4() system call and move linux_wait4() to the MI path. While here add a prototype for the static bsd_to_linux_rusage(). Differential Revision: https://reviews.freebsd.org/D2138 Reviewed by: trasz
Diffstat (limited to 'sys/i386/linux/linux.h')
-rw-r--r--sys/i386/linux/linux.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/i386/linux/linux.h b/sys/i386/linux/linux.h
index 6f0ad29..6a20a68 100644
--- a/sys/i386/linux/linux.h
+++ b/sys/i386/linux/linux.h
@@ -741,6 +741,8 @@ struct l_desc_struct {
#define LINUX_GET_USEABLE(desc) \
(((desc)->b >> LINUX_ENTRY_B_USEABLE) & 1)
+#define linux_copyout_rusage(r, u) copyout(r, u, sizeof(*r))
+
/* robust futexes */
struct linux_robust_list {
struct linux_robust_list *next;
OpenPOWER on IntegriCloud