diff options
author | Willy Tarreau <w@1wt.eu> | 2022-02-07 17:23:34 +0100 |
---|---|---|
committer | Paul E. McKenney <paulmck@kernel.org> | 2022-04-20 17:05:44 -0700 |
commit | 51469d5ab38fd1ac2182da8cd49eea3420b8000b (patch) | |
tree | 53c8057649ca771a1122180b8643eee4fed4879e /tools/include/nolibc | |
parent | 7e4346f4a3a611a6233ba388080c1426545da4fc (diff) | |
download | linux-51469d5ab38fd1ac2182da8cd49eea3420b8000b.tar.bz2 |
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@1wt.eu>
Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
Diffstat (limited to 'tools/include/nolibc')
-rw-r--r-- | tools/include/nolibc/types.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tools/include/nolibc/types.h b/tools/include/nolibc/types.h index b1bff5e717b6..e0749dc0bd06 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 { |