Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/compat/linux/common Teach wait4 about WCONTINUED.
details: https://anonhg.NetBSD.org/src/rev/590c249bd62b
branches: trunk
changeset: 347520:590c249bd62b
user: njoly <njoly%NetBSD.org@localhost>
date: Wed Aug 31 08:12:44 2016 +0000
description:
Teach wait4 about WCONTINUED.
diffstat:
sys/compat/linux/common/linux_misc.c | 6 ++++--
sys/compat/linux/common/linux_misc.h | 14 ++++++++------
2 files changed, 12 insertions(+), 8 deletions(-)
diffs (58 lines):
diff -r d0ab815d091c -r 590c249bd62b sys/compat/linux/common/linux_misc.c
--- a/sys/compat/linux/common/linux_misc.c Wed Aug 31 06:23:51 2016 +0000
+++ b/sys/compat/linux/common/linux_misc.c Wed Aug 31 08:12:44 2016 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: linux_misc.c,v 1.231 2015/03/14 08:32:08 njoly Exp $ */
+/* $NetBSD: linux_misc.c,v 1.232 2016/08/31 08:12:44 njoly Exp $ */
/*-
* Copyright (c) 1995, 1998, 1999, 2008 The NetBSD Foundation, Inc.
@@ -57,7 +57,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: linux_misc.c,v 1.231 2015/03/14 08:32:08 njoly Exp $");
+__KERNEL_RCSID(0, "$NetBSD: linux_misc.c,v 1.232 2016/08/31 08:12:44 njoly Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -231,6 +231,8 @@
options |= WNOHANG;
if (linux_options & LINUX_WAIT4_WUNTRACED)
options |= WUNTRACED;
+ if (linux_options & LINUX_WAIT4_WCONTINUED)
+ options |= WCONTINUED;
if (linux_options & LINUX_WAIT4_WALL)
options |= WALLSIG;
if (linux_options & LINUX_WAIT4_WCLONE)
diff -r d0ab815d091c -r 590c249bd62b sys/compat/linux/common/linux_misc.h
--- a/sys/compat/linux/common/linux_misc.h Wed Aug 31 06:23:51 2016 +0000
+++ b/sys/compat/linux/common/linux_misc.h Wed Aug 31 08:12:44 2016 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: linux_misc.h,v 1.24 2013/11/18 01:32:52 chs Exp $ */
+/* $NetBSD: linux_misc.h,v 1.25 2016/08/31 08:12:44 njoly Exp $ */
/*-
* Copyright (c) 1998 The NetBSD Foundation, Inc.
@@ -35,14 +35,16 @@
/*
* Options passed to the Linux wait4() system call.
*/
-#define LINUX_WAIT4_WNOHANG 0x00000001
-#define LINUX_WAIT4_WUNTRACED 0x00000002
-#define LINUX_WAIT4_WNOTHREAD 0x20000000
-#define LINUX_WAIT4_WALL 0x40000000
-#define LINUX_WAIT4_WCLONE 0x80000000
+#define LINUX_WAIT4_WNOHANG 0x00000001
+#define LINUX_WAIT4_WUNTRACED 0x00000002
+#define LINUX_WAIT4_WCONTINUED 0x00000008
+#define LINUX_WAIT4_WNOTHREAD 0x20000000
+#define LINUX_WAIT4_WALL 0x40000000
+#define LINUX_WAIT4_WCLONE 0x80000000
#define LINUX_WAIT4_KNOWNFLAGS (LINUX_WAIT4_WNOHANG | \
LINUX_WAIT4_WUNTRACED | \
+ LINUX_WAIT4_WCONTINUED | \
LINUX_WAIT4_WNOTHREAD | \
LINUX_WAIT4_WALL | \
LINUX_WAIT4_WCLONE)
Home |
Main Index |
Thread Index |
Old Index