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 Add support for the __WALL wait4(2) ...
details: https://anonhg.NetBSD.org/src/rev/d34d9c7609d4
branches: trunk
changeset: 512883:d34d9c7609d4
user: thorpej <thorpej%NetBSD.org@localhost>
date: Wed Jul 18 19:11:14 2001 +0000
description:
Add support for the __WALL wait4(2) flag.
diffstat:
sys/compat/linux/common/linux_misc.c | 7 +++++--
sys/compat/linux/common/linux_misc.h | 3 ++-
2 files changed, 7 insertions(+), 3 deletions(-)
diffs (44 lines):
diff -r 0610928ae331 -r d34d9c7609d4 sys/compat/linux/common/linux_misc.c
--- a/sys/compat/linux/common/linux_misc.c Wed Jul 18 19:10:26 2001 +0000
+++ b/sys/compat/linux/common/linux_misc.c Wed Jul 18 19:11:14 2001 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: linux_misc.c,v 1.92 2001/06/04 07:44:39 manu Exp $ */
+/* $NetBSD: linux_misc.c,v 1.93 2001/07/18 19:11:14 thorpej Exp $ */
/*-
* Copyright (c) 1995, 1998, 1999 The NetBSD Foundation, Inc.
@@ -182,13 +182,16 @@
linux_options = SCARG(uap, options);
options = 0;
if (linux_options &
- ~(LINUX_WAIT4_WNOHANG|LINUX_WAIT4_WUNTRACED|LINUX_WAIT4_WCLONE))
+ ~(LINUX_WAIT4_WNOHANG|LINUX_WAIT4_WUNTRACED|LINUX_WAIT4_WALL|
+ LINUX_WAIT4_WCLONE))
return (EINVAL);
if (linux_options & LINUX_WAIT4_WNOHANG)
options |= WNOHANG;
if (linux_options & LINUX_WAIT4_WUNTRACED)
options |= WUNTRACED;
+ if (linux_options & LINUX_WAIT4_WALL)
+ options |= WALLSIG;
if (linux_options & LINUX_WAIT4_WCLONE)
options |= WALTSIG;
diff -r 0610928ae331 -r d34d9c7609d4 sys/compat/linux/common/linux_misc.h
--- a/sys/compat/linux/common/linux_misc.h Wed Jul 18 19:10:26 2001 +0000
+++ b/sys/compat/linux/common/linux_misc.h Wed Jul 18 19:11:14 2001 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: linux_misc.h,v 1.4 2000/12/13 21:41:24 augustss Exp $ */
+/* $NetBSD: linux_misc.h,v 1.5 2001/07/18 19:11:14 thorpej Exp $ */
/*-
* Copyright (c) 1998 The NetBSD Foundation, Inc.
@@ -44,6 +44,7 @@
*/
#define LINUX_WAIT4_WNOHANG 0x00000001
#define LINUX_WAIT4_WUNTRACED 0x00000002
+#define LINUX_WAIT4_WALL 0x40000000
#define LINUX_WAIT4_WCLONE 0x80000000
/* This looks very unportable to me, but this is how Linux defines it. */
Home |
Main Index |
Thread Index |
Old Index