Commit bb6ec2e9 authored by Mark Brown's avatar Mark Brown Committed by Thomas Weißschuh

tools/nolibc: Use linux/wait.h rather than duplicating it

Linux defines a few custom flags for waitpid() which aren't currently
provided by nolibc, make them available to nolibc based programs by just
including linux/wait.h where they are defined instead of defining our
own copy of the flags.
Signed-off-by: default avatarMark Brown <broonie@kernel.org>
Signed-off-by: default avatarWilly Tarreau <w@1wt.eu>
Signed-off-by: default avatarThomas Weißschuh <linux@weissschuh.net>
parent 89b212d4
...@@ -12,6 +12,7 @@ ...@@ -12,6 +12,7 @@
#include <linux/reboot.h> /* for LINUX_REBOOT_* */ #include <linux/reboot.h> /* for LINUX_REBOOT_* */
#include <linux/stat.h> #include <linux/stat.h>
#include <linux/time.h> #include <linux/time.h>
#include <linux/wait.h>
/* Only the generic macros and types may be defined here. The arch-specific /* Only the generic macros and types may be defined here. The arch-specific
...@@ -108,9 +109,6 @@ ...@@ -108,9 +109,6 @@
#define WTERMSIG(status) ((status) & 0x7f) #define WTERMSIG(status) ((status) & 0x7f)
#define WIFSIGNALED(status) ((status) - 1 < 0xff) #define WIFSIGNALED(status) ((status) - 1 < 0xff)
/* waitpid() flags */
#define WNOHANG 1
/* standard exit() codes */ /* standard exit() codes */
#define EXIT_SUCCESS 0 #define EXIT_SUCCESS 0
#define EXIT_FAILURE 1 #define EXIT_FAILURE 1
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment