[Midnightbsd-cvs] src [12324] trunk/sys/sys/wait.h: sync with FreeBSD 11-stable
laffer1 at midnightbsd.org
laffer1 at midnightbsd.org
Sat Feb 8 14:51:00 EST 2020
Revision: 12324
http://svnweb.midnightbsd.org/src/?rev=12324
Author: laffer1
Date: 2020-02-08 14:51:00 -0500 (Sat, 08 Feb 2020)
Log Message:
-----------
sync with FreeBSD 11-stable
Modified Paths:
--------------
trunk/sys/sys/wait.h
Modified: trunk/sys/sys/wait.h
===================================================================
--- trunk/sys/sys/wait.h 2020-02-08 19:49:56 UTC (rev 12323)
+++ trunk/sys/sys/wait.h 2020-02-08 19:51:00 UTC (rev 12324)
@@ -28,7 +28,7 @@
* SUCH DAMAGE.
*
* @(#)wait.h 8.2 (Berkeley) 7/10/94
- * $FreeBSD: stable/10/sys/sys/wait.h 254218 2013-08-11 14:15:01Z jilles $
+ * $FreeBSD: stable/11/sys/sys/wait.h 331722 2018-03-29 02:50:57Z eadler $
*/
#ifndef _SYS_WAIT_H_
@@ -139,7 +139,19 @@
#define WAIT_MYPGRP 0 /* any process in my process group */
#endif /* __BSD_VISIBLE */
+#if defined(_KERNEL) || defined(_WANT_KW_EXITCODE)
+
+/*
+ * Clamp the return code to the low 8 bits from full 32 bit value.
+ * Should be used in kernel to construct the wait(2)-compatible process
+ * status to usermode.
+ */
+#define KW_EXITCODE(ret, sig) W_EXITCODE((ret) & 0xff, (sig))
+
+#endif /* _KERNEL || _WANT_KW_EXITCODE */
+
#ifndef _KERNEL
+
#include <sys/types.h>
__BEGIN_DECLS
More information about the Midnightbsd-cvs
mailing list