From: Willy Tarreau Date: Mon, 7 Feb 2022 16:23:34 +0000 (+0100) Subject: tools/nolibc/types: define EXIT_SUCCESS and EXIT_FAILURE X-Git-Tag: v5.19-rc1~254^2~39 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=51469d5ab38fd1ac2182da8cd49eea3420b8000b;p=thirdparty%2Fkernel%2Flinux.git 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 Signed-off-by: Paul E. McKenney --- diff --git a/tools/include/nolibc/types.h b/tools/include/nolibc/types.h index b1bff5e717b62..e0749dc0bd068 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 {