[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20220207162354.14293-23-w@1wt.eu>
Date: Mon, 7 Feb 2022 17:23:34 +0100
From: Willy Tarreau <w@....eu>
To: "Paul E . McKenney" <paulmck@...nel.org>
Cc: Mark Brown <broonie@...nel.org>, linux-kernel@...r.kernel.org,
Willy Tarreau <w@....eu>
Subject: [PATCH 22/42] tools/nolibc/types: define EXIT_SUCCESS and EXIT_FAILURE
These ones are found in some examples found in man pages and ease
portability tests.
Signed-off-by: Willy Tarreau <w@....eu>
---
tools/include/nolibc/types.h | 3 +++
1 file changed, 3 insertions(+)
diff --git a/tools/include/nolibc/types.h b/tools/include/nolibc/types.h
index fb4d35f60850..dac1cc186dab 100644
--- a/tools/include/nolibc/types.h
+++ b/tools/include/nolibc/types.h
@@ -71,6 +71,9 @@
#define WEXITSTATUS(status) (((status) & 0xff00) >> 8)
#define WIFEXITED(status) (((status) & 0x7f) == 0)
+/* standard exit() codes */
+#define EXIT_SUCCESS 0
+#define EXIT_FAILURE 1
/* for select() */
typedef struct {
--
2.35.1
Powered by blists - more mailing lists