Commit 51469d5a authored by Willy Tarreau's avatar Willy Tarreau Committed by Paul E. McKenney
Browse files

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: default avatarWilly Tarreau <w@1wt.eu>
Signed-off-by: default avatarPaul E. McKenney <paulmck@kernel.org>
parent 7e4346f4
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -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 {